:root {
    --avcd-accent: #111111;
    --avcd-text: #171717;
    --avcd-muted: #737373;
    --avcd-border: #e8e8e8;
    --avcd-soft: #f7f7f5;
    --avcd-success: #137a42;
    --avcd-danger: #c62828;
    --avcd-radius: 18px;
    --avcd-shadow: -24px 0 70px rgba(0, 0, 0, .16);
}

body.avcd-drawer-open {
    overflow: hidden !important;
    touch-action: none;
}

.avcd-root,
.avcd-root * {
    box-sizing: border-box;
}

.avcd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(10, 10, 10, .52);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.avcd-drawer {
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    width: min(100%, 480px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--avcd-text);
    box-shadow: var(--avcd-shadow);
    transform: translate3d(102%, 0, 0);
    visibility: hidden;
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), visibility .34s;
    outline: 0;
    font-family: inherit;
}

.avcd-drawer-open .avcd-overlay {
    opacity: 1;
    visibility: visible;
}

.avcd-drawer-open .avcd-drawer {
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

.avcd-header {
    min-height: 88px;
    padding: 21px 22px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--avcd-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.avcd-kicker {
    margin: 0 0 3px;
    color: var(--avcd-muted);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.avcd-header h2 {
    margin: 0;
    color: var(--avcd-text);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.025em;
}

.avcd-header-count {
    color: var(--avcd-muted);
    font-size: .68em;
    font-weight: 600;
}

.avcd-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--avcd-border);
    border-radius: 50%;
    background: #fff;
    color: var(--avcd-text);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.avcd-close:hover {
    background: var(--avcd-soft);
    transform: rotate(4deg);
}

.avcd-close svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.avcd-content {
    position: relative;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.avcd-is-loading .avcd-content {
    cursor: progress;
}

.avcd-is-loading .avcd-content::after {
    content: '';
    position: absolute;
    inset: 88px 0 0;
    z-index: 3;
    background: rgba(255,255,255,.35);
    pointer-events: all;
}

.avcd-loading {
    min-height: 55vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--avcd-muted);
}

.avcd-loading p {
    margin: 0;
}

.avcd-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--avcd-accent);
    border-radius: 50%;
    animation: avcd-spin .7s linear infinite;
}

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

.avcd-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.avcd-trigger__icon {
    display: grid;
    place-items: center;
}

.avcd-trigger__icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.avcd-trigger__label {
    font-weight: 650;
}

.avcd-count {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--avcd-accent);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.avcd-trigger--floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: var(--avcd-accent);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.avcd-trigger--floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0,0,0,.28);
}

.avcd-trigger--floating .avcd-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border: 2px solid #fff;
    background: #e53935;
}

.avcd-shipping-progress {
    margin: 16px 18px 4px;
    padding: 14px;
    border-radius: 15px;
    background: #f4f8f1;
    border: 1px solid #e2ebdd;
}

.avcd-shipping-progress__message {
    display: flex;
    gap: 10px;
    align-items: center;
}

.avcd-shipping-progress__message p {
    margin: 0;
    color: #30442d;
    font-size: 13px;
    line-height: 1.4;
}

.avcd-shipping-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    border-radius: 50%;
    background: #fff;
    color: var(--avcd-success);
}

.avcd-shipping-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.avcd-progress-track {
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce6d7;
}

.avcd-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--avcd-success);
    transition: width .35s ease;
}

.avcd-items {
    padding: 4px 18px 0;
}

.avcd-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--avcd-border);
}

.avcd-item__image {
    width: 96px;
    height: 112px;
    overflow: hidden;
    border-radius: 13px;
    background: var(--avcd-soft);
}

.avcd-item__image a,
.avcd-item__image img {
    width: 100%;
    height: 100%;
    display: block;
}

.avcd-item__image img {
    object-fit: cover;
}

.avcd-item__details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.avcd-item__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.avcd-item h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -.01em;
}

.avcd-item h3 a {
    color: var(--avcd-text);
    text-decoration: none;
}

.avcd-remove {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    cursor: pointer;
}

.avcd-remove:hover {
    background: #fff0f0;
    color: var(--avcd-danger);
}

.avcd-remove svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.avcd-variation {
    margin-top: 5px;
    color: var(--avcd-muted);
    font-size: 12px;
    line-height: 1.35;
}

.avcd-variation dl,
.avcd-variation p {
    margin: 0;
}

.avcd-variation dt,
.avcd-variation dd {
    display: inline;
    float: none;
    margin: 0 3px 0 0;
}

.avcd-unit-price {
    margin-top: 7px;
    color: var(--avcd-muted);
    font-size: 12px;
}

.avcd-item__bottomline {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.avcd-quantity {
    height: 34px;
    display: inline-grid;
    grid-template-columns: 32px 38px 32px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
}

.avcd-qty-btn {
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--avcd-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

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

.avcd-quantity input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
    border-radius: 0;
    background: #fff;
    color: var(--avcd-text);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    appearance: textfield;
    box-shadow: none;
}

.avcd-quantity input::-webkit-outer-spin-button,
.avcd-quantity input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.avcd-line-total {
    text-align: right;
    font-size: 14px;
    font-weight: 750;
}

.avcd-coupon-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--avcd-border);
}

.avcd-coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.avcd-coupon-form input {
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #d9d9d9;
    border-radius: 11px;
    background: #fff;
    color: var(--avcd-text);
    font-size: 13px;
    box-shadow: none;
}

.avcd-coupon-form input:focus {
    border-color: var(--avcd-accent);
    outline: 2px solid color-mix(in srgb, var(--avcd-accent) 15%, transparent);
}

.avcd-coupon-form button {
    height: 42px;
    padding: 0 17px;
    border: 1px solid var(--avcd-accent);
    border-radius: 11px;
    background: #fff;
    color: var(--avcd-accent);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.avcd-applied-coupons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.avcd-coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef8f1;
    color: var(--avcd-success);
    font-size: 11px;
    font-weight: 750;
}

.avcd-coupon-chip button {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(19,122,66,.11);
    color: inherit;
    line-height: 17px;
    cursor: pointer;
}

.avcd-summary {
    padding: 17px 18px 22px;
    background: #fff;
}

.avcd-summary-row,
.avcd-savings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.avcd-summary-row {
    font-size: 15px;
}

.avcd-summary-row strong {
    font-size: 17px;
}

.avcd-summary-row--discount {
    margin-top: 7px;
    color: var(--avcd-success);
    font-size: 13px;
}

.avcd-summary-row--discount strong {
    font-size: 13px;
}

.avcd-savings {
    margin-bottom: 13px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #eff8f1;
    color: var(--avcd-success);
    font-size: 12px;
}

.avcd-summary-note {
    margin: 8px 0 15px;
    color: var(--avcd-muted);
    font-size: 11px;
    line-height: 1.45;
}

.avcd-checkout-button,
.avcd-primary-button {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 13px;
    background: var(--avcd-accent);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--avcd-accent) 25%, transparent);
    transition: transform .2s ease, opacity .2s ease;
}

.avcd-checkout-button:hover,
.avcd-primary-button:hover {
    color: #fff !important;
    transform: translateY(-1px);
    opacity: .93;
}

.avcd-checkout-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.avcd-continue-shopping {
    width: 100%;
    margin-top: 11px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--avcd-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.avcd-trust-row {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--avcd-muted);
    font-size: 10px;
}

.avcd-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.avcd-trust-row svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.avcd-empty {
    min-height: calc(100dvh - 90px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
}

.avcd-empty__icon {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--avcd-soft);
    color: #9b9b9b;
}

.avcd-empty__icon svg {
    width: 49px;
    height: 49px;
    fill: currentColor;
}

.avcd-empty h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.avcd-empty p {
    max-width: 300px;
    margin: 0 0 24px;
    color: var(--avcd-muted);
    font-size: 14px;
    line-height: 1.55;
}

.avcd-empty .avcd-primary-button {
    max-width: 280px;
}

.avcd-inline-error,
.avcd-content .woocommerce-error,
.avcd-content .woocommerce-message,
.avcd-content .woocommerce-info {
    margin: 12px 18px 0 !important;
    padding: 11px 13px !important;
    border: 0 !important;
    border-radius: 10px;
    background: #fff3f3;
    color: #982727;
    font-size: 12px;
    line-height: 1.4;
    list-style: none;
}

.avcd-content .woocommerce-message,
.avcd-content .woocommerce-info {
    background: #eff8f1;
    color: #1f6f3c;
}

.avcd-content .woocommerce-error::before,
.avcd-content .woocommerce-message::before,
.avcd-content .woocommerce-info::before {
    display: none !important;
}

.avcd-content .woocommerce-error li {
    margin: 0;
}

@media (max-width: 600px) {
    .avcd-drawer {
        width: 100%;
        box-shadow: none;
    }

    .avcd-header {
        min-height: 78px;
        padding: 16px 16px 14px;
    }

    .avcd-header h2 {
        font-size: 21px;
    }

    .avcd-shipping-progress,
    .avcd-items,
    .avcd-coupon-section,
    .avcd-summary {
        margin-left: 0;
        margin-right: 0;
    }

    .avcd-shipping-progress {
        margin: 13px 14px 3px;
    }

    .avcd-items,
    .avcd-coupon-section,
    .avcd-summary {
        padding-left: 14px;
        padding-right: 14px;
    }

    .avcd-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 11px;
        padding: 15px 0;
    }

    .avcd-item__image {
        width: 82px;
        height: 99px;
    }

    .avcd-trigger--floating {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avcd-overlay,
    .avcd-drawer,
    .avcd-trigger--floating,
    .avcd-checkout-button,
    .avcd-progress-track span {
        transition: none !important;
    }

    .avcd-spinner {
        animation-duration: 1.5s;
    }
}

/* People also bought */
.avcd-recommendations {
    padding: 18px 18px 19px;
    border-bottom: 1px solid var(--avcd-border);
    background: linear-gradient(180deg, #fbfbfa 0%, #fff 100%);
}

.avcd-recommendations__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.avcd-recommendations__heading p {
    margin: 0 0 2px;
    color: var(--avcd-muted);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.avcd-recommendations__heading h3 {
    margin: 0;
    color: var(--avcd-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

.avcd-recommendations__heading > span {
    color: var(--avcd-muted);
    font-size: 18px;
}

.avcd-recommendations__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 44%);
    gap: 11px;
    overflow-x: auto;
    padding: 1px 1px 7px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
}

.avcd-recommendation {
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--avcd-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.045);
}

.avcd-recommendation__image {
    position: relative;
    display: block;
    height: 126px;
    overflow: hidden;
    background: var(--avcd-soft);
    text-decoration: none;
}

.avcd-recommendation__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease;
}

.avcd-recommendation:hover .avcd-recommendation__image img {
    transform: scale(1.035);
}

.avcd-recommendation__badge {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--avcd-accent);
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.avcd-recommendation__body {
    padding: 10px;
}

.avcd-recommendation h4 {
    min-height: 34px;
    margin: 0 0 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--avcd-text);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 720;
}

.avcd-recommendation h4 a {
    color: inherit;
    text-decoration: none;
}

.avcd-recommendation__price {
    min-height: 20px;
    margin-bottom: 8px;
    color: var(--avcd-text);
    font-size: 12px;
    font-weight: 800;
}

.avcd-recommendation__price del {
    margin-right: 3px;
    color: #999;
    font-size: 10px;
    font-weight: 500;
}

.avcd-recommendation__price ins {
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.avcd-recommendation__button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid var(--avcd-accent);
    border-radius: 9px;
    background: #fff;
    color: var(--avcd-accent) !important;
    text-align: center;
    text-decoration: none !important;
    font: inherit;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.avcd-recommendation__button:hover,
.avcd-recommendation__button.is-adding {
    background: var(--avcd-accent);
    color: #fff !important;
}

.avcd-recommendation__button:disabled {
    cursor: progress;
    opacity: .7;
}

.avcd-recommendation__button svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .avcd-recommendations {
        padding-right: 14px;
        padding-left: 14px;
    }

    .avcd-recommendations__track {
        grid-auto-columns: minmax(142px, 43%);
    }

    .avcd-recommendation__image {
        height: 116px;
    }
}
