/* Upsell card on the cart and checkout pages, the prints picker window, and the reward. */

/* ---- placement ---- */

.mwu-slot:empty {
    display: none;
}

/* the card's layout follows its slot's width (the checkout column is narrow even on a desktop) */
.mwu-slot {
    container: mwu-slot / inline-size;
}

.mwu-slot--cart {
    clear: both;
    margin: 0 0 8px;
}

/* checkout: top of the right column, above "Your order" (martin-theme's #order_review width) */
.mwu-slot--checkout {
    float: right;
    clear: right;
    width: 41.1764705882%;
}

.mwu-slot--checkout + #order_review_heading {
    clear: right;
}

@media (max-width: 768px) {
    .mwu-slot--checkout {
        float: none;
        width: 100%;
    }
}

/* ---- the card ---- */

.mwu-card {
    --mwu-ink: #141414;
    --mwu-muted: #6f6a60;
    --mwu-line: rgba(20, 20, 20, .14);
    --mwu-red: #d0231b;
    --mwu-red-dark: #a81a13;
    --mwu-gold: #b8860b;
    --mwu-gold-bright: #e9b949;
    --mwu-gold-soft: #fbf3dc;
    --mwu-green: #1d7a3e;
    --mwu-yellow: #ffd21f;
    --mwu-night: linear-gradient(135deg, #8e1510 0%, #4a0b08 55%, #1c0605 100%);
    --mwu-warm: #fdf6e7;
    --mwu-confetti: #d0231b, #e9b949, #f5d77a, #e8564f, #b8860b, #141414;
    --mwu-pad-y: 24px;
    --mwu-pad-x: 22px;
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 18px 0 22px;
    padding: var(--mwu-pad-y) var(--mwu-pad-x) 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20, 20, 20, .08), 0 14px 34px -20px rgba(20, 20, 20, .55);
    color: var(--mwu-ink);
    text-align: left;
    line-height: 1.45;
    position: relative;
    overflow: hidden;
    transition: opacity .15s ease;
}

/* gold ribbon along the top edge */
.mwu-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--mwu-gold) 0%, var(--mwu-gold-bright) 45%, #f5d77a 70%, var(--mwu-red) 100%);
}

.mwu-card *,
.mwu-card *::before,
.mwu-card *::after {
    box-sizing: border-box;
}

.mwu-card.is-busy {
    opacity: .55;
    pointer-events: none;
}

/* ---- banner: full-bleed dark band, big yellow line ---- */

.mwu-card .mwu-banner {
    margin: 0 calc(-1 * var(--mwu-pad-x)) 18px;
    padding: 24px var(--mwu-pad-x) 20px;
    background: var(--mwu-night);
    text-align: center;
}

.mwu-card .mwu-banner:first-child {
    margin-top: calc(-1 * var(--mwu-pad-y));
    padding-top: 30px;
}

.mwu-card .mwu-banner__title {
    margin: 0 0 8px;
    padding: 0;
    color: var(--mwu-yellow);
    font-size: 28px;
    font-size: clamp(26px, 4.6cqi + 9px, 46px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 210, 31, .35), 0 2px 0 rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}

.mwu-card .mwu-banner__text {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 17px;
    font-size: clamp(16px, 2.8cqi + 5px, 28px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.mwu-banner__hl {
    color: var(--mwu-yellow);
    white-space: nowrap;
}

.mwu-card__error {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fdeceb;
    color: var(--mwu-red-dark);
    font-size: .9em;
}

/* ---- covers ---- */

.mwu-card .mwu-covers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.mwu-cover {
    margin: 0;
    padding: 0;
    text-align: center;
    list-style: none;
}

.mwu-cover__img {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 14px -8px rgba(20, 20, 20, .6);
}

/* !important: WooCommerce sizes every image inside the cart table to 32px */
.mwu-card .mwu-cover__img img {
    display: block;
    width: 100% !important;
    max-width: none;
    height: auto;
    margin: 0;
    box-shadow: none;
}

.mwu-cover__tag {
    display: block;
    margin-top: 5px;
    font-size: .68em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mwu-cover.is-owned .mwu-cover__tag {
    color: var(--mwu-muted);
}

.mwu-cover.is-added .mwu-cover__tag {
    color: var(--mwu-green);
}

/* ---- prints step: the upgrade done, and a peek at the prints ---- */

.mwu-card .mwu-strip {
    position: relative;
    margin: 0 0 14px;
    padding: 10px 12px 10px 38px;
    border-radius: 10px;
    background: #e7f4ec;
    color: var(--mwu-green);
    font-weight: 700;
    line-height: 1.3;
}

.mwu-strip::before {
    content: "\2713";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--mwu-green);
    color: #fff;
    font-size: .8em;
    line-height: 20px;
    text-align: center;
}

.mwu-card .mwu-teaser {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.mwu-teaser__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mwu-card .mwu-teaser__btn {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #ece8df;
    box-shadow: 0 6px 14px -8px rgba(20, 20, 20, .6);
    cursor: pointer;
    transition: transform .12s ease;
}

.mwu-card .mwu-teaser__btn:hover,
.mwu-card .mwu-teaser__btn:focus-visible {
    transform: translateY(-2px);
}

/* !important: WooCommerce sizes every image inside the cart table to 32px */
.mwu-card .mwu-teaser__btn img {
    display: block;
    width: 100% !important;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    box-shadow: none;
}

/* ---- price hero: what the upgrade adds, and the price per added calendar or per print ---- */

.mwu-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 6px;
    padding: 14px 16px;
    border: 2px solid var(--mwu-red);
    border-radius: 12px;
    background: var(--mwu-warm);
}

.mwu-hero__main,
.mwu-hero__per {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 0;
}

.mwu-hero__big {
    color: var(--mwu-red);
    font-size: 30px;
    font-size: clamp(26px, 4.6cqi + 9px, 46px);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mwu-hero__label {
    color: var(--mwu-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.mwu-hero__now {
    color: var(--mwu-ink);
    font-size: 26px;
    font-size: clamp(24px, 3.4cqi + 10px, 36px);
    font-weight: 900;
    line-height: 1;
}

.mwu-hero__unit {
    color: var(--mwu-ink);
    font-size: 16px;
    font-weight: 700;
}

.mwu-hero__was {
    color: var(--mwu-muted);
    font-size: 17px;
}

/* the upgrade without the bonus, struck through, on a line of its own above the real amount */
.mwu-hero__struck {
    flex: 1 1 100%;
    color: var(--mwu-muted);
    font-size: 20px;
    font-size: clamp(18px, 2.4cqi + 9px, 28px);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--mwu-red);
}

.mwu-hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    min-width: 0;
}

.mwu-hero__only {
    color: var(--mwu-red-dark);
    font-size: 18px;
    font-size: clamp(17px, 2.4cqi + 8px, 26px);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.mwu-hero__instead {
    color: var(--mwu-muted);
    font-size: 15px;
}

/* total savings: a dark bar like the banner, the amount in yellow */
.mwu-card .mwu-savings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    margin: 4px 0 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--mwu-night);
    text-align: center;
}

.mwu-savings__label {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mwu-savings__amount {
    color: var(--mwu-yellow);
    font-size: 26px;
    font-size: clamp(24px, 3.2cqi + 10px, 38px);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(255, 210, 31, .35), 0 2px 0 rgba(0, 0, 0, .35);
}

.mwu-savings__pct {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--mwu-yellow);
    color: var(--mwu-ink);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mwu-card .mwu-setprice {
    margin: 0 0 16px;
    padding: 0 2px;
    color: var(--mwu-muted);
    font-size: 13px;
}

.mwu-hero--prints {
    margin-bottom: 16px;
}

/* ---- advantage tiles ---- */

.mwu-card .mwu-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

/* an odd last tile takes the whole row on 2 columns */
.mwu-card .mwu-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.mwu-card .mwu-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 12px 12px 12px;
    border-top: 4px solid var(--mwu-red);
    border-radius: 10px;
    background: var(--mwu-warm);
    list-style: none;
}

.mwu-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mwu-red);
    color: #fff;
}

.mwu-tile__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mwu-tile__title {
    color: var(--mwu-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.mwu-tile__text {
    color: var(--mwu-muted);
    font-size: 13px;
    line-height: 1.3;
}

.mwu-card .mwu-tile--scarce {
    border-top-color: var(--mwu-gold);
}

.mwu-tile--scarce .mwu-tile__icon {
    background: var(--mwu-gold);
}

.mwu-tile--scarce .mwu-tile__title {
    color: var(--mwu-red-dark);
}

/* ---- buttons ---- */

.mwu-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.mwu-card .mwu-btn,
#mwu-modal .mwu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 260px;
    float: none !important;
    width: auto !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--mwu-red);
    box-shadow: 0 8px 18px -10px rgba(168, 26, 19, .9);
    color: #fff;
    font: inherit;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .12s ease;
}

.mwu-card .mwu-btn:hover,
.mwu-card .mwu-btn:focus-visible,
#mwu-modal .mwu-btn:hover,
#mwu-modal .mwu-btn:focus-visible {
    background: var(--mwu-red-dark);
    color: #fff;
    transform: translateY(-1px);
}

/* the card's call to action: full width and loud on a narrow card, the decline link beside it on a wide one */
.mwu-card .mwu-btn {
    position: relative;
    overflow: hidden;
    flex: 1 1 100%;
    min-height: 58px;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 22px -10px rgba(168, 26, 19, .95);
    font-size: 17px;
    font-size: clamp(16px, 1.4cqi + 11px, 21px);
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    animation: mwu-pulse 2.8s ease-in-out infinite;
}

/* a shine crossing the button now and then */
.mwu-card .mwu-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: mwu-shine 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mwu-shine {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

@keyframes mwu-pulse {
    0%, 100% { box-shadow: 0 10px 22px -10px rgba(168, 26, 19, .95), 0 0 0 0 rgba(208, 35, 27, .35); }
    50% { box-shadow: 0 10px 22px -10px rgba(168, 26, 19, .95), 0 0 0 6px rgba(208, 35, 27, 0); }
}

.mwu-card .mwu-card__actions .mwu-link {
    margin: 0 auto !important;
}

#mwu-modal .mwu-btn:disabled {
    background: #8a8580;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.mwu-card .mwu-link {
    float: none !important;
    width: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 4px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--mwu-muted);
    font: inherit;
    font-size: .92em;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

.mwu-card .mwu-link:hover,
.mwu-card .mwu-link:focus-visible {
    color: var(--mwu-ink);
}

.mwu-card .mwu-link--small {
    font-size: .85em;
}

.mwu-card__undo,
.mwu-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    margin: 6px 0 0;
}

/* ---- savings summary ---- */

.mwu-card--summary {
    padding-top: 20px;
    padding-bottom: 12px;
}

/* the total in the banner's yellow-on-dark */
.mwu-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--mwu-night);
}

.mwu-summary__label {
    color: #fff;
    font-size: 1.05em;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.mwu-summary__total {
    color: var(--mwu-yellow);
    font-size: 1.6em;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 14px rgba(255, 210, 31, .3);
}

.mwu-summary__total .amount {
    color: inherit;
}

.mwu-card .mwu-summary__lines {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--mwu-muted);
    font-size: .9em;
}

.mwu-card .mwu-summary__lines li {
    margin: 0;
    list-style: none;
}

.mwu-card .mwu-summary__line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}

.mwu-summary__amount {
    color: var(--mwu-ink);
    font-weight: 700;
    white-space: nowrap;
}

.mwu-card .mwu-summary__line--note {
    color: var(--mwu-green);
    font-weight: 700;
}

/* ---- the reward ---- */

.mwu-card.is-celebrating {
    animation: mwu-glow 1.1s ease-out 2;
}

@keyframes mwu-glow {
    0% { box-shadow: 0 0 0 0 rgba(233, 185, 73, .9), 0 14px 34px -20px rgba(20, 20, 20, .55); }
    70% { box-shadow: 0 0 0 16px rgba(233, 185, 73, 0), 0 14px 34px -20px rgba(20, 20, 20, .55); }
    100% { box-shadow: 0 0 0 0 rgba(233, 185, 73, 0), 0 14px 34px -20px rgba(20, 20, 20, .55); }
}

.mwu-reward {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px;
    background: rgba(255, 255, 255, .95);
    text-align: center;
    animation: mwu-fade-in .25s ease-out;
}

.mwu-reward__confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mwu-reward__label {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--mwu-muted);
}

.mwu-reward__amount {
    color: var(--mwu-gold);
    font-size: 2.6em;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.mwu-reward__suffix {
    font-size: 1em;
    font-weight: 700;
    color: var(--mwu-muted);
}

.mwu-reward__note {
    margin-top: 6px;
    color: var(--mwu-green);
    font-size: .95em;
    font-weight: 700;
}

@keyframes mwu-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- the prints picker window ---- */

html.mwu-modal-open,
html.mwu-modal-open body {
    overflow: hidden;
}

.mwu-modal {
    --mwu-ink: #141414;
    --mwu-muted: #6f6a60;
    --mwu-red: #d0231b;
    --mwu-red-dark: #a81a13;
    --mwu-gold: #b8860b;
    --mwu-gold-bright: #e9b949;
    --mwu-gold-soft: #fbf3dc;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--mwu-ink);
    line-height: 1.4;
}

.mwu-modal[hidden] {
    display: none;
}

.mwu-modal *,
.mwu-modal *::before,
.mwu-modal *::after {
    box-sizing: border-box;
}

.mwu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .62);
}

.mwu-modal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 980px;
    height: min(92vh, 940px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    overflow: hidden;
    outline: 0;
}

.mwu-modal__head {
    position: relative;
    padding: 18px 64px 12px 20px;
    border-bottom: 1px solid rgba(20, 20, 20, .1);
}

.mwu-modal .mwu-modal__title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}

.mwu-modal .mwu-modal__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f1eb;
    color: var(--mwu-ink);
    font-size: 26px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
}

.mwu-modal__tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.mwu-modal .mwu-modal__search {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(20, 20, 20, .25);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 16px;
}

.mwu-modal__sort {
    flex: 0 0 auto;
    color: var(--mwu-muted);
    font-size: .85em;
}

.mwu-modal__sign {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--mwu-gold-soft);
    font-weight: 700;
    cursor: pointer;
}

.mwu-modal__sign input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--mwu-red);
}

.mwu-modal__seal {
    margin: 6px 0 0;
    color: var(--mwu-muted);
    font-size: .85em;
}

.mwu-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.mwu-modal.is-loading .mwu-modal__body {
    opacity: .6;
}

.mwu-modal .mwu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mwu-print {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity .15s ease;
}

.mwu-print.is-dim {
    opacity: .4;
}

.mwu-modal .mwu-print__pick {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.mwu-print__frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f1eb;
    outline: 3px solid transparent;
    outline-offset: -3px;
    transition: outline-color .15s ease;
}

.mwu-print.is-selected .mwu-print__frame {
    outline-color: var(--mwu-gold-bright);
}

.mwu-modal .mwu-print__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
}

.mwu-print__check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(20, 20, 20, .35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.mwu-print.is-selected .mwu-print__check {
    background: var(--mwu-gold-bright);
}

.mwu-print.is-selected .mwu-print__check::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    color: var(--mwu-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.mwu-print__title {
    display: block;
    margin-top: 6px;
    font-size: .85em;
    line-height: 1.25;
}

.mwu-print__price {
    display: block;
    font-size: .88em;
}

.mwu-print__price del {
    color: var(--mwu-muted);
}

.mwu-print__price b {
    color: var(--mwu-red);
}

.mwu-modal .mwu-print__zoom {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 44px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
    cursor: zoom-in;
}

.mwu-modal__empty {
    margin: 20px 0;
    color: var(--mwu-muted);
    text-align: center;
}

.mwu-modal .mwu-modal__more {
    display: block;
    min-height: 44px;
    margin: 18px auto 0;
    padding: 8px 26px;
    border: 1px solid var(--mwu-ink);
    border-radius: 10px;
    background: #fff;
    color: var(--mwu-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mwu-modal .mwu-modal__more[hidden] {
    display: none;
}

.mwu-modal__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-top: 1px solid rgba(20, 20, 20, .1);
    background: #fff;
}

.mwu-modal__count {
    flex: 0 0 auto;
    font-size: 1.1em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mwu-zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 10, .9);
    cursor: zoom-out;
}

.mwu-zoom[hidden] {
    display: none;
}

.mwu-modal .mwu-zoom__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
}

/* a wide card (the cart page on a tablet or desktop): hero side by side, tiles on one row, decline link beside the button */
@container mwu-slot (min-width: 620px) {
    .mwu-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 16px 22px;
    }

    .mwu-hero__main {
        flex: 1 1 auto;
    }

    .mwu-hero__main + .mwu-hero__per {
        flex: 0 1 auto;
        padding-left: 18px;
        border-left: 1px solid var(--mwu-line);
    }

    .mwu-card .mwu-tiles {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }

    .mwu-card .mwu-tile:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .mwu-tile__title {
        font-size: 17px;
    }

    .mwu-card .mwu-btn {
        flex: 1 1 auto;
    }

    .mwu-card .mwu-card__actions .mwu-link {
        margin: 0 !important;
    }
}

@media (max-width: 600px) {
    .mwu-card {
        --mwu-pad-y: 22px;
        --mwu-pad-x: 16px;
        padding-bottom: 14px;
    }

    .mwu-card .mwu-covers,
    .mwu-card .mwu-teaser {
        gap: 5px;
    }

    .mwu-cover__tag {
        font-size: .6em;
    }

    .mwu-modal {
        padding: 0;
    }

    .mwu-modal__panel {
        height: 100%;
        max-width: none;
        border-radius: 0;
    }

    .mwu-modal__head {
        padding: 14px 60px 10px 14px;
    }

    .mwu-modal__body {
        padding: 12px 14px 16px;
    }

    .mwu-modal .mwu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mwu-modal__foot {
        padding: 10px 14px;
    }

    .mwu-modal__foot .mwu-btn {
        flex: 1 1 auto;
        font-size: .95em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mwu-card,
    .mwu-card.is-celebrating,
    .mwu-reward,
    .mwu-print,
    .mwu-print__frame,
    .mwu-card .mwu-btn,
    .mwu-card .mwu-teaser__btn {
        animation: none;
        transition: none;
    }

    .mwu-card .mwu-btn::after {
        display: none;
        animation: none;
    }
}
