.tea-detail {
    box-sizing: border-box;
    width: 100%;
    max-width: 1184px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    color: #3d482b;
    font-family: DMSans, Arial, sans-serif;
    text-align: left;
}

.tea-detail :is(h1, h2, h3) {
    margin: 0 0 1rem;
    font-family: 'IM Fell DW Pica', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.tea-detail h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.tea-detail h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.tea-detail h3 {
    font-size: 1.4rem;
}

.tea-detail p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

.tea-detail a {
    color: #4f5711;
    text-decoration-color: #b0ba94;
    text-underline-offset: 0.25em;
}

.tea-detail a:hover {
    text-decoration-color: currentColor;
}

.tea-detail :is(a, button, select, [tabindex]):focus-visible {
    outline: 2px solid #4f5711;
    outline-offset: 3px;
}

.tea-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    color: #626b54;
    font-size: 0.75rem;
    line-height: 1.5;
}

.tea-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    text-decoration: none;
}

.tea-breadcrumbs a:hover {
    text-decoration: underline;
}

.tea-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.tea-detail-photo {
    overflow: hidden;
    border: 1px solid #c5ccb5;
    border-radius: 16px;
    background: #faf7ef;
}

.tea-detail-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.tea-detail-summary {
    min-width: 0;
}

.tea-detail-page .tea-detail-order paypal-add-to-cart-button .item-title,
.tea-detail-page .tea-detail-order paypal-add-to-cart-button .item-description {
    display: none;
}

.tea-detail-hosted-page .tea-detail-overview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1.5rem;
}

.tea-detail-hosted-page .tea-detail-description p:last-child {
    margin-bottom: 0;
}

.tea-detail-hosted-page .tea-detail-photo {
    width: 80%;
    justify-self: center;
}

.tea-detail-hosted-page .tea-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
}

.tea-detail-hosted-page .tea-detail-facts > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tea-detail-hosted-page .tea-detail-intro .tea-detail-one-liner {
    margin-bottom: 0;
}

@media (min-width: 801px) {
    .tea-detail-hosted-page .tea-detail-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            'intro intro'
            'photo order'
            'description description';
        gap: 1.5rem 3rem;
    }

    .tea-detail-hosted-page .tea-detail-overview,
    .tea-detail-hosted-page .tea-detail-summary {
        display: contents;
    }

    .tea-detail-hosted-page .tea-detail-intro {
        grid-area: intro;
        text-align: center;
    }

    .tea-detail-hosted-page .tea-detail-one-liner {
        margin-bottom: 0;
    }

    .tea-detail-hosted-page .tea-detail-photo {
        grid-area: photo;
        width: 100%;
        align-self: start;
    }

    .tea-detail-hosted-page .tea-detail-photo img {
        height: auto;
    }

    .tea-detail-hosted-page .tea-detail-order {
        grid-area: order;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        padding: 2rem;
        border-radius: 16px;
    }

    .tea-detail-page .tea-detail-order paypal-add-to-cart-button [id^="form-container-"] {
        width: 100%;
        /* Override the per-product ID selectors injected by PayPal. */
        max-width: none !important;
    }

    .tea-detail-hosted-page .tea-detail-description {
        grid-area: description;
        width: 80%;
        justify-self: start;
        max-width: none;
    }

    .tea-detail-hosted-page .tea-detail-facts {
        justify-content: center;
    }
}

.tea-detail .tea-detail-eyebrow {
    margin-bottom: 0.875rem;
    color: #626b54;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tea-detail .tea-detail-one-liner {
    margin-bottom: 1.5rem;
    font-family: 'IM Fell DW Pica', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

.tea-detail-description p {
    font-size: 0.9rem;
}

.tea-detail-facts {
    display: grid;
    gap: 0.625rem;
    margin: 1.5rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid #c5ccb5;
    border-bottom: 1px solid #c5ccb5;
    font-size: 0.85rem;
    line-height: 1.6;
}

.tea-detail-facts > div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
}

.tea-detail-facts dt {
    color: #626b54;
}

.tea-detail-facts dd {
    margin: 0;
}

.tea-detail-order {
    padding: 1.5rem;
    border: 1px solid #c5ccb5;
    border-radius: 12px;
    background: #faf7ef;
}

.tea-detail-order label {
    display: block;
    margin-bottom: 0.625rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.tea-detail-order select {
    width: 100%;
    min-height: 2.75rem;
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #a7b18f;
    border-radius: 8px;
    background: #fffdf8;
    color: #3d482b;
    font: inherit;
    font-size: 0.95rem;
}

.tea-detail .tea-detail-price {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.tea-detail-price b {
    font-weight: 400;
}

.tea-detail-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.875rem 1.25rem;
    border: 1px solid #4f5711;
    border-radius: 8px;
    background: #4f5711;
    color: #fff;
    font-family: DMSans, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.tea-detail-buy:hover {
    background: #3d4210;
}

.tea-detail-shipping {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.tea-detail-page .tea-detail-order {
    padding-bottom: 1rem;
}

.tea-detail-page .tea-detail-shipping {
    min-height: 1.5rem;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.tea-detail-notes {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
    margin: 3rem 0;
    padding: 2.5rem;
    border: 1px solid #c5ccb5;
    border-radius: 16px;
    background: #faf7ef;
}

.tea-detail-notes-heading p {
    color: #626b54;
    font-size: 0.875rem;
}

.tea-detail-notes-heading a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    font-size: 0.85rem;
}

.tea-detail-rich {
    min-width: 0;
}

.tea-detail-rich h3 {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #d5dbc8;
}

.tea-detail-rich > h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.tea-detail-rich p {
    font-size: 0.9rem;
}

.tea-detail-rich > :last-child {
    margin-bottom: 0;
}

.tea-related-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.tea-related-heading h2 {
    margin: 0;
}

.tea-related-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    font-size: 0.85rem;
}

.tea-related-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #a7b18f transparent;
}

.tea-related-row .tea-related-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 180px;
    padding: 0.875rem;
    border: 1px solid #c5ccb5;
    border-radius: 12px;
    background: #faf7ef;
    color: #3d482b;
    text-decoration: none;
    scroll-snap-align: start;
}

.tea-related-card:hover {
    border-color: #919d6e;
    background: #f0f2e8;
}

.tea-related-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.tea-related-name {
    margin-top: 1rem;
    font-family: 'IM Fell DW Pica', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.25;
}

.tea-related-type {
    margin-top: 0.5rem;
    color: #626b54;
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .tea-detail-hosted-page .tea-detail-hero {
        gap: 0;
    }

    .tea-detail-hosted-page .tea-detail-overview,
    .tea-detail-hosted-page .tea-detail-summary {
        display: contents;
    }

    .tea-detail-hosted-page .tea-detail-photo {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .tea-detail-hosted-page .tea-detail-intro {
        grid-row: 2;
    }

    .tea-detail-hosted-page .tea-detail-description {
        grid-row: 4;
        margin-top: 1.5rem;
    }

    .tea-detail-hosted-page .tea-detail-intro {
        margin-bottom: 1.5rem;
    }

    .tea-detail-hosted-page .tea-detail-order {
        grid-row: 3;
    }

    .tea-detail-hero,
    .tea-detail-notes {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .tea-detail-photo {
        width: 100%;
        max-width: 560px;
        justify-self: center;
    }

    .tea-detail-notes {
        padding: 1.5rem;
    }
}

@media (max-width: 540px) {
    .tea-detail {
        padding: 1rem 1.25rem 2rem;
    }

    .tea-breadcrumbs {
        margin-bottom: 1rem;
    }

    .tea-detail-order,
    .tea-detail-notes {
        padding: 1.25rem;
    }

    .tea-detail-notes {
        margin: 2rem 0;
        gap: 1.5rem;
    }

    .tea-related-row .tea-related-card {
        flex-basis: 160px;
    }
}
