:root {
    --ink-soft: #4A5550;
    --border-strong: #D4CCB8;
    --green-soft: #E8F1EA;
    --cta: #E87722;
    --cta-hover: #D26515;
    --green: #1F6B3A;
    --card: #fff;
    --muted: #8B8F8B;
    --ink: #1A2E24;
    --strikethrough: #B5392E;
}

.dtc-yearly-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 22, 14, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    overflow-y: auto;
}

.dtc-yearly-overlay.show {
    display: flex;
}

.dtc-yearly-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(6, 26, 16, 0.4);
    animation: dtcYearlyPop 0.32s cubic-bezier(.16, 1, .3, 1) both;
}

.dtc-yearly-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    display:none;
}

.dtc-yearly-close:active {
    background: rgba(255, 255, 255, .3);
}

.dtc-yearly-trust span {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: space-between;
}

.dtc-yearly-trust svg {
    stroke: #8B8F8B;
}

@keyframes dtcYearlyPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.dtc-yearly-head {
    background: linear-gradient(160deg, #064F3B, var(--green));
    color: #fff;
    padding: 20px 22px;
    text-align: center;
}

.dtc-yearly-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #F4C430;
    margin-bottom: 6px;
}

.dtc-yearly-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    color: #FBE7A8;
}

.dtc-yearly-title span {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 2px;
}

.dtc-yearly-body {
    padding: 24px 18px 20px;
}

.dtc-yearly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dtc-yearly-option {
    position: relative;
    border: 1.5px solid var(--border-strong);
    background: var(--card);
    border-radius: 15px;
    padding: 16px 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s, transform .1s;
}

.dtc-yearly-option:active {
    transform: scale(.99);
}

.dtc-yearly-option.selected {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(31, 107, 58, .12);
}

.dtc-yearly-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    background: var(--muted);
}

.dtc-yearly-badge.green {
    background: var(--green);
}

.dtc-yearly-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtc-yearly-option.selected .dtc-yearly-check {
    border-color: var(--green);
    background: var(--green);
}

.dtc-yearly-check svg {
    stroke: #fff;
    opacity: 0;
}

.dtc-yearly-option.selected .dtc-yearly-check svg {
    opacity: 1;
}

.dtc-yearly-bottle {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 8px;
}

.dtc-yearly-bottle img {
    max-height: 92px;
    max-width: 100%;
    object-fit: contain;
}

.dtc-yearly-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.dtc-yearly-sub {
    min-height: 14px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.dtc-yearly-sub.member {
    color: var(--green);
}

.dtc-yearly-price {
    margin-top: 9px;
}

.dtc-yearly-price .line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.dtc-yearly-price .cur {
    font-size: 14px;
    font-weight: 800;
}

.dtc-yearly-price .price-main {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.dtc-yearly-price .price-main .cur,
.dtc-yearly-price .price-main .cents {
    font-size: 14px;
    font-weight: 800;
    vertical-align: super;
}

.dtc-yearly-price .big {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.dtc-yearly-price .ea {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-left: 2px;
}

.dtc-yearly-total {
    margin-top: 4px;
    font-size: 12px;
}

.dtc-yearly-total .strike {
    color: var(--muted);
    text-decoration: line-through;
    margin-right: 5px;
}

.dtc-yearly-total .now {
    font-weight: 800;
}

.dtc-yearly-option.selected .dtc-yearly-total .now {
    color: var(--green);
}

.dtc-yearly-bill {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.2;
}

.dtc-yearly-points {
    list-style: none;
    margin: 16px auto 0;
    padding: 0;
    width: fit-content;
    max-width: 100%;
}

.dtc-yearly-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 8px;
    text-align: left;
}

.dtc-yearly-points svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--cta);
}

.dtc-yearly-accept {
    width: 100%;
    min-height: 60px;
    margin-top: 14px;
    padding: 10px 16px;
    border: none;
    border-radius: 13px;
    background: var(--cta);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(232, 119, 34, .32);
}

.dtc-yearly-accept.neutral {
    background: var(--ink-soft);
    box-shadow: none;
}

.dtc-yearly-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 380px) {
    .dtc-yearly-head {
        padding: 18px 14px;
    }

    .dtc-yearly-body {
        padding: 22px 12px 18px;
    }

    .dtc-yearly-option {
        padding: 14px 5px 11px;
    }

    .dtc-yearly-bottle {
        height: 80px;
    }

    .dtc-yearly-bottle img {
        max-height: 80px;
    }

    .dtc-yearly-price .big {
        font-size: 23px;
    }

    .dtc-yearly-price .price-main {
        font-size: 23px;
    }
}

.dtc-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 22, 14, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.dtc-exit-overlay.show {
    display: flex;
}

.dtc-exit-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: auto;
    flex-shrink: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(6, 26, 16, 0.42);
    animation: dtcYearlyPop 0.32s cubic-bezier(.16, 1, .3, 1) both;
}

.dtc-exit-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtc-exit-head {
    background: linear-gradient(160deg, #064F3B, var(--green));
    color: #fff;
    padding: 20px 22px;
    text-align: center;
}

.dtc-exit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #F4C430;
    margin-bottom: 6px;
}

.dtc-exit-kicker svg {
    fill: #F4C430;
}

.dtc-exit-title {
    color: #FBE7A8;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.dtc-exit-title span {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 2px;
}

.dtc-exit-title em {
    font-style: normal;
    font-weight: 900;
}

.dtc-exit-body {
    padding: 24px 18px 20px;
    text-align: center;
}

.dtc-exit-product {
    position: relative;
    padding: 24px 16px 18px;
    border: 1.5px solid var(--green);
    border-radius: 16px;
    background: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(31, 107, 58, .12);
    text-align: center;
}

.dtc-exit-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(6, 79, 59, .25);
}

.dtc-exit-bottle {
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 10px;
}

.dtc-exit-product img {
    max-height: 118px;
    max-width: 100%;
    object-fit: contain;
}

.dtc-exit-product h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.dtc-exit-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-top: 12px;
    color: var(--green);
}

.dtc-exit-price span {
    font-size: 20px;
    font-weight: 800;
}

.dtc-exit-price strong {
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.dtc-exit-compare {
    margin-top: 8px;
    font-size: 13.5px;
}

.dtc-exit-compare .st {
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: var(--strikethrough);
    margin-right: 6px;
    font-weight: 700;
}

.dtc-exit-compare .save {
    color: var(--strikethrough);
    font-weight: 800;
}

.dtc-exit-ship {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 14px;
    border: 1.5px solid var(--green);
    border-radius: 99px;
    background: #fff;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.dtc-exit-ship svg {
    stroke: var(--green);
}

.dtc-exit-copy {
    margin: 16px auto 0;
    max-width: 330px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.dtc-exit-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dtc-exit-accept {
    width: 100%;
    min-height: 62px;
    border: none;
    border-radius: 13px;
    background: var(--cta);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(232, 119, 34, .28);
}

.dtc-exit-accept:hover {
    background: var(--cta-hover);
}

.dtc-exit-decline {
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dtc-exit-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
}

.dtc-exit-trust span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dtc-exit-confirm {
    display: none;
    padding: 42px 24px;
    text-align: center;
}

.dtc-exit-confirm.show {
    display: block;
    animation: dtcYearlyPop .35s ease both;
}

.dtc-exit-confirm .ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-soft);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtc-exit-confirm .ring svg {
    stroke: var(--green);
}

.dtc-exit-confirm h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.dtc-exit-confirm p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
}
