.products-details-page .carousel {
    position: relative;
}

.products-details-page .products-details {
    margin-top: 3rem;
}

.products-details-page #product-images-slick img {
    object-fit: contain;
    cursor: pointer;
}

.products-details-page #carousel-thumbs {
    padding: 0 50px;
}

.products-details-page #carousel-thumbs img:hover {
    opacity: 100%;
}

.products-details-page #carousel-thumbs img {
    opacity: 80%;
    border: 3px solid transparent;
    cursor: pointer;
}

.products-details-page #carousel-thumbs .selected img {
    opacity: 100%;
}

.products-details-page .carousel-control-prev,
.products-details-page .carousel-control-next {
    width: 44px;
    height: 44px;
}

.products-details-page .carousel-fullscreen-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z' /%3E%3C/svg%3E");
}

.products-details-page .carousel-fullscreen-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z' /%3E%3C/svg%3E");
}

.products-details-page .pause .carousel-pause-icon {
    position: absolute;
    top: 3.75rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5zm3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5z' /%3E%3C/svg%3E");
}

.products-details-page .pause .carousel-pause-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.25 5C5.56 5 5 5.56 5 6.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C7.5 5.56 6.94 5 6.25 5zm3.5 0c-.69 0-1.25.56-1.25 1.25v3.5a1.25 1.25 0 1 0 2.5 0v-3.5C11 5.56 10.44 5 9.75 5z' /%3E%3C/svg%3E");
}

.products-details-page .play .carousel-pause-icon {
    position: absolute;
    top: 3.75rem;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    z-index: 4;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,.80)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z' /%3E%3C/svg%3E");
}

.products-details-page .play .carousel-pause-icon:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgb(255,255,255)'  viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z' /%3E%3C/svg%3E");
}

.products-details-page #carousel-thumbs .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(0,0,0,.60)' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.products-details-page #carousel-thumbs .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%60000' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

.products-details-page .modal-content {
    border: none;
}

.products-details-page #lightbox-container-image img {
    width: auto;
    max-height: 520px;
}


.products-details-page .lg-thumbs {
    margin-right: -7.5px;
    margin-left: -7.5px;
    margin-bottom: 25px;
}

.products-details-page .lg-thumbs a {
    cursor: pointer;
}

.products-details-page .lg-thumbs img, .carousel-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.products-details-page .lg-thumbs .col-3 {
    flex: 0 0 20%;
    max-width: 20%;
    margin-top: 15px;
    padding-right: 7.5px;
    padding-left: 7.5px;
}

.products-details-page .lg-thumbs .row {
    margin-left: 7.5px;
    margin-right: 7.5px;
}


.products-details-page .carousel-fullscreen-control {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    background-color: #e1e1e1;
}

.products-details-page h4 {
    font-size: 1.3rem;
}


#product-custom-user-dropdown-fields label
{
    display: block;
    color: var( --primary-color);
}

#product-custom-user-dropdown-fields select {
    display: block;
    width: 100%;
    padding: 10px 5px;
    border-color: #ccc;
    border-radius: 3px;
    height: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
}


#product-custom-user-dropdown-fields > div.form-group > div {
    position: relative;
}

#product-custom-user-dropdown-fields > div.form-group > div:after {
    content: '\e94b';
    font-family: 'icomoon';
    font-size: 20px;
    color: #333;
    right: 0px;
    top: 24px;
    padding: 5px 8px;
    border-left: 1px solid #ccc;
    position: absolute;
    pointer-events: none;
    height: 40px;
    width: 40px;
}

.rtl #product-custom-user-dropdown-fields > div.form-group > div:after {
    right: unset;
    left: 0px;
    border-left: 0;
    border-right: 1px solid #ccc;
}


.rtl .ekko-lightbox-nav-overlay a:last-child span {
    text-align: left;
}


#product-custom-user-option-fields .form-group label {
    display: inline-block;
    width: 100%;
    padding: 10px 10px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 3px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

#product-custom-user-option-fields, .add-review-form-checkbox {
    display: flex;
    flex-wrap: wrap;
}

#product-custom-user-option-fields .form-group, .add-review-form-checkbox .form-group {
    width: 100%;
}


#product-custom-user-option-fields input + span , .add-review-form-checkbox input + span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    cursor: pointer;
    right: 2px;
    top: 4px;
    position: relative;
}

.rtl #product-custom-user-option-fields input + span ,.rtl .add-review-form-checkbox input + span {
    right: -2px;
}

.add-review-form-checkbox input + span {
    right: 0!important;
}

#product-custom-user-option-fields input:checked + span:after, .add-review-form-checkbox input:checked + span:after {
    position: absolute;
    top: -2px;
    content: "\e910";
    font-family: 'icomoon';
    font-size: 14px;
}

#product-custom-user-option-fields input, .add-review-form-checkbox input {
    display: none;
}

.description-icon{
    font-size: 32px;
    width: 32px;
    color:var(  --primary-color);
}

.description-title {
    font-size: 1.733rem;
    font-weight: 500;
    color: var(--secondary-color-alt3);
    margin-left: 40px;
}

.rtl .description-title {
    margin-left: unset;
    margin-right: 40px;
}
#product-description td, th {
    border: 2px solid #dddddd;
    text-align: center;
    padding: 8px;
}

.description-paragrah {
    margin-left: 72px;
    font-size: 1.1rem;
    font-weight: 400;
    color:var(--secondary-color-alt8);
    line-height: 1.6;
}

.rtl .description-paragrah {
    margin-left: unset;
    margin-right: 72px;
}

.tooltip-info-icon{
    font-size: 1.5rem;
    color: var(--secondary-color-alt3);
}


.card-text-color{
    color:var(--secondary-color-alt3);
    font-size: 1.333rem;
    font-weight: var(--font-weight-sizeOne);
}
.card-price{
    color:var(--primary-color);
    font-size: 1.333rem;
    font-weight: var(--font-wieght-sizeTwo);
    margin: 10px 20px;
}

.card-body {
    padding: 10px;
}

.add-review-btn {
    margin-left: 15px;
}

.rtl .add-review-btn {
    margin-left: unset;
    margin-right: 15px;
}

.icon-star1, .icon-border-star {
    margin-right: 2px;
    margin-left: 2px;
    margin-top: 1px;
}

.icon-star1.deactive:before {
    color: #cccccc;
}

.rating_count_5, .rating_count_4, .rating_count_3, .rating_count_2, .rating_count_1 {
    width: 25px;
}

.user-review-date {
    margin-left: auto;
    color: #cccccc;
}

.rtl .user-review-date {
    margin-left: unset;
    margin-right: auto;
}

.card-name-customer {
    font-size: 1.22rem;
    margin: 0px 2px 0px 2px;
}

.user-review-text {
    color: #484848;
    margin-left: 50px;
}

.rtl .user-review-text {
    margin-left: unset;
    margin-right: 50px;
}

.card-review .icon-account_circle {
    width: 38px;
    height: 38px;
    font-size: 20px;
    background: #f0f2f5;
    text-align: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-review .review-images-container {
    margin-left: 50px;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 15px;
}

.rtl .card-review .review-images-container {
    margin-left: unset;
    margin-right: 50px;
}

.card-review .review-images-container img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 5px;
    border: #ced4da 1px solid;
    overflow: hidden;
    cursor: pointer;
}

.card-review .review-reply-card {
    padding: 10px;
    border-radius: 10px;
    margin-left: 50px;
}

.rtl .card-review .review-reply-card {
    margin-left: unset;
    margin-right: 50px;
    background-color: var(--primary-color-op-5, #ced4da33);
}

.card-review .review-reply-card .icon-account_circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-review .card-name {
    margin-left: 10px;
}

.rtl .card-review .card-name {
    margin-left: unset;
    margin-right: 10px;
}

.add-review-btn {
    background-color:var(  --primary-color);
    color: var(--text-color-primary-bg);
}

.rating-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.rating-section-top {
    margin-top: 0px;
    margin-bottom: 0px;
}

.rating-section h4 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0px;
    margin-left: 4px;
}

.rtl .rating-section h4 {
    margin-left: unset;
    margin-right: 4px;
}

.review-details .rating-section {
    margin-left: 15px;
}

.rtl .review-details .rating-section {
    margin-left: unset;
    margin-right: 15px;
}

.rating-average {
    font-size: 2rem !important;
    min-width: 80px;
    margin: 0px;
}

/*-- Product --*/
.modal-comment-content{
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-product-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-product-title{
    font-size:1.833rem;
    font-weight: var(--font-weight-sizeTwo);
    color:var(--primary-color);
}

.btnrating.active > i:before {
    color: #edb900;
}

.btnrating > i:before , .btnrating.deactive > i:before {
    color: #cccccc;
}

.btnrating {
    cursor: pointer;
    font-size: 18px;
}

.div-btnrating {
    margin-left: auto;
}

.rtl .div-btnrating {
    margin-left: unset;
    margin-right: auto;
}

.bottom-buttons, .review-remaining-count {
    text-align: right;
}

.rtl .bottom-buttons, .rtl .review-remaining-count {
    text-align: left;
}

.bundle-offer-title-description {
    font-size: 1rem;
}


.modal-dialog-scrollable .modal-dialog{
    overflow-y: initial !important
}

.modal-dialog-scrollable .modal-body .bundle-offer-products{
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.bundle-offer-title {
    unicode-bidi: isolate;
}

.bundle-offer-products-dialog .bundle-offer-title, .bundle-offer-products-dialog .bundle-offer-title-description {
    margin-right: 40px;
}

.rtl .bundle-offer-products-dialog .bundle-offer-title, .rtl .bundle-offer-products-dialog .bundle-offer-title-description {
    margin-right: 0px;
    margin-left: 40px;
}

.description-text-clear *{
    max-width: 100% !important;
}

.bundle-offer-details-products {
    overflow-x: visible;
    flex-wrap: wrap;
}

.products-details-page .slick-dots {
    display: none !important;
}


.products-details-page .slick-arrow {
    background-color: #fff;
    border-radius: 50%;
    z-index: 2;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.products-details-page .slick-next.slick-arrow>span,
.products-details-page .slick-prev.slick-arrow>span {
    color: var(--pd-ink);
}

.products-details-page .slick-arrow:focus-visible {
    outline: 2px solid var(--pd-ink);
    outline-offset: 2px;
}

@media (hover: hover) {
    .products-details-page .slick-arrow:hover {
        box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
    }
}

.products-details-page .slick-prev
{
    left: 0px;
}
[dir='rtl'] .products-details-page .slick-prev
{
    right:  0px;
    left: auto;
}


.products-details-page .slick-next
{
    right: 0px;
}

[dir='rtl'] .products-details-page .slick-next
{
    right: auto;
    left: 0px;
}

.col-product-image-wrapper {
    padding-right: 15px;
    padding-left: 15px;
}

#product-custom-user-input-fields .file-label {
    margin-bottom: 0px;
}

#product-custom-user-input-fields .icon-close::after {
    font-family: 'icomoon' !important;
    content: "\f05c";
    font-size: 18px;
    cursor: pointer;
}

#product-custom-user-input-fields .file-label > * {
    margin-right: 10px;
}

.rtl #product-custom-user-input-fields .file-label > * {
    margin-right: unset;
    margin-left: 10px;
}

@media only screen and (max-width: 768px) {

    .user-review-text {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .card-review .review-images-container {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .card-review .review-reply-card {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
    

    .description-paragrah {
        margin: 0px !important;
    }

    .description-title {
        margin-left: 20px;
    }

    .rtl .description-title {
        margin-left: unset;
        margin-right: 20px;
    }

    .bundle-offer-details-products {
        overflow-x: scroll;
        flex-wrap: nowrap;
    }

    .add-review-btn {
        margin-left: auto;
    }

    .rtl .add-review-btn{
        margin-left: unset;
        margin-right: auto;
    }

    .products-details-page .lg-thumbs {
        display: none;
    }

    .products-details-page .slick-dots {
        display: block !important;
    }

    .products-details-page .products-details {
        margin-top: 0px;
    }

    .col-product-image-wrapper {
        padding: 0px;
    }

    .products-details-page .slick-arrow {
        display: none !important;
    }
}

.product-images-carousel-init {
    overflow: hidden;
}

.tabby-product-widget .tabby-promo-snippet {
    font-family: inherit;
}

.products-reviews-page .product-image {
    width: 150px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
    max-height: 180px;
}

.rtl .products-reviews-page .product-image {
    margin-right: 0px;
    margin-left: 15px;
}

.footer-sticky {
    display: block;
    bottom: 0;
    left: 0;
    position: -webkit-sticky;
    position: sticky;
    padding: 0px 20px;
    padding-bottom: calc(0px + env(safe-area-inset-bottom));
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    -webkit-transform: translateZ(0);
}

.questions-card-init {
  padding: 24px;
}

.questions-card-init .image-box {
  margin-bottom: 18px;
  color: var(--primary-color);
}

.questions-card-init .content-box {
  margin-bottom: 18px;
}

.questions-card-init .content-box p{
  font-size: 16px; 
  color: #81808C;
  font-weight: 400;
}

.questions-card-preview {
  padding: 16px;
}

.questions-view_more a {
  color: var(--primary-color);
  font-size: 14px;
}

.questions-card-preview .customer-name {
  margin-bottom: 8px;
  color: #494949;
  font-weight: 400;
}

.questions-card-preview .question-box .question {
  font-size: 16px;
  font-weight: 500;
  color: #494949;
  margin-bottom: 24px;
}

.questions-card-preview .answer-box .answer {
  font-size: 16px;
  font-weight: 400;
  color: #494949;
}

.questions-pagination .page-item {
  font-size: 16px;
}

.questions-pagination .page-item .page-link {
  color: var(--primary-color);
}

.questions-pagination .page-item.selected a {
  background-color: var(--primary-color);
  color: #ffffff;
}

.play-icon, .iframe-video{
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  margin: 0 auto;
}
.play-icon {
  z-index: 2;
  cursor: pointer;
  opacity: 0.5;
  width: 70px !important;
  max-width: 25%;
  border: none !important;
}
  
.play-icon:hover {
  opacity: 1;
}
.iframe-video {
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background-color: black;
}

/* ---------- Product page buy box: tokens, section headings, features (components/product-features.jinja) ----------
   The --pd-* tokens are shared by the later buy-box blocks; override them from
   custom CSS in one line. */
.products-details-page {
  --pd-cream: #FBF8F1;
  --pd-line: #f3e2a8;
  --pd-soft: #f4f4f2;
  --pd-accent: #FFC20E;
  --pd-ink: #111;
  --pd-radius: 14px;
  --pd-muted: #6b6b6b;
  --pd-border: #e6e6e6;
  --pd-dash: #e3d3a0;
  --pd-accent-soft: #FFF6DA;
  --pd-danger: #b42318;
  --pd-danger-soft: #fdecec;
  --pd-sticky-top: calc(var(--fixed-header-h, 72px) + 1rem);
}

.pd-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.pd-sec-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pd-ink);
}

.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pd-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--pd-cream);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
}

.pd-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--pd-accent);
}

.pd-feature-img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.pd-feature-svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--pd-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pd-feature-title {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pd-ink);
}

.pd-feature-text {
  margin: 0;
  font-size: .95rem;
  color: var(--pd-ink);
}

@media (min-width: 992px) {
  .pd-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Product page buy box (spec 2026-10-28) ----------
   templates/product.jinja .pd-buybox: head, price, widgets, face-shape helper,
   numbered steps (#product-form), total, buttons, trust, specs, share.
   Steps are numbered by the pd-step counter; a step that is display:none
   (quantity when sold out) or opts out (.pd-step--bare, the lens steps below)
   takes no number. */
.col-product-info {
  margin-top: 1.5rem;
}

.pd-buybox {
  counter-reset: pd-step;
  padding: 1.25rem;
  color: var(--pd-ink);
  background: var(--pd-cream);
  border: 1px solid var(--pd-line);
  border-radius: calc(var(--pd-radius) + 4px);
}

/* Head */
.pd-brand {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pd-muted);
}

.pd-title {
  margin: 0 0 .5rem;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pd-ink);
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  font-size: 1rem;
  color: var(--pd-muted);
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* inline-block: productOptionsChanged() sets d-inline-block on the low stock pill. */
.pd-pill {
  display: inline-block;
  padding: .25rem .75rem;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--pd-ink);
  background: var(--pd-soft);
  border-radius: 999px;
}

.pd-pill--warn {
  color: var(--pd-danger);
  background: var(--pd-danger-soft);
}

.pd-pill--gift {
  color: var(--pd-ink);
  background: var(--pd-accent-soft);
}

.pd-pill-icon {
  margin-inline-end: .25rem;
  font-size: 1.1rem;
  vertical-align: -2px;
}

/* Short description and price */
.pd-short {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pd-ink);
}

.pd-short-more {
  font-weight: 700;
  color: var(--pd-ink);
  text-decoration: underline;
}

.pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-top: 1rem;
}

.pd-price-now {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--pd-ink);
}

.pd-price-old {
  font-size: 1.15rem;
  color: var(--pd-muted);
}

.pd-price-off {
  padding: .1rem .5rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--pd-danger);
  background: var(--pd-danger-soft);
  border-radius: 6px;
}

.pd-price-old:empty,
.pd-price-off:empty {
  display: none;
}

/* Loyalty, payment and pre-order widgets (Zid partials). Spacing only: some
   partials render hidden markup, so a box here would show up empty. */
.pd-widget {
  margin-top: .5rem;
}

/* Face-shape helper card */
.pd-helper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1.5px solid var(--pd-accent);
  border-radius: calc(var(--pd-radius) - 2px);
}

.pd-helper-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--pd-ink);
  background: var(--pd-accent-soft);
  border-radius: 50%;
}

.pd-helper-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.pd-helper-body {
  flex: 1 1 10rem;
  min-width: 0;
}

.pd-helper-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.pd-helper-text {
  margin: 0;
  font-size: 1rem;
  color: var(--pd-muted);
}

.pd-helper-action {
  flex: 1 1 100%;
}

/* The shared face-shape button, as the card's action. */
.pd-helper .btn-face-shape {
  margin: 0;
  padding: .6rem 1rem;
  font-size: 1.05rem;
  --btn-drift: var(--pd-ink);
  --btn-drift-from: var(--btn-drift);
  --btn-drift-tone: color-mix(in srgb, var(--btn-drift) 72%, #fff);
  --btn-drift-stop: 70%;
  color: #fff;
  background-color: var(--pd-ink);
  border-color: var(--pd-ink);
  border-radius: 8px;
  white-space: nowrap;
}

.pd-helper .btn-face-shape:focus-visible {
  color: #fff;
  box-shadow: 0 0 0 3px var(--pd-accent);
}

/* Steps */
.pd-form {
  margin: 0;
}

.pd-step {
  position: relative;
  min-height: 2rem;
  margin-top: 1.25rem;
  padding-inline-start: 2.75rem;
  counter-increment: pd-step;
}

.pd-step::before {
  content: counter(pd-step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pd-accent);
  background: var(--pd-ink);
  border-radius: 50%;
}

.pd-step-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pd-ink);
}

.pd-step-value {
  font-weight: 400;
  color: var(--pd-muted);
}

/* A product without variants still includes the partial (it carries Zid's
   variant script) but gets no number. */
.pd-step--bare {
  min-height: 0;
  margin-top: 0;
  padding-inline-start: 0;
  counter-increment: none;
}

.pd-step--bare::before {
  display: none;
}

/* Lens product: the purchase-card step counts only once lens-config.js has
   decided the fields fit (.lens-flow-ready on body); the native fields step
   stops counting then, because lens-config.js hides those fields. Without the
   flow the page numbers like any other product (spec 4.4). */
.pd-step--lens {
  min-height: 0;
  margin-top: 0;
  padding-inline-start: 0;
  counter-increment: none;
}

.pd-step--lens::before,
.pd-step-title--lens {
  display: none;
}

.lens-flow-ready .pd-step--lens {
  min-height: 2rem;
  margin-top: 1.25rem;
  padding-inline-start: 2.75rem;
  counter-increment: pd-step;
}

.lens-flow-ready .pd-step--lens::before,
.lens-flow-ready .pd-step-title--lens {
  display: flex;
}

.lens-flow-ready .pd-step--native {
  min-height: 0;
  margin-top: 0;
  padding-inline-start: 0;
  counter-increment: none;
}

.lens-flow-ready .pd-step--native::before {
  display: none;
}

/* The step title replaces the cards' own label on this page. */
.pd-step .lens-type-label {
  display: none;
}

.pd-step .lens-type {
  margin-top: 0;
}

/* Variant chips (markup from Zid's variants_list partial) */
.pd-variants ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .5rem;
  padding: 0;
  list-style: none;
}

.pd-variants li {
  padding: .5rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  cursor: pointer;
}

.pd-variants li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.15rem;
  color: var(--pd-ink);
}

/* 2px border without moving the label: the padding gives back the extra pixel. */
.pd-variants li.active {
  padding: calc(.5rem - 1px) calc(1rem - 1px);
  font-weight: 700;
  border: 2px solid var(--pd-ink);
}

/* Colour circles: the page script adds .pd-swatches to a colour option's list
   and .pd-swatch + --pd-swatch to each value it can name. The li keeps the
   chip border as the ring (2px ink when .active) and ::before paints the
   colour inside it; the value name stays in the markup for screen readers and
   in the title tooltip. Unnamed values keep the chip look. */
.pd-variants .pd-swatch {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  overflow: hidden;
  color: transparent;
  white-space: nowrap;
  border-radius: 50%;
}

/* The inner link's own outline is clipped by overflow, so ring the circle. */
.pd-swatch:focus-within {
  outline: 2px solid var(--pd-ink);
  outline-offset: 2px;
}

.pd-variants .pd-swatch::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--pd-swatch, var(--pd-soft));
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

/* Above the colour, so a click still lands on Zid's link. */
.pd-swatches .pd-swatch a {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: transparent;
}

.pd-variants .pd-step-value {
  margin-inline-start: .35rem;
}

/* If Zid renders an option as a <select>, it gets the field look (no circles). */
.pd-variants select {
  width: 100%;
  min-height: 3rem;
  padding: 0 .75rem;
  color: var(--pd-ink);
  background-color: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
}

/* Quantity stepper; the real #product-quantity select is .sr-only next to it. */
.pd-qty {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
}

.pd-qty-btn {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pd-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* aria-disabled, not disabled: a disabled button would drop keyboard focus at 1 or max. */
.pd-qty-btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
}

.pd-qty-btn:focus-visible {
  background: var(--pd-soft);
  outline: 2px solid var(--pd-ink);
  outline-offset: -2px;
}

.pd-qty-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0 .5rem;
  font-weight: 700;
  border-inline: 1px solid var(--pd-border);
}

/* Out of stock: notify-me card */
.pd-notify {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
}

.pd-notify-title {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.pd-notify-text {
  margin: 0;
  color: var(--pd-muted);
}

.form-notify-me {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0;
}

/* Country key then number, left to right in both languages. */
.form-notify-me-phone-row {
  display: flex;
  gap: .75rem;
  direction: ltr;
}

.send-notify-country-key {
  flex: 0 0 6.5rem;
}

.form-notify-me-submit-button-row {
  display: flex;
  justify-content: flex-end;
}

.btn-send-notify {
  min-width: 8rem;
  min-height: 3.25rem;
  border-radius: 10px;
}

/* Total */
.pd-total {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--pd-dash);
}

.pd-total-main {
  display: flex;
  flex-direction: column;
}

.pd-total-label {
  font-size: .95rem;
  color: var(--pd-muted);
}

.pd-total-amount {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.pd-total-note {
  display: none;
  font-size: .95rem;
  color: var(--pd-muted);
}

.lens-flow-ready .pd-total-note {
  display: block;
}

/* Buttons: main + heart, then Buy now + Apple Pay */
.pd-buttons {
  margin-top: 1rem;
}

.pd-buy-row {
  display: flex;
  align-items: stretch;
  gap: .6rem;
}

/* Black by default; the theme's button colour settings (--theme-btn-*) win when
   set, and the lens flow's .lens-btn colours win over both. */
.btn-add-to-cart {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.75rem;
  padding: .75rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--theme-btn-text, #fff);
  background-color: var(--theme-btn-bg, var(--pd-ink));
  border: 1px solid var(--theme-btn-bg, var(--pd-ink));
  border-radius: 12px;
}

/* Bootstrap's .btn:hover would turn the label dark on the dark button. */
.btn-add-to-cart:hover,
.btn-add-to-cart:focus {
  color: var(--theme-btn-text, #fff);
}

.btn-add-to-cart:focus-visible,
.btn-buy-now:focus-visible {
  box-shadow: 0 0 0 3px var(--pd-accent);
}

.add-to-cart-icon,
.buy-now-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--pd-icon) no-repeat center / contain;
  mask: var(--pd-icon) no-repeat center / contain;
}

.pd-wish {
  position: static;
  flex: 0 0 auto;
  width: 3.75rem;
  height: auto;
  margin: 0;
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The hearts are buttons (Zid toggles them by saved state): strip the UA button look
   (the 25x20 mask size comes from .icon-heart-mask) and show focus on the box,
   because the mask clips outlines. */
.pd-wish .icon-heart-mask {
  padding: 0;
  border: 0;
  cursor: pointer;
}

.pd-wish:focus-within {
  outline: 2px solid var(--pd-ink, currentColor);
  outline-offset: 2px;
}

/* Stacked: Zid's Apple Pay partial may render an empty box on other browsers,
   which would otherwise take half the row from Buy now. */
.pd-quick-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .6rem;
}

.btn-buy-now {
  --btn-drift: var(--pd-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.75rem;
  padding: .75rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pd-ink);
  background-color: #fff;
  border: 1.5px solid var(--pd-ink);
  border-radius: 12px;
}

.btn-buy-now:hover,
.btn-buy-now:focus {
  color: var(--pd-ink);
}

.btn-buy-now:focus-visible {
  color: #fff;
}

/* SKU and weight tiles; productOptionsChanged() toggles d-none on each. */
.pd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.pd-spec {
  padding: .6rem .85rem;
  font-size: 1.05rem;
  background: var(--pd-soft);
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.pd-spec-label {
  display: block;
  font-size: .95rem;
  color: var(--pd-muted);
}

/* Share */
.pd-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--pd-muted);
}

.pd-share-label {
  margin-inline-end: .25rem;
}

.pd-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.15rem;
  color: var(--pd-ink);
  background: var(--pd-soft);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}

.pd-share-link:focus-visible {
  color: #fff;
  background: var(--pd-ink);
  outline: 2px solid var(--pd-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .btn-buy-now:hover {
    color: #fff;
  }

  .pd-helper .btn-face-shape:hover {
    color: #fff;
  }

  .pd-qty-btn:hover {
    background: var(--pd-soft);
  }

  .pd-share-link:hover {
    color: #fff;
    background: var(--pd-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-share-link {
    transition: none;
  }
}

@media (min-width: 576px) {
  .pd-helper {
    flex-wrap: nowrap;
  }

  .pd-helper-action {
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  .pd-buybox {
    padding: 1.75rem;
  }
}

/* Desktop: the column does not stretch to the row height (.row is flex), so
   it has room to stick. Sticky is opt-in: the page script adds .is-sticky only
   while the box fits under the header (spec 4.1), using the same offset. */
@media (min-width: 992px) {
  .col-product-info {
    align-self: flex-start;
    margin-top: 0;
  }

  .col-product-info.is-sticky {
    position: sticky;
    top: var(--pd-sticky-top);
  }
}

/* ---------- Product page gallery (spec 2026-10-28, 4.2) ----------
   templates/product.jinja .pd-gallery-stage: the carousel (or the empty box),
   the product badge and the try-on pill over it, thumbnails as tiles under
   it. Transparent on purpose: each photo shows with its own background.
   Restyle only: Slick, video, PhotoSwipe stay as they were. */
.pd-gallery-stage {
  position: relative;
  border-radius: var(--pd-radius);
}

/* Rounds the slides; the dots (appended outside it) stay visible on phones. */
.pd-gallery-stage .product-images,
.product-images-empty .content {
  overflow: hidden;
  border-radius: var(--pd-radius);
}

/* Gallery arrows: the arrow alone, no disc. Photos are mostly white or
   transparent, where any fill or edge reads as a grey or white circle. */
.pd-gallery-stage .slick-arrow,
.pd-gallery-stage .slick-arrow:focus {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

.pd-gallery-stage .slick-arrow > span {
  transition: opacity .2s ease;
}

@media (hover: hover) {
  .pd-gallery-stage .slick-arrow:hover {
    background-color: transparent;
    box-shadow: none;
  }

  .pd-gallery-stage .slick-arrow:hover > span {
    opacity: .6;
  }
}

.pd-gallery-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
}

/* Bottom of the stage; only the pill takes clicks, so swipes still reach Slick. */
.pd-gallery-tools {
  position: absolute;
  bottom: 1rem;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

/* Out of the way while a video plays (its controls sit at the bottom). The
   selector is longer than usual; nothing here is meant to be overridden. */
.pd-gallery-stage:has(.iframe-video:not(.d-none)) .pd-gallery-tools {
  display: none;
}

/* tryon.css loads after this file, hence the .pd-gallery-tools prefix. */
.pd-gallery-tools .btn-try-on {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: .7rem 1.5rem;
  font-size: 1.1rem;
  --btn-drift: var(--pd-ink);
  --btn-drift-from: var(--btn-drift);
  --btn-drift-tone: color-mix(in srgb, var(--btn-drift) 72%, #fff);
  --btn-drift-stop: 70%;
  color: #fff;
  background-color: var(--pd-ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  pointer-events: auto;
}

.pd-gallery-tools .btn-try-on:focus-visible {
  color: #fff;
  outline: 2px solid var(--pd-accent);
  outline-offset: 2px;
}

/* Thumbnails: rounded tiles, the current slide's with an ink border
   (.is-active is set by the page script on Slick's init/afterChange). */
.lg-thumbs .thumb-image-a {
  padding: .25rem;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
}

.thumb-image-a.is-active {
  padding: calc(.25rem - 1px);
  border: 2px solid var(--pd-ink);
}

@media (hover: hover) {
  .pd-gallery-tools .btn-try-on:hover {
    color: #fff;
  }
}

/* Phones: Slick's dots hang below the stage. */
@media (max-width: 768px) {
  .pd-gallery-stage {
    margin-bottom: 2rem;
  }
}

/* ---------- Below the fold (spec 2026-10-28, 4.1 / 4.6): section heading extras,
   bundle offer, description tabs, reviews, questions, related products ---------- */
.pd-sec-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pd-sec-sub {
  margin: .25rem 0 0;
  font-size: 1.05rem;
  color: var(--pd-muted);
}

.pd-sec-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pd-ink);
  text-decoration: underline;
}

/* Outlined action next to a section title (add review, add question, all reviews).
   main.js sets an inline display:block on #add-review-btn for logged-in visitors. */
.pd-sec-btn,
.pd-questions .add-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: .5rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  --btn-drift: var(--pd-ink);
  --btn-drift-from: #fff;
  --btn-drift-tone: var(--btn-drift);
  --btn-drift-stop: 62%;
  color: var(--pd-ink);
  background-color: #fff;
  border: 1.5px solid var(--pd-ink);
  border-radius: 12px;
  cursor: pointer;
  transition: background-position .9s cubic-bezier(.22, 1, .36, 1), color .4s ease;
}

@media (hover: hover) {
  .pd-sec-btn:hover,
  .pd-questions .add-review-btn:hover {
    color: #fff;
    text-decoration: none;
  }

  .pd-sec-link:hover {
    color: var(--pd-ink);
    text-decoration: none;
  }
}

.pd-sec-btn:focus-visible,
.pd-questions .add-review-btn:focus-visible {
  color: #fff;
  outline: 2px solid var(--pd-accent);
  outline-offset: 2px;
}

.pd-sec-link:focus-visible {
  text-decoration: none;
  outline: 2px solid var(--pd-accent);
  outline-offset: 2px;
}

/* Bundle offer: products in a dashed accent box. Padding matches the row's
   negative gutter so the cards stay inside. */
.pd-bundle-body {
  padding: 1rem 1.25rem;
  background: var(--pd-accent-soft);
  border: 1px dashed var(--pd-accent);
  border-radius: var(--pd-radius);
}

/* Description / Specifications */
.pd-desc {
  --pd-desc-text: #444;
}

.pd-tabs {
  display: flex;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--pd-border);
}

.pd-tab {
  margin-bottom: -1px;
  padding: .85rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--pd-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.pd-tab.is-active {
  font-weight: 700;
  color: var(--pd-ink);
  border-bottom-color: var(--pd-ink);
}

@media (hover: hover) {
  .pd-tab:hover {
    color: var(--pd-ink);
  }
}

.pd-tab:focus-visible {
  color: var(--pd-ink);
  outline: 2px solid var(--pd-accent);
  outline-offset: -2px;
}

.pd-tabpanel:focus-visible {
  outline: 2px solid var(--pd-accent);
  outline-offset: 4px;
}

.pd-desc-body,
.pd-spec-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--pd-desc-text);
}

.pd-desc-media {
  margin-top: 1.25rem;
}

.pd-desc-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--pd-radius);
  background: var(--pd-soft);
}

@media (min-width: 992px) {
  .pd-desc--media .pd-desc-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .pd-desc-media {
    margin-top: 0;
  }
}

/* After the grid rule: an inactive panel stays hidden even with the side image. */
.pd-tabpanel[hidden] {
  display: none;
}

/* Reviews: score card beside the list from 992px. */
.pd-reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pd-score {
  padding: 1.25rem;
  text-align: center;
  background: var(--pd-cream);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
}

.pd-score-avg {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--pd-ink);
}

.pd-score-count {
  display: block;
  margin-top: .25rem;
  font-size: 1rem;
  color: var(--pd-muted);
}

.pd-score-bars {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pd-score-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .4rem 0;
  font-size: 1rem;
  color: var(--pd-ink);
}

.pd-score-label {
  flex: 0 0 5.5rem;
  text-align: start;
}

.pd-score-bar {
  position: relative;
  flex: 1 1 auto;
  height: 6px;
  overflow: hidden;
  background: var(--pd-border);
  border-radius: 3px;
}

.pd-score-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: var(--pd-w, 0%);
  background: var(--pd-accent);
  border-radius: 3px;
}

/* Replaces the fixed 25px width .rating_count_N has on the reviews page. */
.pd-score-num {
  width: auto;
  min-width: 2ch;
  text-align: end;
}

.pd-reviews-empty {
  padding: 1rem;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
}

.pd-reviews-list {
  min-width: 0;
}

.pd-reviews-list .card-review {
  border: 1px solid var(--pd-border);
  border-radius: 12px;
}

.pd-reviews-list .card-body {
  padding: 1rem 1.25rem;
}

@media (min-width: 992px) {
  .pd-reviews-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .pd-score {
    flex: 0 0 20rem;
  }

  .pd-reviews-list {
    flex: 1 1 auto;
  }
}

/* Questions: each one a bordered card (components/product-questions.jinja). */
.pd-questions .card {
  border: 1px solid var(--pd-border);
  border-radius: 12px;
}

.pd-questions .questions-card-preview {
  margin-bottom: .75rem;
  padding: 1rem 1.25rem;
}

.pd-related-slider {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .pd-sec-btn,
  .pd-questions .add-review-btn {
    transition: none;
  }
}

/* ---------- Lens flow (components/lens-type.jinja, components/lens-config.jinja) ----------
   Matches docs/superpowers/specs/2026-10-27-ebsar-lens-flow-mockup.html.
   Every colour is a variable on the block root so the merchant can retune it
   from custom CSS in one line; button colours come from the theme settings. */
.lens-type,
.lens-flow {
  --lens-y: #FFC20E;
  --lens-y-soft: #FFF6DA;
  --lens-y-line: #f3e2a8;
  --lens-ink: #111;
  --lens-muted: #6b6b6b;
  --lens-line: #e3e3e3;
  --lens-surface: #fff;
  --lens-soft: #f2f2f2;
  --lens-scroll: #d2d2d2;
  --lens-radius: 12px;
  --lens-btn-bg-final: var(--lens-btn-bg, var(--primary-color, var(--lens-y)));
  --lens-btn-text-final: var(--lens-btn-text, #fff);
}

.lens-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lens-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Zid's fields stay in the form (submitted, and shown/hidden by Zid's SDK)
   but out of sight once the flow is ready. */
.lens-native.is-lens-ready {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Purchase-type cards on the product page */
.lens-type {
  margin-top: 20px;
}

.lens-type-label {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--lens-muted);
}

.lens-type-card,
.lens-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--lens-line);
  border-radius: var(--lens-radius);
  background: var(--lens-surface);
  color: var(--lens-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.lens-type-card.is-active,
.lens-opt.is-active {
  border: 2px solid var(--lens-y);
  background: var(--lens-y-soft);
}

.lens-type.is-attention .lens-type-card {
  border-color: var(--lens-y);
  animation: lens-shake .4s;
}

.lens-type-icon,
.lens-opt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lens-soft);
}

.lens-opt-icon {
  width: 40px;
  height: 40px;
}

.lens-opt-icon img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.lens-type-card.is-active .lens-type-icon,
.lens-opt.is-active .lens-opt-icon {
  background: var(--lens-y);
}

.lens-type-text,
.lens-opt-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.lens-type-title,
.lens-opt-title {
  font-size: 1.25rem;
}

.lens-type-sub,
.lens-opt-sub {
  color: var(--lens-muted);
  font-size: 1.08rem;
}

.lens-radio {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-inline-start: auto;
  border: 1.5px solid #aaa;
  border-radius: 50%;
  background: var(--lens-surface);
}

.is-active > .lens-radio {
  border-color: var(--lens-ink);
  background: var(--lens-y);
}

.is-active > .lens-radio::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

/* Buy now and Apple Pay would skip the lens panel. */
.lens-flow-ready .lens-quick-buy {
  display: none;
}

.lens-type-extra:empty {
  display: none;
}

/* Main button and the panel's Continue / Add to cart */
.btn-add-to-cart.lens-btn,
.lens-btn {
  --btn-drift: var(--lens-btn-bg-final);
  background-color: var(--lens-btn-bg-final);
  border-color: var(--lens-btn-bg-final);
  color: var(--lens-btn-text-final);
}

/* "Choose lenses" shows the lens icon; "add to cart" keeps the cart. */
.is-lens .add-to-cart-icon {
  -webkit-mask-image: var(--pd-icon-lens);
  mask-image: var(--pd-icon-lens);
}

.btn-add-to-cart.lens-btn {
  --lens-btn-bg-final: var(--lens-btn-bg, var(--primary-color));
  --lens-btn-text-final: var(--lens-btn-text, #fff);
}

.lens-flow-warning {
  display: block;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff4e5;
  color: #8a4b00;
  font-size: 1.05rem;
}

/* Panel */
.lens-flow {
  position: fixed;
  inset: 0;
  /* Bootstrap's modal layer: the panel must cover the sticky header. */
  z-index: 1050;
  color: var(--lens-ink);
}

.lens-flow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .3s;
}

.lens-flow-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--lens-surface);
  box-shadow: 0 0 24px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .35s ease;
}

.rtl .lens-flow-panel {
  transform: translateX(-100%);
}

.lens-flow.is-open .lens-flow-backdrop {
  opacity: 1;
}

.lens-flow.is-open .lens-flow-panel {
  transform: none;
}

/* Locks the page behind the open panel. */
.lens-flow-open {
  overflow: hidden;
}

.lens-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lens-line);
}

.lens-flow-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.lens-flow-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

.rtl .lens-flow-icon-btn .lens-icon {
  transform: scaleX(-1);
}

.lens-flow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 18px 0;
  list-style: none;
  color: var(--lens-muted);
  font-size: 1rem;
}

.lens-flow-step {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
}

.lens-flow-step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lens-line);
}

.lens-flow-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee;
  font-size: .95rem;
  font-style: normal;
  font-weight: 700;
}

.lens-flow-step.is-done .lens-flow-step-num,
.lens-flow-step.is-current .lens-flow-step-num {
  background: var(--lens-ink);
  color: var(--lens-y);
}

.lens-flow-step.is-current {
  color: var(--lens-ink);
  font-weight: 700;
}

.lens-flow-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
}

.lens-flow-body.is-attention .lens-pkg {
  animation: lens-shake .4s;
}

.lens-flow-hint {
  margin: 4px 0 12px;
  color: var(--lens-muted);
  font-size: 1.05rem;
}

/* Package cards: light / highlight / dark, as on the EBSAR comparison board */
.lens-pkg {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px solid var(--lens-line);
  border-radius: 14px;
  background: #fafafa;
  color: var(--lens-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.lens-pkg-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lens-pkg-lens {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #e9eef2);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
  font-size: .95rem;
}

.lens-pkg-lens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lens-pkg-names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lens-pkg-prefix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  direction: ltr;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.lens-pkg-prefix .lens-icon {
  width: 13px;
  height: 13px;
}

.lens-pkg-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.lens-pkg-level {
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--lens-ink);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.lens-pkg-price {
  margin-inline-start: auto;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: end;
}

.lens-pkg-price small {
  display: block;
  font-size: .95rem;
  font-weight: 400;
  opacity: .7;
}

.lens-pkg-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 1rem;
}

.lens-pkg-feat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lens-pkg-feat .lens-icon {
  width: 16px;
  height: 16px;
}

.lens-pkg-feat.is-off {
  opacity: .35;
}

.lens-pkg-badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 10px;
  background: var(--lens-y);
  color: var(--lens-ink);
  font-size: .95rem;
  font-weight: 800;
}

.lens-pkg-badge .lens-icon {
  width: 12px;
  height: 12px;
}

.lens-pkg--highlight {
  border-color: var(--lens-y-line);
  background: var(--lens-y-soft);
}

.lens-pkg--highlight .lens-pkg-title {
  color: #e0a800;
}

.lens-pkg--highlight .lens-pkg-level,
.lens-pkg--dark .lens-pkg-level {
  background: var(--lens-y);
  color: var(--lens-ink);
}

.lens-pkg--highlight .lens-pkg-lens {
  background: radial-gradient(circle at 35% 35%, #fff, #c9c9ff);
  color: #2b3a9a;
}

.lens-pkg--dark {
  border-color: var(--lens-ink);
  background: var(--lens-ink);
  color: #fff;
}

.lens-pkg--dark .lens-pkg-title,
.lens-pkg--dark .lens-pkg-feat .lens-icon {
  color: var(--lens-y);
}

.lens-pkg--dark .lens-pkg-lens {
  background: radial-gradient(circle at 35% 35%, #444, #000);
  box-shadow: 0 0 0 2px var(--lens-y);
  color: var(--lens-y);
}

.lens-pkg.is-active {
  outline: 3px solid var(--lens-ink);
  outline-offset: 2px;
}

.lens-pkg--dark.is-active {
  outline-color: var(--lens-y);
}

/* Readings */
.lens-manual {
  margin: -2px 0 12px;
}

.lens-grid {
  display: grid;
  grid-template-columns: 70px repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: var(--lens-radius);
  background: #fafafa;
}

.lens-grid-head {
  color: var(--lens-muted);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.lens-grid-eye {
  font-size: 1.08rem;
}

.lens-dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--lens-line);
  border-radius: 8px;
  background: var(--lens-surface);
  color: var(--lens-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.lens-dd-btn:focus-visible,
.lens-dd-btn.is-open {
  border-color: var(--lens-y);
  outline: 0;
  box-shadow: 0 0 0 3px var(--lens-y-soft);
}

.lens-dd-btn:disabled {
  background: var(--lens-soft);
  color: var(--lens-muted);
  cursor: not-allowed;
}

.lens-dd-value {
  overflow: hidden;
  white-space: nowrap;
}

.lens-dd-chev {
  width: 16px;
  height: 16px;
  color: var(--lens-muted);
  transform: rotate(180deg);
  transition: transform .2s;
}

.lens-dd-btn.is-open .lens-dd-chev {
  transform: none;
}

.lens-dd-list {
  position: absolute;
  z-index: 2;
  min-width: 96px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lens-line);
  border-radius: 10px;
  background: var(--lens-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  list-style: none;
  transform-origin: top center;
  animation: lens-dd-in .16s ease-out;
}

.lens-dd-list--up {
  transform-origin: bottom center;
}

.lens-dd-list.is-closing {
  pointer-events: none;
  animation: lens-dd-out .12s ease-in forwards;
}

@keyframes lens-dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.97);
  }
}

@keyframes lens-dd-out {
  to {
    opacity: 0;
    transform: translateY(-4px) scale(.97);
  }
}

.lens-dd-list--up {
  animation-name: lens-dd-in-up;
}

.lens-dd-list--up.is-closing {
  animation-name: lens-dd-out-up;
}

@keyframes lens-dd-in-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.97);
  }
}

@keyframes lens-dd-out-up {
  to {
    opacity: 0;
    transform: translateY(4px) scale(.97);
  }
}

/* Chrome and Safari drop these pseudo-elements once scrollbar-width is set,
   so the standard properties only go to browsers without them. */
.lens-flow-body::-webkit-scrollbar,
.lens-dd-list::-webkit-scrollbar {
  width: 4px;
}

.lens-flow-body::-webkit-scrollbar-track,
.lens-dd-list::-webkit-scrollbar-track {
  background: transparent;
}

.lens-flow-body::-webkit-scrollbar-thumb,
.lens-dd-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--lens-scroll);
}

@media (hover: hover) {
  .lens-flow-body::-webkit-scrollbar-thumb:hover,
  .lens-dd-list::-webkit-scrollbar-thumb:hover {
    background: var(--lens-muted);
  }
}

@supports not selector(::-webkit-scrollbar) {
  .lens-flow-body,
  .lens-dd-list {
    scrollbar-width: thin;
    scrollbar-color: var(--lens-scroll) transparent;
  }
}

.lens-dd-list:focus {
  outline: 0;
}

.lens-dd-opt {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--lens-ink);
  cursor: pointer;
}

.lens-dd-opt.is-focused {
  background: var(--lens-soft);
}

.lens-dd-opt.is-active {
  background: var(--lens-y-soft);
  font-weight: 700;
}

.lens-measures {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--lens-radius);
  background: #fafafa;
}

.lens-measure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
}

.lens-measure-label {
  display: block;
  font-size: 1.08rem;
}

.lens-measure-hint {
  display: block;
  margin-top: 2px;
  color: var(--lens-muted);
  font-size: 1rem;
}

.lens-measures .lens-check + .lens-measure {
  margin-top: 12px;
}

.lens-check,
.lens-grid-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 1.08rem;
}

.lens-check {
  cursor: pointer;
}

.lens-check-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #aaa;
  border-radius: 6px;
  background: var(--lens-surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.lens-check-box::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-start: 5.5px;
  width: 6px;
  height: 11px;
  border: solid var(--lens-ink);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.6);
  transition: opacity .15s, transform .15s;
}

.lens-check-box:checked {
  border-color: var(--lens-ink);
  background: var(--lens-y);
}

.lens-check-box:checked::after {
  opacity: 1;
  transform: rotate(45deg);
}

.lens-check-box:focus-visible {
  border-color: var(--lens-y);
  outline: 0;
  box-shadow: 0 0 0 3px var(--lens-y-soft);
}

@media (hover: hover) {
  .lens-check:hover .lens-check-box:not(:checked) {
    border-color: var(--lens-y);
  }
}

.lens-grid-extra .lens-dd-btn {
  max-width: 140px;
}

.lens-eyes {
  display: flex;
  gap: 8px;
}

.lens-eye {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--lens-line);
  border-radius: var(--lens-radius);
  background: var(--lens-surface);
  font: inherit;
  cursor: pointer;
}

.lens-eye.is-active {
  border: 2px solid var(--lens-y);
  background: var(--lens-y-soft);
}

.lens-note {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--lens-y-line);
  border-radius: var(--lens-radius);
  background: var(--lens-y-soft);
  font-size: 1.15rem;
  line-height: 1.6;
}

.lens-note p {
  margin: 0;
  white-space: pre-line;
}

/* Upload */
.lens-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 40px 16px;
  border: 2px dashed #ccc;
  border-radius: var(--lens-radius);
  background: none;
  color: var(--lens-muted);
  font: inherit;
  cursor: pointer;
}

.lens-drop .lens-icon {
  width: 40px;
  height: 40px;
  color: #bbb;
}

.lens-drop-title {
  color: var(--lens-ink);
}

/* Add-ons */
.lens-opt-price {
  font-weight: 800;
  white-space: nowrap;
}

.lens-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ccc;
}

.lens-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start .2s;
}

.lens-opt.is-active .lens-switch {
  background: var(--lens-ink);
}

.lens-opt.is-active .lens-switch::after {
  inset-inline-start: 23px;
  background: var(--lens-y);
}

.lens-addon--sub {
  margin: -16px 0 12px;
  padding: 14px 16px;
  border: 2px solid var(--lens-y);
  border-top: 0;
  border-radius: 0 0 var(--lens-radius) var(--lens-radius);
  background: var(--lens-y-soft);
}

.lens-addon-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.lens-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lens-opt--head {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
}

.lens-choices {
  margin-bottom: 12px;
}

.lens-swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 1px solid #ccc;
  outline-offset: 3px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.lens-swatch.is-active {
  outline: 2px solid var(--lens-ink);
}

.lens-swatch-name {
  font-size: 1.08rem;
  font-weight: 700;
}

.lens-input {
  width: 100%;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

/* Sticky footer */
.lens-flow-foot {
  padding: 0 18px 16px;
  border-top: 1px solid var(--lens-line);
  background: var(--lens-surface);
}

.lens-flow-progress {
  height: 4px;
  margin: 0 -18px 12px;
  background: #eee;
}

.lens-flow-progress-bar {
  display: block;
  width: 0;
  height: 4px;
  background: var(--lens-y);
  transition: width .3s;
}

.lens-flow-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lens-flow-sum-chev {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.lens-flow-sum[aria-expanded="true"] .lens-flow-sum-chev {
  transform: rotate(180deg);
}

.lens-flow-sum-total-label {
  margin-inline-start: auto;
  color: var(--lens-muted);
  font-size: 1.08rem;
}

.lens-flow-sum-total {
  font-size: 1.5rem;
  font-weight: 900;
}

.lens-flow-chosen {
  min-height: 16px;
  margin: 2px 0 12px;
  color: var(--lens-muted);
  font-size: 1rem;
}

.lens-flow-breakdown {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.lens-flow-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
}

.lens-flow-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 40px;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.lens-flow-next:disabled {
  opacity: .7;
}

.lens-flow-next.is-last::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3Cpath d='M2 3h3l2.5 12h11l2-8H6.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (hover: hover) {
  .lens-type-card:hover,
  .lens-opt:hover,
  .lens-eye:hover {
    border-color: var(--lens-y);
  }

  .lens-flow-icon-btn:hover {
    background: var(--lens-soft);
  }
}

.lens-type-card:focus-visible,
.lens-opt:focus-visible,
.lens-eye:focus-visible,
.lens-pkg:focus-visible,
.lens-swatch:focus-visible {
  border-color: var(--lens-y);
  outline: 2px solid var(--lens-ink);
  outline-offset: 2px;
}

.lens-flow-icon-btn:focus-visible {
  background: var(--lens-soft);
}

@media (min-width: 768px) {
  .lens-flow-panel {
    max-width: 520px;
  }

  .lens-flow-head,
  .lens-flow-body {
    padding-inline: 22px;
  }

  .lens-flow-foot {
    padding: 0 22px 18px;
  }

  .lens-flow-progress {
    margin-inline: -22px;
  }
}

@keyframes lens-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .lens-flow-backdrop,
  .lens-flow-panel,
  .lens-flow-progress-bar,
  .lens-switch::after,
  .lens-check-box,
  .lens-check-box::after,
  .lens-dd-btn,
  .lens-dd-chev,
  .lens-type-card,
  .lens-opt {
    transition: none;
  }

  .lens-dd-list,
  .lens-dd-list.is-closing {
    animation: none;
  }

  .lens-type.is-attention .lens-type-card,
  .lens-flow-body.is-attention .lens-pkg {
    animation: none;
  }
}

/* Phone sticky bar (spec 4.5): total + a button that clicks the real main
   button. Shown by the page script only below 992px while the main button is
   off screen. z-index 2 sits under the sticky header (3), Bootstrap modals and
   the lens panel (1050). */
.pd-sticky-on {
  --pd-sticky-h: 64px;
  padding-bottom: calc(var(--pd-sticky-h) + env(safe-area-inset-bottom));
}

.pd-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--pd-line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
}

.pd-sticky[hidden] {
  display: none;
}

.pd-sticky.is-visible {
  transform: none;
  visibility: visible;
}

.pd-sticky-total {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  line-height: 1.3;
}

.pd-sticky-label {
  font-size: 1.05rem;
  color: var(--pd-muted, #666);
}

.pd-sticky-amount {
  font-size: 1.4rem;
  color: var(--pd-ink);
}

.pd-sticky-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: .5rem 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--theme-btn-text, #fff);
  background-color: var(--theme-btn-bg, var(--pd-ink));
  border: 1px solid var(--theme-btn-bg, var(--pd-ink));
  border-radius: 12px;
}

.pd-sticky-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--pd-accent);
}

/* layout_loyalty_points.js fixes its button at an inline `bottom: 50px`, which
   the bar would cover; an inline style can only be beaten with !important. */
.pd-sticky-on .loyalty_button_footer {
  bottom: calc(var(--pd-sticky-h) + 16px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 992px) {
  .pd-sticky {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-sticky {
    transition: none;
  }
}
