/* Shared commerce components extend the existing Classic, Nova and admin tokens. */
.checkout-form > .form-panel {
    align-self: stretch;
    width: 100%;
    min-width: 0
}

.variant-buy .buy-form > label {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.sku-help {
    cursor: help;
    text-decoration: underline dotted #829b90;
    text-underline-offset: 4px;
    width: fit-content
}

.product-editor .image-dropzone {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 24px;
    border: 2px dashed #b9cec4;
    border-radius: 14px;
    background: #f7faf8;
    cursor: pointer;
    text-align: center
}

.image-dropzone:hover, .image-dropzone:focus-within {
    background: #edf5f0;
    border-color: #285f4f
}

.image-dropzone strong {
    font-size: 16px;
    color: #225542
}

.image-dropzone span {
    font-weight: 400;
    color: #64796e
}

.product-editor .image-dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%
}

.image-gallery-editor {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px
}

.image-preview {
    margin: 0;
    border: 1px solid #dfe8e2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff
}

.image-preview > img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block
}

.image-preview figcaption {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 12px 5px
}

.image-actions {
    display: flex;
    gap: 7px;
    padding: 5px 12px 12px
}

.image-actions .chip-button.icon-button {
    width: 32px
}

.chip-button:disabled {
    opacity: .35;
    cursor: default
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px
}

.gallery-thumbnails button {
    flex-shrink: 0;
    padding: 3px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px
}

.gallery-thumbnails button[aria-pressed=true] {
    border-color: #245b48
}

.gallery-thumbnails img {
    width: 76px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    display: block
}

.product-gallery {
    min-width: 0
}

.product-gallery .detail-image {
    width: 100%
}

/* Compact storefront product detail: gallery and purchase information only. */
.variant-detail.detail-layout {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    align-items: start;
    gap: clamp(22px, 3vw, 42px);
    margin: 8px 0 46px
}

.product-page {
    padding-top: 16px
}

.product-page .breadcrumb {
    margin-bottom: 14px
}

.variant-detail .detail-image {
    display: grid;
    place-items: center;
    height: clamp(450px, 42vw, 520px);
    padding: 8px;
    border: 1px solid #e4e7e2;
    border-radius: 16px;
    background: #fafaf8
}

.variant-detail .detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px
}

.variant-detail .gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    overflow: visible
}

.variant-detail .gallery-thumbnails button {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / .82;
    padding: 3px
}

.variant-detail .gallery-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.variant-detail .detail-copy {
    align-self: start;
    min-width: 0;
    padding: clamp(22px, 2.2vw, 32px);
    border: 1px solid #e3e6e1;
    border-radius: 16px;
    background: color-mix(in srgb, var(--store-bg, #fff) 94%, #f7f4ef)
}

.variant-detail .detail-copy .eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: .16em
}

.variant-detail .detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.2vw, 46px)
}

.variant-detail .detail-copy > p:not(.muted) {
    margin: 0;
    line-height: 1.6
}

.variant-detail .big-price {
    margin: 20px 0 12px;
    font-size: clamp(31px, 3vw, 42px);
    line-height: 1.1
}

.variant-detail .option-selector {
    margin-top: 18px
}

.variant-detail .stock-status {
    display: inline-flex;
    align-items: center;
    margin: 12px 0 0;
    padding: 0;
    font-weight: 700
}

.variant-detail [data-detail-sku] {
    display: inline-block;
    margin: 9px 0 0;
    padding-left: 14px;
    border-left: 1px solid #d9dfda
}

.variant-detail .buy-form {
    display: grid;
    grid-template-columns: 140px minmax(112px, 113px);
    align-items: stretch;
    justify-content: start;
    gap: 14px;
    margin-top: 20px
}

.variant-buy .buy-form > label.quantity-stepper,
.cart-item .quantity-form > label.quantity-stepper {
    display: grid;
    grid-template-columns: 30px minmax(76px, 1fr) 30px;
    flex-direction: initial;
    gap: 0;
    height: 36px;
    overflow: hidden;
    border: 1px solid #d4ddd7;
    border-radius: 10px;
    background: #fff
}

.variant-detail .quantity-stepper button,
.variant-detail .quantity-stepper input,
.cart-item .quantity-stepper button,
.cart-item .quantity-stepper input {
    min-width: 0;
    width: auto;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #173d37;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center
}

.variant-detail .quantity-stepper button,
.cart-item .quantity-stepper button {
    cursor: pointer
}

.variant-detail .quantity-stepper input,
.cart-item .quantity-stepper input {
    border-right: 1px solid #d4ddd7;
    border-left: 1px solid #d4ddd7;
    appearance: textfield;
    -moz-appearance: textfield
}

.variant-detail .quantity-stepper:focus-within,
.cart-item .quantity-stepper:focus-within {
    border-color: #4b8778;
    box-shadow: 0 0 0 2px #4b877833
}

.variant-detail .quantity-stepper input:focus,
.variant-detail .quantity-stepper input:focus-visible,
.cart-item .quantity-stepper input:focus,
.cart-item .quantity-stepper input:focus-visible {
    outline: none
}

.variant-detail .quantity-stepper input::-webkit-inner-spin-button,
.variant-detail .quantity-stepper input::-webkit-outer-spin-button,
.cart-item .quantity-stepper input::-webkit-inner-spin-button,
.cart-item .quantity-stepper input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none
}

.variant-detail .quantity-stepper button:hover:not(:disabled),
.cart-item .quantity-stepper button:hover:not(:disabled) {
    background: #f2f7f4
}

.variant-detail .quantity-stepper button:disabled,
.cart-item .quantity-stepper button:disabled {
    color: #aab6b0;
    cursor: not-allowed
}

.cart-item .quantity-stepper {
    width: 140px
}

.cart-item .cart-quantity-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #51776b;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.cart-item .cart-quantity-loading[hidden] {
    display: none;
}

.cart-item .cart-quantity-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid #d4e3de;
    border-top-color: #4b8778;
    border-radius: 50%;
    animation: cart-quantity-spin .7s linear infinite;
}

@keyframes cart-quantity-spin {
    to { transform: rotate(360deg); }
}

.variant-detail .buy-form [data-add-cart] {
    min-height: 36px;
    width: 100%;
    margin: 0;
    padding: 0 8px;
    font-size: 11px
}

.variant-detail .detail-note {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0
}

.variant-editor {
    min-width: 700px !important
}

.variant-editor td:last-child {
    min-width: 85px !important
}

[hidden] {
    display: none !important
}

:focus-visible {
    outline: 3px solid #77aea2;
    outline-offset: 3px
}

.product-editor {
    max-width: 1440px
}

.editor-card {
    margin: 20px 0;
    padding: 24px
}

.editor-card h2, .summary-card h2, .form-panel h2 {
    font: 26px 'Playfair Display', Georgia, serif
}

.editor-card .panel-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 18px
}

.panel-head p {
    margin: 7px 0 0;
    font-size: 12px
}

.product-editor .form-grid {
    gap: 20px 24px
}

.product-editor label, .commerce-dialog label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0
}

.product-editor input:not([type=radio]):not([type=checkbox]), .product-editor select, .product-editor textarea {
    width: 100%;
    min-height: 42px;
    border-color: #dfe6e3;
    background: #fff
}

.segmented {
    display: flex;
    max-width: 340px;
    border: 1px solid #dce5e1;
    border-radius: 30px;
    background: #f5f8f7;
    padding: 3px
}

.segmented label {
    position: relative;
    flex: 1;
    cursor: pointer;
    padding: 9px 24px;
    text-align: center;
    border-radius: 25px
}

.segmented label:has(input:checked) {
    background: var(--dark);
    color: white;
    box-shadow: 0 2px 5px #12373730
}

.segmented input {
    position: absolute;
    opacity: 0
}

.segmented label:has(:focus-visible) {
    outline: 3px solid #77aea2
}

.notice {
    background: #f0f6f4;
    border: 1px solid #e1ece7;
    border-radius: 9px;
    padding: 13px 16px;
    color: #526c66;
    font-size: 12px;
    line-height: 1.7;
    margin: 18px 0 0
}

.option-builder-row {
    display: grid;
    grid-template-columns:auto minmax(150px, 1fr) minmax(220px, 2.2fr) auto;
    gap: 15px;
    align-items: end;
    margin: 18px 0
}

.option-order {
    display: flex;
    flex-direction: column;
    gap: 4px
}

/* Text buttons must size to their label; a fixed narrow column clips them. */
.option-builder-row .chip-button {
    white-space: nowrap;
    font-size: 11.5px;
    line-height: 1.2
}

.chip-button.icon-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 26px;
    padding: 0;
    line-height: 0
}

.chip-button.icon-button svg {
    width: 15px;
    height: 15px
}

.option-order .chip-button.icon-button {
    height: 23px
}

.option-builder-row > label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: #3d564f
}

.option-builder-row > label > input {
    width: 100%;
    min-width: 0
}

.chip-button {
    background: #f5f7f6;
    color: #52746a;
    border: 1px solid #dce4df;
    border-radius: 6px;
    padding: 4px 7px
}

.chip-button:hover {
    background: #e0ede8
}

.chip-input {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border: 1px solid #dfe6e3;
    border-radius: 9px;
    padding: 7px;
    min-height: 42px;
    align-items: center
}

.option-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eaf0ec;
    border: 1px solid #dae2dc;
    border-radius: 24px;
    padding: 2px 5px 2px 10px;
    font-size: 12px
}

.option-chip .chip-button {
    background: transparent;
    border: 0;
    border-radius: 50%
}

.option-chip .icon-button {
    width: 18px;
    height: 18px
}

.option-chip .icon-button svg {
    width: 11px;
    height: 11px
}

.chip-input input {
    border: 0 !important;
    padding: 5px !important;
    min-height: 25px !important;
    flex: 1;
    width: 100px !important;
    min-width: 95px
}

.variant-editor {
    min-width: 960px
}

.variant-editor td {
    padding: 10px
}

.variant-editor td:first-child {
    min-width: 160px;
    max-width: 250px;
    white-space: normal;
    font-weight: 600
}

.variant-editor input {
    min-width: 100px;
    padding: 9px;
    font-size: 12px
}

.variant-editor td:nth-child(2) {
    min-width: 150px
}

.variant-editor td:last-child {
    min-width: 170px
}

.variant-editor input[type=checkbox] {
    min-width: 17px
}

.variant-editor .switch-label {
    flex-direction: row;
    align-items: center;
    min-width: 75px
}

.switch-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px
}

.switch-label input {
    accent-color: var(--dark);
    width: 17px;
    height: 17px
}

.save-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    position: static;
    box-shadow: 0 5px 24px #12373712
}

.commerce-dialog {
    border: 0;
    border-radius: 18px;
    max-width: 480px;
    width: calc(100% - 30px);
    padding: 28px;
    color: #253335;
    box-shadow: 0 24px 80px #102e2d40
}

.commerce-dialog::backdrop {
    background: #12373780
}

.commerce-dialog label {
    margin: 15px 0
}

.commerce-dialog h2 {
    font: 28px 'Playfair Display', serif
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 17px 22px;
    background: #123737;
    color: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px #12373730;
    max-width: 420px;
    z-index: 30
}

.toast.bad {
    background: #8c3737
}

.stock-warning {
    color: #a64f3b;
    line-height: 1.6
}

.table-product small {
    overflow-wrap: anywhere
}

.filters input {
    min-width: 200px
}

.option-caption {
    white-space: normal;
    line-height: 1.6;
    color: #657b74;
    margin: 6px 0
}

.option-selector {
    border: 0;
    padding: 0;
    margin: 25px 0
}

.option-selector legend {
    font-weight: 700;
    margin-bottom: 10px
}

.option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

.option-pills label {
    position: relative;
    cursor: pointer
}

.option-pills input {
    position: absolute;
    opacity: 0
}

.option-pills span {
    display: block;
    padding: 11px 18px;
    border: 1px solid #dbe4df;
    border-radius: 10px;
    background: white;
    transition: background .15s
}

.option-pills input:checked + span {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
    box-shadow: 0 3px 9px #12373720
}

.option-pills input:focus-visible + span {
    outline: 3px solid #77aea2
}

.option-pills .unavailable {
    opacity: .4;
    text-decoration: line-through;
    cursor: not-allowed
}

.stock-status {
    padding: 12px 0;
    color: #356755;
    font-weight: 600
}

.variant-detail .detail-copy {
    padding-top: 15px
}

.variant-detail .big-price {
    margin: 22px 0 7px
}

.variant-detail .detail-note {
    line-height: 1.8
}

.variant-buy .buy-form {
    margin-top: 20px
}

.theme-nova .option-pills span {
    border-radius: 4px;
    background: #f7f4ef
}

.theme-nova .option-pills input:checked + span {
    background: #173b38
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.checkout-layout {
    grid-template-columns:minmax(0, 1fr) 400px;
    align-items: start
}

.sticky-summary {
    position: sticky;
    top: 150px
}

.checkout-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

.checkout-item img {
    width: 65px;
    height: 80px;
    border-radius: 8px
}

.checkout-item div {
    min-width: 0
}

.checkout-item small {
    display: block;
    margin: 5px 0;
    line-height: 1.5
}

.checkout-item b {
    display: block;
    margin-top: 9px
}

.checkout-choice {
    padding: 16px;
    border: 1px solid #bad5c9;
    background: #f0f6f4;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.confirmation-heading {
    text-align: center;
    padding: 35px 0
}

.summary-card .summary-line {
    gap: 15px
}

.form-panel label {
    font-size: 13px
}

.table-scroll .table-product {
    white-space: normal;
    min-width: 200px
}

@media (max-width: 1100px) {
    .option-builder-row {
        grid-template-columns:auto minmax(130px, 1fr) minmax(180px, 1.4fr) auto
    }

    .checkout-layout {
        grid-template-columns:minmax(0, 1fr) 330px
    }

    .editor-card {
        padding: 20px
    }
}

@media (max-width: 720px) {
    .option-builder-row {
        grid-template-columns:auto minmax(0, 1fr) auto;
        gap: 10px
    }

    .option-order {
        grid-column: 1;
        grid-row: 1
    }

    .option-builder-row > label:nth-of-type(1) {
        grid-column: 2;
        grid-row: 1
    }

    .option-builder-row > label:nth-of-type(2) {
        grid-column: 1 / -1;
        grid-row: 2
    }

    .option-builder-row > .chip-button {
        grid-column: 3;
        grid-row: 1
    }

    .editor-card {
        padding: 18px
    }

    .product-editor .form-grid {
        grid-template-columns:1fr
    }

    .editor-card .panel-head .inline-actions {
        flex-wrap: wrap
    }

    .checkout-layout {
        grid-template-columns:1fr
    }

    .sticky-summary {
        position: static
    }

    .save-bar {
        flex-wrap: wrap;
        position: static
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px
    }

    .checkout-choice {
        flex-direction: column
    }

    .variant-detail .detail-image {
        height: 370px
    }

    .buy-form {
        flex-wrap: wrap
    }

    .table-scroll {
        max-width: 100%
    }
}

/* Percentage coupon summary: intentionally scoped to checkout so admin panels retain their form system. */
.checkout-coupon {
    margin: 18px 0 14px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--store-primary, #123a35) 18%, #fff);
    border-radius: 12px;
    background: color-mix(in srgb, var(--store-bg, #fff) 92%, var(--store-primary, #123a35));
}
.checkout-coupon h3 { margin: 0 0 10px; font-size: .95rem; }
.checkout-coupon-entry, .checkout-coupon-applied { display: flex; gap: 8px; align-items: center; }
.checkout-coupon-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.checkout-coupon-entry input { min-width: 0; width: 100%; height: 42px; margin: 0; text-transform: uppercase; }
.checkout-coupon .checkout-coupon-apply {
    min-width: 78px;
    min-height: 42px;
    margin: 0;
    padding: 0 15px;
    justify-content: center;
    border: 0;
    background: var(--store-button, #123a35);
    color: var(--store-button-text, #fff);
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}
.checkout-coupon .checkout-coupon-apply:hover { background: var(--store-primary, #123a35); }
.checkout-coupon .checkout-coupon-apply:disabled { opacity: .62; cursor: wait; transform: none; }
.checkout-coupon-applied { justify-content: space-between; }
.checkout-coupon-applied small { display: block; margin-top: 2px; color: var(--store-text, #263432); opacity: .72; }
.checkout-coupon-error { color: #a02c2c; margin: 8px 0 0; font-size: .86rem; }
.coupon-discount-line b { color: var(--store-primary, #123a35); }
.hidden { display: none !important; }
.campaign-form {
    max-width: 980px;
    display: grid;
    gap: 14px;
    padding: 14px;
    background: #f3f6f4;
}
.campaign-section {
    padding: 27px 28px 29px;
    border: 1px solid #e3ebe6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(27, 59, 49, .025);
}
.campaign-section-heading { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #edf1ee; }
.campaign-section-heading h2 { margin: 0; color: #20322e; font-size: 1.1rem; }
.campaign-section-heading p { margin: 5px 0 0; color: #71807a; font-size: .88rem; }
.campaign-fields { display: grid; gap: 16px 20px; }
.campaign-fields label, .campaign-percentage-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #344640;
    font-size: .84rem;
    font-weight: 700;
}
.campaign-fields label small { color: #7a8882; font-size: .76rem; font-weight: 500; }
.campaign-fields input, .campaign-fields textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    border-color: #d8e1dc;
    border-radius: 9px;
    box-shadow: none;
}
.campaign-fields input { min-height: 44px; }
.campaign-fields textarea { min-height: 92px; resize: vertical; }
.campaign-general-grid, .campaign-date-grid { grid-template-columns: minmax(0, 1fr); }
.campaign-field-wide { grid-column: 1 / -1; }
.campaign-usage-grid { grid-template-columns: minmax(0, 1fr); margin-top: 17px; }
.campaign-discount-section { background: #fbfdfc; }
.campaign-discount-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.campaign-percentage-field { align-content: start; }
.percentage-input {
    display: flex;
    align-items: center;
    width: min(100%, 190px);
    height: 44px;
    border: 1px solid #d8dfda;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}
.percentage-input b { display: grid; place-items: center; align-self: stretch; min-width: 42px; background: #f2f6f3; color: #123a35; }
.percentage-input input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 12px; border: 0; box-shadow: none; }
.campaign-calculation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 16px 17px; border: 1px solid #dbe8e1; border-radius: 10px; background: #f0f7f3; color: #546862; font-size: .84rem; }
.campaign-calculation span { display: flex; justify-content: space-between; gap: 10px; }
.campaign-calculation b { color: #24483e; font-weight: 700; }
.campaign-calculation i { font-style: normal; }
.campaign-calculation strong { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid #d7e5dd; color: #123a35; }
.campaign-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid #e3ebe6; border-radius: 12px; background: #fff; }
.campaign-form-actions .inline-actions { margin-left: auto; }
@media (max-width: 700px) {
    .campaign-form { padding: 9px; gap: 9px; }
    .campaign-section { padding: 21px 18px; }
    .campaign-general-grid, .campaign-date-grid, .campaign-usage-grid, .campaign-discount-layout { grid-template-columns: 1fr; }
    .campaign-usage-grid { margin-top: 16px; }
    .campaign-calculation { grid-template-columns: 1fr; }
    .campaign-calculation strong { grid-column: auto; }
    .campaign-form-actions { align-items: stretch; flex-direction: column; padding: 16px 18px; }
    .campaign-form-actions .inline-actions { width: 100%; margin-left: 0; }
}
@media (max-width: 540px) { .checkout-coupon-entry { grid-template-columns: 1fr; align-items: stretch; } }

/* Store settings: admin tabs, images and storefront contact blocks. */
.store-header .logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.page-top-anchor {
    display: block;
    position: relative;
    height: 0;
    scroll-margin-top: 0
}

:root {
    --store-logo-s-width: 64px;
    --store-logo-s-height: 40px;
    --store-logo-m-width: 110px;
    --store-logo-m-height: 64px;
    --store-logo-l-width: 160px;
    --store-logo-l-height: 88px
}

.logo-mark {
    width: auto;
    max-width: var(--store-logo-m-width);
    max-height: var(--store-logo-m-height);
    object-fit: contain;
    display: block;
    flex: 0 1 auto
}

.logo-mark.logo-size-s {
    max-width: var(--store-logo-s-width);
    max-height: var(--store-logo-s-height)
}

.logo-mark.logo-size-m {
    max-width: var(--store-logo-m-width);
    max-height: var(--store-logo-m-height)
}

.logo-mark.logo-size-l {
    max-width: var(--store-logo-l-width);
    max-height: var(--store-logo-l-height)
}

.settings-image .image-preview img.logo-size-s {
    max-width: var(--store-logo-s-width);
    max-height: var(--store-logo-s-height)
}

.settings-image .image-preview img.logo-size-m {
    max-width: var(--store-logo-m-width);
    max-height: var(--store-logo-m-height)
}

.settings-image .image-preview img.logo-size-l {
    max-width: var(--store-logo-l-width);
    max-height: var(--store-logo-l-height)
}

.social-row {
    display: flex !important;
    width: 100%;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px
}

.footer-social {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #ffffff2b
}

.footer-social h4 {
    margin: 18px 0 0;
    text-align: center
}

.footer-grid .social-chip {
    display: inline-flex;
    flex: 0 0 42px;
    line-height: 1
}

.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #5b8178;
    border-radius: 50%;
    background: #17453c;
    color: #f5fbf8;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease
}

.social-chip svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.social-chip .social-fill {
    fill: currentColor;
    stroke: none
}

.social-chip:hover {
    background: #2c6e60;
    border-color: #a9c9bd;
    color: #fff;
    transform: translateY(-2px)
}

:root {
    --floating-action-size: 56px;
    --floating-action-icon-size: 26px;
    --floating-action-gap: 12px;
    --floating-action-right: max(20px, env(safe-area-inset-right));
    --floating-action-bottom: max(20px, env(safe-area-inset-bottom));
}

.social-chip:focus-visible, .whatsapp-float:focus-visible {
    outline: 3px solid #b6d8ca;
    outline-offset: 3px
}

.whatsapp-float,
.scroll-top {
    position: fixed;
    right: var(--floating-action-right);
    width: var(--floating-action-size);
    height: var(--floating-action-size);
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 25;
    box-sizing: border-box
}

.whatsapp-float {
    bottom: var(--floating-action-bottom);
    border: 0;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px #12373752;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease
}

.whatsapp-float svg {
    width: var(--floating-action-icon-size);
    height: var(--floating-action-icon-size);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.whatsapp-float .social-fill {
    fill: currentColor
}

.whatsapp-float:hover {
    background: #1eb455;
    transform: translateY(-2px);
    box-shadow: 0 13px 32px #1237375c
}

.scroll-top {
    bottom: var(--floating-action-bottom);
    border: 1px solid #d5e0db;
    background: #fff;
    color: #174a45;
    box-shadow: 0 8px 22px #1237372b;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease, background .18s ease
}

.scroll-top.with-whatsapp {
    bottom: calc(var(--floating-action-bottom) + var(--floating-action-size) + var(--floating-action-gap))
}

.scroll-top svg {
    width: var(--floating-action-icon-size);
    height: var(--floating-action-icon-size);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.scroll-top:hover {
    background: #eaf3ef;
    transform: translateY(-2px)
}

.scroll-top:focus-visible {
    outline: 3px solid #9fc9b9;
    outline-offset: 3px
}

.settings-form {
    max-width: 1440px
}

.settings-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #dfe8e2;
    margin-bottom: 18px
}

.settings-tabbar a {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4d6a62;
    border-bottom: 2px solid transparent;
    text-decoration: none
}

.settings-tabbar a.active {
    color: #123737;
    border-color: #245b48
}

.settings-panel {
    display: none
}

.settings-panel.active {
    display: block
}

.settings-card {
    background: #fff;
    border: 1px solid #e3ebe7;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px
}

.settings-card h2 {
    font: 24px 'Playfair Display', Georgia, serif;
    margin: 0 0 6px
}

.settings-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0
}

.settings-card input:not([type=radio]):not([type=checkbox]), .settings-card select, .settings-card textarea {
    width: 100%;
    min-height: 42px;
    border-color: #dfe6e3;
    background: #fff
}

.smtp-provider-picker { margin: 18px 0 16px }
.smtp-provider-label { display: block; margin-bottom: 8px; color: #33453e; font-size: 13px; font-weight: 700 }
.smtp-provider-cards { display: flex; flex-wrap: wrap; gap: 8px }
.smtp-provider-card { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 1px solid #e3e9e6; border-radius: 6px; background: #fff; color: #465f55; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease }
.smtp-provider-card:hover { border-color: #a8c7b7; background: #f8fbf9; transform: translateY(-1px) }
.smtp-provider-card.is-selected { border-color: #a8d3bf; background: #eff8f3; color: #285d47; box-shadow: 0 0 0 1px rgba(75, 146, 112, .08) }
.smtp-provider-card img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto }
.smtp-custom-icon { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #edf2ef; color: #647e71; font-size: 11px; font-weight: 900 }
.smtp-provider-saved-mark { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 17px; height: 17px; border: 2px solid #fff; border-radius: 50%; background: #3d9a6e; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; box-shadow: 0 1px 3px rgba(25, 73, 53, .22) }
.smtp-preset-hint { margin: -6px 0 16px; color: #60766c; font-size: 12px; line-height: 1.45 }
.smtp-settings-grid { align-items: start; gap: 16px 18px }
.smtp-settings-grid > label { gap: 6px; line-height: 16px }
.smtp-settings-grid input:not([type=radio]):not([type=checkbox]), .smtp-settings-grid select { min-height: 44px; margin: 0 }
.smtp-password-control { position: relative; display: block; width: 100%; height: 44px; margin: 0 }
.smtp-password-control input { display: block; width: 100%; height: 44px; min-height: 44px; padding-right: 84px }
.smtp-password-control button { position: absolute; top: 50%; right: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 68px; min-height: 30px; transform: translateY(-50%); border: 1px solid #cbd8d3; border-radius: 7px; background: #f8fbf9; color: #345047; font-size: 12px; font-weight: 700 }
.settings-card input[readonly], .settings-card select:disabled { cursor: not-allowed; border-color: #e1e9e4; background: #f4f7f5; color: #60776c; opacity: 1 }
@media (max-width: 520px) { .smtp-provider-card { flex: 1 1 calc(50% - 4px) } }
@media (max-width: 350px) { .smtp-provider-card { flex-basis: 100% } }

.settings-images {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 12px
}

.settings-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start
}

.settings-image input[type=file] {
    font-size: 12px;
    width: 100%
}

.settings-image .image-preview {
    border: 1px solid #dfe8e2;
    border-radius: 12px;
    background: #f7faf8;
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px
}

.settings-image .image-preview img {
    max-width: 100%;
    max-height: 110px;
    object-fit: contain
}

.settings-image .favicon-preview img {
    max-height: 48px
}

.logo-size-control {
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    border: 0
}

.logo-size-control legend {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700
}

.logo-size-options {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    overflow: hidden;
    width: 100%;
    border: 1px solid #cfddd7;
    border-radius: 9px;
    background: #fff
}

.logo-size-options label {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 38px;
    cursor: pointer;
    border-right: 1px solid #cfddd7;
    font-size: 11px;
    font-weight: 700;
    color: #536763
}

.logo-size-options label:last-child {
    border-right: 0
}

.logo-size-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.logo-size-options span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 7px 4px
}

.logo-size-options input:checked + span {
    background: #174a45;
    color: #fff
}

.logo-size-options input:focus-visible + span {
    outline: 2px solid #78a99b;
    outline-offset: -2px
}

.logo-size-control p {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #778080
}

.contact-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start
}

.contact-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 14px
}

.contact-list li {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid #eef3f0;
    padding-bottom: 12px
}

.contact-list span {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7d918a;
    font-weight: 700
}

.contact-list a, .contact-list strong {
    color: #123737;
    text-decoration: none;
    font-weight: 600
}

.map-panel iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 12px;
    display: block
}

.map-panel .btn {
    margin-top: 14px
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns:1fr
    }
}

@media (max-width: 720px) {
    :root {
        --floating-action-right: max(14px, env(safe-area-inset-right));
        --floating-action-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .logo-mark.logo-size-l {
        max-width: 110px;
        max-height: 52px
    }

    .settings-tabbar {
        overflow-x: auto;
        flex-wrap: nowrap
    }

    .settings-card {
        padding: 18px
    }

    .map-panel iframe {
        min-height: 280px
    }

    .variant-detail.detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin: 12px 0 30px
    }

    .variant-detail .detail-image {
        height: clamp(300px, 82vw, 430px)
    }

    .variant-detail .detail-copy {
        padding: 20px
    }

    .variant-detail .gallery-thumbnails {
        gap: 7px
    }

    .variant-detail .buy-form {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 9px
    }
}

/* These declarations live after the variant editor rules so the product page keeps its compact spacing. */
.variant-detail .detail-copy {
    padding: clamp(22px, 2.2vw, 32px)
}

.variant-detail .big-price {
    margin: 20px 0 12px
}

@media (max-width: 720px) {
    .variant-detail .detail-copy {
        padding: 20px
    }
}
}
