/* =============================================
   Chasing Wonder — free print offer page
   Ported from the client mockup. Everything is
   namespaced under .print-offer so it cannot
   leak into the rest of the theme; the page
   chrome (header, footer, container, type)
   comes from the theme.
   ============================================= */

.print-offer {
    --po-black: #111111;
    --po-white: #ffffff;
    --po-off-white: #fafafa;
    --po-gray: #6f6f6f;
    --po-line: #e4e4e4;
    --po-free: #2f7a3d;

    color: var(--po-black);
}

.print-offer [hidden] {
    display: none !important;
}


/* --- Shared button --- */

.print-offer__button {
    background: var(--po-black);
    border: none;
    color: var(--po-white);
    cursor: pointer;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.875rem 1.875rem;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.print-offer__button:hover,
.print-offer__button:focus {
    background: #333;
    color: var(--po-white);
}

.print-offer__button[disabled] {
    cursor: default;
    opacity: 0.55;
}


/* --- Hero --- */

.print-offer__hero {
    border-bottom: 1px solid var(--po-line);
    padding: 4rem 0 3.375rem;
}

.print-offer__hero-inner {
    align-items: center;
    display: grid;
    gap: 3.75rem;
    grid-template-columns: 0.85fr 1.15fr;
}

.print-offer__cover img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 320px;
    width: 100%;
}

.print-offer__tag {
    background: var(--po-black);
    color: var(--po-white);
    display: inline-block;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.75rem;
    text-transform: uppercase;
}

.print-offer__heading {
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    letter-spacing: 0.01em;
    line-height: 1.18;
    margin: 0 0 1rem;
}

.print-offer__lede {
    color: var(--po-gray);
    font-size: 0.9375rem;
    margin-bottom: 0.875rem;
    max-width: 32.5rem;
}

.print-offer__price {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.print-offer__price-now {
    font-size: 1.125rem;
    font-weight: 700;
}

.print-offer__price-now del {
    color: var(--po-gray);
    font-size: 0.9375rem;
    font-weight: 400;
    margin-right: 0.5rem;
}


/* --- Print picker --- */

.print-offer__picker {
    padding: 3.75rem 0 0.625rem;
}

.print-offer__picker-intro {
    margin-bottom: 2.5rem;
    text-align: center;
}

.print-offer__eyebrow {
    color: var(--po-gray);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.print-offer__picker-intro h2 {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    margin: 0 auto 0.875rem;
    max-width: 40rem;
}

.print-offer__picker-intro p {
    color: var(--po-gray);
    font-size: 0.875rem;
    margin: 0 auto;
    max-width: 35rem;
}

.print-offer__cards {
    border: 0;
    border-left: 1px solid var(--po-line);
    border-top: 1px solid var(--po-line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
}

.print-offer__card {
    border-bottom: 1px solid var(--po-line);
    border-right: 1px solid var(--po-line);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
}

.print-offer__card.is-selected {
    outline: 2px solid var(--po-black);
    outline-offset: -1px;
}

.print-offer__card:focus-within {
    outline: 2px solid var(--po-black);
    outline-offset: -1px;
}

.print-offer__frame {
    aspect-ratio: 1 / 1;
    background: #000;
    display: block;
    overflow: hidden;
}

.print-offer__frame img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.print-offer__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.625rem 1.75rem 1.75rem;
}

.print-offer__card-title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.print-offer__card-meta {
    color: var(--po-gray);
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
}

.print-offer__card-desc {
    color: #4a4a4a;
    display: block;
    flex: 1;
    font-size: 0.84375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.print-offer__card-select {
    align-items: center;
    border-top: 1px solid var(--po-line);
    display: flex;
    font-size: 0.8125rem;
    gap: 0.625rem;
    letter-spacing: 0.02em;
    padding-top: 1rem;
}

.print-offer__card-select input[type="radio"] {
    accent-color: var(--po-black);
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.print-offer__card.is-selected .print-offer__card-state {
    font-weight: 600;
}


/* --- Add the second print --- */

.print-offer__extra {
    margin-top: 2.25rem;
}

.print-offer__extra-label {
    align-items: center;
    background: var(--po-off-white);
    border: 1px solid var(--po-line);
    cursor: pointer;
    display: flex;
    font-size: 0.875rem;
    gap: 0.75rem;
    padding: 1.25rem 1.625rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/*
 * The theme strips the native checkbox (appearance: none) and paints the tick
 * with a background image that does not resolve, so a checked box is
 * indistinguishable from an unchecked one. Draw the mark here instead of
 * relying on that asset.
 */
.print-offer__extra-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background: var(--po-white);
    border: 1px solid #b4b4b4;
    border-radius: 0;
    flex: none;
    height: 1.125rem;
    margin: 0;
    min-width: 0;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 1.125rem;
}

.print-offer__extra-label input[type="checkbox"]:checked {
    background-color: var(--po-black);
    background-image: none;
    border-color: var(--po-black);
}

.print-offer__extra-label input[type="checkbox"]:checked::after {
    border: solid var(--po-white);
    border-width: 0 2px 2px 0;
    content: "";
    height: 0.5625rem;
    left: 50%;
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.3125rem;
}

.print-offer__extra-label:focus-within {
    outline: 2px solid var(--po-black);
    outline-offset: -1px;
}

/* Selected reads the same way as a selected card: a black outline. */
.print-offer__extra.is-selected .print-offer__extra-label {
    background: var(--po-white);
    border-color: var(--po-black);
    box-shadow: inset 0 0 0 1px var(--po-black);
}

.print-offer__extra-chosen,
.print-offer__extra.is-selected .print-offer__extra-offer {
    display: none;
}

.print-offer__extra.is-selected .print-offer__extra-chosen {
    display: inline;
    font-weight: 600;
}


/* --- Order summary --- */

.print-offer__summary {
    padding: 3.5rem 0 5rem;
}

.print-offer__box {
    border: 1px solid var(--po-line);
    margin: 0 auto;
    max-width: 30rem;
    padding: 2rem 2.125rem;
}

.print-offer__box-title {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    margin: 0 0 1.375rem;
    text-transform: uppercase;
}

.print-offer__row {
    border-bottom: 1px solid var(--po-line);
    display: flex;
    font-size: 0.875rem;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.print-offer__item-sub {
    color: var(--po-gray);
    display: block;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.print-offer__item-price {
    margin-left: 1rem;
    white-space: nowrap;
}

.print-offer__row--free .print-offer__item-price {
    color: var(--po-free);
    font-weight: 600;
}

.print-offer__total {
    display: flex;
    font-size: 1.0625rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 1.125rem 0 1.5rem;
}

.print-offer__error {
    background: #fdf2f2;
    border: 1px solid #e4b8b8;
    color: #9b1c1c;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.875rem;
}

.print-offer__submit {
    display: block;
    padding: 1rem;
    width: 100%;
}

.print-offer__postage {
    color: var(--po-gray);
    font-size: 0.71875rem;
    margin-top: 0.875rem;
    text-align: center;
}


/* --- Reviews carousel ---
   The carousel itself is styled in custom.css; these rules only sit it into
   the offer page's rhythm and type. --- */

.print-offer__reviews {
    border-top: 1px solid var(--po-line);
    padding: 3.5rem 0 1rem;
}

.print-offer__reviews .product-reviews__heading {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    margin: 0 0 2rem;
    text-transform: uppercase;
}

.print-offer__reviews .review {
    padding: 1.5rem 1rem;
}

.print-offer__reviews .review__content blockquote {
    font-size: 0.9375rem;
}

.print-offer__reviews .review__content cite {
    color: var(--po-gray);
    font-size: 0.8125rem;
}


/* --- Page content below the offer --- */

.print-offer__content {
    padding-bottom: 4rem;
}


/* --- Offer closed --- */

.print-offer--closed {
    padding: 5rem 0;
    text-align: center;
}

.print-offer--closed p {
    color: var(--po-gray);
    margin: 0 auto 2rem;
    max-width: 35rem;
}


/* --- Responsive --- */

@media (max-width: 50rem) {
    .print-offer__hero-inner {
        gap: 2.25rem;
        grid-template-columns: 1fr;
    }

    .print-offer__hero {
        padding: 2.5rem 0 2.25rem;
    }
}

@media (max-width: 47.5rem) {
    .print-offer__cards {
        grid-template-columns: 1fr;
    }

    .print-offer__reviews {
        padding-top: 2.5rem;
    }

    .print-offer__summary {
        padding: 2.5rem 0 3.5rem;
    }

    .print-offer__box {
        padding: 1.5rem 1.25rem;
    }
}
