/*
 * Storefront integrations (inc/integrations.php). Base layout for markup that the Shopify apps build in the
 * browser (Appstle subscription widget, Code Black Belt Frequently Bought Together, Yotpo reviews), so the theme
 * overrides already ported in custom.css / product-options*.css / new-pdp.css apply on top, plus the B2B login
 * panel (sections/main-b2b-login.liquid) and the local privacy opt-out control. Every selector is scoped to one
 * of these components; nothing here styles other page parts.
 */

/* ---------- Subscribe & Save (Appstle widget markup) ---------- */
.er-sub .appstle_subscription_wrapper { position: relative; display: flex; flex-direction: column; margin-top: 20px; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_wrapper_option { position: relative; margin: 0 0 16px; padding: 15px 16px !important; background: #fff; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_wrapper_option.appstle_include_dropdown { background: #e6eeee; padding-bottom: 12px !important; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_wrapper_option:first-child { border-top: 0.65px solid rgba(0, 0, 0, 0.5) !important; }
.er-sub .appstle_subscription_wrapper_option > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_radio_label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: 18.2px; font-weight: 500; color: #3c3235; text-transform: capitalize; line-height: 1.29; }
.er-sub .er-sub--disabled .appstle_radio_label { cursor: default; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_circle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 2px solid #005757; border-radius: 50%; opacity: 1; }
.main_product_wrapper .product-form__buy-buttons .er-sub span.appstle_dot { width: 10px; height: 10px; border-radius: 50%; background-color: transparent; }
.main_product_wrapper .product-form__buy-buttons .er-sub input:checked + label span.appstle_dot { background-color: #005757; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_include_dropdown .appstle_circle { opacity: .6; }
.er-sub .appstle-text-and-badge-wrapper { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.er-sub .er-sub__badge { position: relative; display: inline-block; margin-left: 6px; padding: 0 8px 0 6px; background: #ea2f2f; color: #fff; font-size: 9.1px; font-weight: 700; letter-spacing: 1px; line-height: 18.2px; text-transform: uppercase; border-radius: 0 3px 3px 0; }
.er-sub .er-sub__badge::before { content: ""; position: absolute; top: 0; left: -9px; border-style: solid; border-width: 9.1px 9px 9.1px 0; border-color: transparent #ea2f2f transparent transparent; }
.er-sub .appstle_subscription_amount_wrapper,
.er-sub .appstle_one_time_details_wrapper { margin-left: auto; white-space: nowrap; color: #000 !important; opacity: 1 !important; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_amount { font-size: 18.2px !important; font-weight: 700; color: #000; }
.er-sub .appstle_include_dropdown .appstle_subscription_amount_wrapper { opacity: .55 !important; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_compare_amount { font-size: 18px; opacity: .6; text-decoration: line-through; }
.main_product_wrapper .product-form__buy-buttons .er-sub .appstle_one_time_details_wrapper .appstle_subscription_compare_amount { font-size: 14px; opacity: 1; }
.er-sub .most-popular { margin: 2px 0 0 1px; font-size: 16px; line-height: 22.88px; color: #2e2e2e; }
.er-sub .appstle_subscribe_option[hidden] { display: none !important; }
.er-sub .appstle_select { display: block; width: 100%; margin-top: 8px; }
.er-sub .sub-benefit-list li { font-size: 14px; }
@media screen and (max-width: 610px) {
  .main_product_wrapper .product-form__buy-buttons .er-sub .appstle_radio_label { font-size: 14px; }
  .main_product_wrapper .product-form__buy-buttons .er-sub .appstle_radio_label { align-items: flex-start; }
  .main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_amount { font-size: 13px !important; }
  .main_product_wrapper .product-form__buy-buttons .er-sub .appstle_subscription_compare_amount { font-size: 13px; }
  .er-sub .appstle-text-and-badge-wrapper { flex-wrap: wrap; row-gap: 2px; white-space: normal; }
  .er-sub .er-sub__badge { margin-left: 9px; }
  .er-sub .most-popular { font-size: 16px; }
}

/* ---------- Frequently Bought Together (Code Black Belt markup) ---------- */
.er-fbt.cbb-frequently-bought-container { box-sizing: border-box; margin: 30px 0 0; padding: 14px 20px 20px; font-family: Montserrat, sans-serif; color: #2e2e2e; }
.er-fbt .cbb-frequently-bought-title.translatable { margin: 0 0 12px; font-size: 21.6px; font-weight: 600; line-height: 1.2; color: #000; }
.er-fbt .cbb-frequently-bought-products { display: flex !important; align-items: center; margin: 0 0 16px; padding: 0; list-style: none; }
.er-fbt .cbb-frequently-bought-product { flex: 1; display: flex !important; justify-content: center; align-items: center; position: relative; padding-right: 20px; }
.er-fbt .cbb-frequently-bought-product img { display: block; width: 100px; max-width: 100%; height: 100px; object-fit: contain; }
.er-fbt .cbb-frequently-bought-plus-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: monospace; font-size: 18px !important; font-weight: 200 !important; }
.er-fbt .cbb-frequently-bought-form { display: block !important; }
.er-fbt .cbb-frequently-bought-total-price-box { display: block; font-size: 18.2px; line-height: 26px; margin: 0 0 12px; }
.er-fbt .cbb-frequently-bought-total-price-regular-price { display: block; text-decoration: line-through; }
.er-fbt .cbb-frequently-bought-total-price-box span { font-weight: 400; }
.er-fbt .cbb-frequently-bought-add-button { display: inline-flex !important; align-items: center; justify-content: center; border: 0; background: #008080; color: #fff; font-family: inherit; cursor: pointer; }
.er-fbt .cbb-frequently-bought-add-button[disabled] { cursor: default; }
.er-fbt .cbb-frequently-bought-selector-list { list-style: none; margin: 10px 0 0; padding: 0; }
.er-fbt .cbb-frequently-bought-selector-list li { margin-top: 27px; font-size: 18.2px; line-height: 26px; }
.er-fbt .cbb-frequently-bought-selector-label { display: inline; margin: 0; }
.er-fbt .cbb-frequently-bought-selector-input { margin: 0 4px 0 4px; accent-color: #555; vertical-align: middle; }
.er-fbt h3.cbb-frequently-bought-selector-label-name { display: inline; margin: 0 0 0 10px !important; font-size: 16px !important; line-height: 32px !important; color: #2e2e2e; font-family: Montserrat, sans-serif; letter-spacing: 0; text-transform: none; }
.er-fbt .cbb-frequently-bought-selector-link { color: inherit; text-decoration: none; }
.er-fbt .cbb-frequently-bought-selector-link h3.cbb-frequently-bought-selector-label-name { font-weight: 400 !important; }
.er-fbt .cbb-frequently-bought-selector-label-name strong { font-weight: 600; }
.er-fbt .cbb-recommendations-variant-select { display: inline-block; width: auto; max-width: 100%; margin: 4px 8px 0 4px; padding: 2px 4px; font: 16px/1.4 Montserrat, sans-serif; color: #2e2e2e; border: 1px solid #767676; border-radius: 2px; background: #fff; }
.er-fbt .cbb-frequently-bought-selector-label-compare-at-price { margin-left: 6px; text-decoration: line-through; }
.er-fbt .er-fbt__status:empty { display: none; }
.product__media .er-fbt { max-width: 540px; }
@media screen and (max-width: 610px) {
  .er-fbt.cbb-frequently-bought-container { margin-top: 16px; }
  .er-fbt .cbb-frequently-bought-title.translatable { font-size: 20.4px; }
  .er-fbt .cbb-frequently-bought-total-price-box { font-size: 14px; }
  .er-fbt .cbb-frequently-bought-total-price-regular-price { display: inline; margin-left: 4px; }
  .er-fbt .cbb-frequently-bought-selector-list li { font-size: 14px; }
  .er-fbt h3.cbb-frequently-bought-selector-label-name { font-size: 14px !important; }
  .er-fbt .cbb-recommendations-variant-select { font-size: 14px; }
}

/* ---------- Reviews (Yotpo widget layout, local snapshot while the integration is off) ---------- */
.er-yotpo { max-width: 1008px; margin: 0 auto; font-family: "Nunito Sans", Montserrat, sans-serif; color: #2c2c2c; }
.er-yotpo__title { margin: 0; padding: 0 0 24px; border-bottom: 1px solid #e3e3e3; text-align: center; font-size: 31px; font-weight: 600; line-height: 1.43; }
.er-yotpo__header { display: flex; align-items: center; justify-content: center; gap: 48px; padding: 38px 0 56px; border-bottom: 1px solid #e3e3e3; }
.er-yotpo__bottomline { display: flex; align-items: center; gap: 10px; }
.er-yotpo__avg { font-size: 48px; line-height: 1; color: #2e4f7c; }
.er-yotpo__based { font-size: 14px; margin-top: 2px; }
.er-yotpo__divider { width: 1px; height: 68px; background: #e3e3e3; }
.er-yotpo__write { padding: 10px 16px; border: 0; border-radius: 50px; background: #2e4f7c; color: #fff; font: 600 14px/17.5px "Nunito Sans", Montserrat, sans-serif; }
.er-yotpo__write[disabled] { cursor: default; }
.er-yotpo__stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.er-yotpo__star { fill: none; stroke: #e7721b; stroke-width: 1.5; }
.er-yotpo__star.is-full { fill: #e7721b; }
.er-yotpo__review { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid #e3e3e3; }
.er-yotpo__reviewer { flex: 0 0 200px; display: flex; align-items: flex-start; gap: 12px; }
.er-yotpo__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #d3d6e0; }
.er-yotpo__name { display: block; font-size: 16px; }
.er-yotpo__verified { display: block; font-size: 13.33px; color: #2e4f7c; }
.er-yotpo__content { flex: 1; min-width: 0; }
.er-yotpo__head { display: flex; align-items: center; gap: 8px; }
.er-yotpo__rtitle { font-size: 18px; font-weight: 700; line-height: 25.74px; }
.er-yotpo__rtitle-p { margin: 0; }
.er-yotpo__date { margin-left: auto; font-size: 16px; }
.er-yotpo__body { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }
.er-yotpo__empty { margin: 0; padding: 32px 0; text-align: center; font-size: 16px; }
.er-yotpo__empty { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.er-yotpo__empty-title { font-size: 20px; font-weight: 700; color: #2e4f7c; }
.er-yotpo__empty-text { font-size: 16px; }
@media screen and (max-width: 740px) {
  .er-yotpo__empty-title { font-size: 18px; }
  .er-yotpo__empty-text { font-size: 14px; }
  .er-yotpo__header { flex-direction: column; gap: 16px; padding: 24px 0 32px; }
  .er-yotpo__divider { display: none; }
  .er-yotpo__review { flex-direction: column; gap: 12px; }
  .er-yotpo__reviewer { flex-basis: auto; }
}

/* ---------- Video carousel (enabled only with operator-provided videos) ---------- */
.er-reels { padding: 40px 0; }
.er-reels__heading { margin: 0 0 20px; text-align: center; font: 700 28px/1.4 Montserrat, sans-serif; color: #0f0f0f; }
.er-reels__track { display: flex; justify-content: center; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.er-reels__card { flex: 0 0 179px; scroll-snap-align: start; }
.er-reels__video { display: block; width: 179px; height: 318px; object-fit: cover; border-radius: 8px; background: #111; }
.er-reels__caption { margin: 8px 0 0; text-align: center; font: 500 12px/1.4 Montserrat, sans-serif; color: #1d1d1d; }
.er-reels__product { display: block; margin-top: 6px; font: 500 12px/1.4 Montserrat, sans-serif; color: #1d1d1d; }

/* ---------- B2B login (sections/main-b2b-login.liquid styles, settings as CSS variables) ---------- */
.er-b2b.b2b-login { width: 100%; }
.er-b2b .b2b-login-wrapper { display: flex; flex-wrap: wrap; }
.er-b2b .b2b-intro-image { width: 50%; background-size: 100%; min-height: 300px; }
.er-b2b .b2b-intro-image.image-cover { background-size: cover; background-position: center; }
.er-b2b .b2b-login-area { width: 50%; padding: var(--b2b-spacing); box-sizing: border-box; }
.er-b2b .b2b-header-primary { color: var(--b2b-h1); font-size: var(--b2b-h1-size); line-height: 1.5; margin: 0 0 .25em; text-transform: none; letter-spacing: 0; }
.er-b2b .b2b-header-secondary { color: var(--b2b-h2); font-size: var(--b2b-h2-size); line-height: 1.5; margin: 0 0 .5em; }
.er-b2b .b2b-body-text { color: var(--b2b-font); font-size: var(--b2b-size); line-height: 1.5; }
.er-b2b .b2b-body-text p { margin: 0 0 1em !important; color: var(--b2b-font); }
.er-b2b .b2b-link-text { color: var(--b2b-link); text-decoration: none; }
.er-b2b .b2b-link-text:hover { text-decoration: underline; }
.er-b2b .b2b-input { width: 100%; padding: 10px; border: 1px solid var(--b2b-input-border); background-color: var(--b2b-input-bg) !important; color: var(--b2b-input-text) !important; font-size: var(--b2b-input-size); border-radius: var(--b2b-input-radius); font-family: inherit; transition: all .3s; display: block; margin: 0; box-sizing: border-box; }
.er-b2b .b2b-input:hover, .er-b2b .b2b-input:focus { border-color: var(--b2b-input-hover); outline: none; box-shadow: none; }
.er-b2b .b2b-btn { display: inline-block; padding: 12px 20px; font-size: var(--b2b-btn-size); border: 1px solid var(--b2b-btn-border); border-radius: var(--b2b-btn-radius); text-align: center; cursor: pointer; font-family: inherit; text-decoration: none; line-height: 1; min-height: auto; min-width: auto; }
.er-b2b .b2b-btn-primary { background-color: var(--b2b-btn) !important; color: var(--b2b-btn-text) !important; }
.er-b2b .b2b-btn-primary:hover { background-color: var(--b2b-btn-hover) !important; }
.er-b2b .b2b-btn[disabled] { cursor: default; }
.er-b2b .b2b-form form { margin: 0 !important; }
.er-b2b .b2b-form-help { margin: .5em 0 0; font-size: var(--b2b-size); text-align: left; }
.er-b2b .b2b-form-item { margin-bottom: .75em; }
.er-b2b .b2b-apply-account { margin: 2em 0 0; clear: both; }
.er-b2b .b2b-learn-more { margin: 1em 0 0; }
@media only screen and (max-width: 850px) {
  .er-b2b .b2b-login-wrapper { flex-direction: column; }
  .er-b2b .b2b-intro-image, .er-b2b .b2b-login-area { width: 100%; }
}

/* ---------- Privacy opt-out control (/pages/data-sharing-opt-out) ---------- */
.er-optout { margin-top: 1em; }
.er-optout__form { margin-top: 40px; }
.er-optout__check { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; cursor: pointer; }
.er-optout__check input { width: 14px; height: 14px; margin: 0; }
.er-optout__email { margin: 0 0 16px; }
.er-optout__email input { display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 8px 10px; border: 1px solid #999; }
.er-optout__button { display: block; padding: 7px 35px; border: 3px solid #333; background: #fff; color: #333; font: inherit; line-height: 25px; letter-spacing: 2px; cursor: pointer; }
.er-optout__msg { margin-top: 12px; }

/* ---------- Newsletter status line ---------- */
.er-newsletter-status { margin: 8px 0 0; font-size: 14px; }
/* live: 18px / 200 / line-height 100px, centred; new-pdp.css .cbb-frequently-bought-plus-icon.skiptranslate.notranslate (24px) is more specific than the rule above */
.er-fbt .cbb-frequently-bought-plus-icon.skiptranslate.notranslate { font-size: 18px !important; font-weight: 200 !important; line-height: 100px; text-align: center; }

/* R19 (phone-fixes): reel cards as live lays them out (accept/b2-full-r4 live captures of /products/3000mg-delta-8-gummies):
   phone 375: 122 px cards 24 px apart from the left edge, caption on one line; desktop 1440: 179 px cards, centred. The
   centring above pushed the first card past the left edge, where it could not be scrolled to, once the cards overflowed;
   auto side margins centre only when the cards fit. */
.er-reels__track { justify-content: flex-start; }
.er-reels__card { min-width: 0; }
.er-reels__card:first-child { margin-left: auto; }
.er-reels__card:last-child { margin-right: auto; }
.er-reels__caption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 767px) {
  .er-reels__card { flex-basis: 122px; }
  .er-reels__video { width: 122px; height: 217px; }
}
