.pets-christmas {
    --book-page-ratio: 2433 / 3024;
    --book-ink: var(--dark, #17243e);
    --book-muted: var(--muted, #52617a);
    --book-line: var(--line, #dce4f1);
    --book-surface: var(--surface, #fff);
    --book-accent: var(--blue, #3455df);
    --book-tint: color-mix(in srgb, var(--book-accent) 5%, var(--book-surface));
    color: var(--book-ink);
}

.pets-christmas [hidden] { display: none !important; }
.photo-book-wrap { width: min(1220px, 100%); padding: 0 clamp(16px, 4vw, 52px); margin-inline: auto; }
.photo-book-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding-block: clamp(30px, 6vw, 82px);
}
.photo-book-intro .theme-subheading, .photo-book-config-heading .theme-subheading { margin: 0 0 12px; }
.pets-christmas h1 { font-size: clamp(41px, 5.5vw, 74px); line-height: 1.05; letter-spacing: normal; margin: 0; text-wrap: balance; }
.photo-book-lead { max-width: 33ch; margin: 22px 0 0; color: var(--book-muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; }
.photo-book-cta { margin-top: 24px; }
.photo-book-cta .icon { width: 20px; height: 20px; margin-inline-start: 6px; }
.photo-book-hero-image { display: block; width: 100%; height: auto; border-radius: clamp(16px, 2vw, 30px); }

.pets-christmas h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.12; letter-spacing: normal; margin: 0; }
body:has(.pets-christmas) :is(h1, h2, h3, h4, h5, h6, .theme-heading, .heading-primary) { letter-spacing: normal !important; }
.photo-book-faq details p { color: var(--book-muted); margin: 0; font-size: 15px; line-height: 1.65; }

.photo-book-config { scroll-margin-top: 112px; padding: clamp(20px, 4vw, 50px); background: var(--book-tint); border: 1px solid var(--book-line); border-radius: clamp(16px, 2.6vw, 28px); }
.photo-book-config-heading { margin-bottom: 24px; }
.photo-book-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(25px, 5vw, 65px); }
.photo-book-visual { display: grid; justify-items: center; align-content: center; gap: 18px; min-width: 0; min-height: 100%; padding: clamp(16px, 3vw, 32px); border-radius: 18px; background: var(--book-surface); }
.photo-book-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 6px; padding: 10px; background: #f3ecde; border-radius: 7px; }
.photo-book-spread img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.photo-book-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--book-muted); font-size: 13px; }
.photo-book-pagination button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--book-line); border-radius: 50%; color: var(--book-ink); font-size: 18px; }
.photo-book-pagination button:not(:disabled):hover { background: var(--book-tint); color: var(--book-accent); }
.photo-book-pagination button:disabled { opacity: .4; }

.photo-book-options, .photo-book-field { min-width: 0; }
.photo-book-field + .photo-book-field { margin-top: 15px; }
.photo-book-field label, .photo-book-packaging legend { display: block; margin: 0 0 7px; color: var(--book-ink); font-size: 15px; font-weight: 700; }
.photo-book-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--book-line); border-radius: 10px; color: var(--book-ink); background: var(--book-surface); font: inherit; font-size: 16px; }
.photo-book-field input::file-selector-button { margin-inline-end: 10px; padding: 5px 8px; border: 0; border-radius: 5px; background: var(--book-tint); color: var(--book-accent); font: inherit; font-size: 13px; font-weight: 700; }
.photo-book-note { margin: 8px 0 0; color: var(--book-muted); font-size: 13px; line-height: 1.55; }
.photo-book-packaging { display: grid; gap: 8px; min-width: 0; padding: 0; margin: 0; border: 0; }
.pets-christmas .photo-book-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid var(--book-line); border-radius: 14px; background: var(--book-surface); font-size: 14px; cursor: pointer; }
.photo-book-choice > span { min-width: 0; }
.pets-christmas .photo-book-choice strong { color: var(--book-ink); font-weight: 700; opacity: 1; }
.photo-book-choice small { display: block; color: var(--book-muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.photo-book-choice-price { white-space: nowrap; color: var(--book-accent); }
.christmas-included-badge { display: inline-block; padding: 5px 8px; border-radius: 6px; color: var(--book-muted); background: var(--book-tint); font-size: 11px; font-weight: 600; }
.pets-christmas .photo-book-choice:has([data-included]) { border-color: var(--book-line); box-shadow: none; background: var(--book-surface); cursor: default; }
.pets-christmas .photo-book-choice > input[data-included] { opacity: .75; cursor: default; }
.photo-book-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--book-line); color: var(--book-muted); font-size: 14px; }
.photo-book-total output { color: var(--book-ink); font-size: 25px; font-weight: 700; white-space: nowrap; }

.christmas-dedication, .christmas-book-editor { margin-top: 20px; }
.christmas-summary { min-width: 0; padding: clamp(16px, 3vw, 29px); border: 1px solid var(--book-line); border-radius: 16px; background: var(--book-surface); }
.christmas-label { display: grid; gap: 5px; padding: 17px 18px; background: #e9d9bf; color: #32291f; border-radius: 8px; }
.christmas-label span { font-size: 12px; }
.christmas-label strong { font-size: clamp(23px, 4vw, 35px); line-height: 1.15; overflow-wrap: anywhere; }
.christmas-summary-items { display: grid; gap: 9px; list-style: none; padding: 0; margin: 17px 0 0; font-size: 14px; }
.christmas-summary-items li { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.christmas-summary-items strong { white-space: nowrap; }

.photo-book-faq { max-width: 760px; margin: 0 auto; padding-block: clamp(36px, 6vw, 74px); }
.photo-book-faq h2 { margin-bottom: 18px; }
.photo-book-faq details { border-bottom: 1px solid var(--book-line); }
.photo-book-faq summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 650; }
.photo-book-faq details p { padding-bottom: 14px; }

@media (max-width: 760px) {
    .photo-book-hero, .photo-book-config-grid { grid-template-columns: minmax(0, 1fr); }
    .photo-book-hero-image { max-height: 490px; aspect-ratio: 5 / 4; object-fit: cover; }
    .photo-book-visual { min-height: auto; }
}

@media (max-width: 500px) {
    .photo-book-choice { padding: 11px; gap: 8px; }
}

.christmas-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.christmas-gallery { min-width: 0; }
.christmas-gallery-stage { position: relative; overflow: hidden; border-radius: clamp(16px, 2.4vw, 30px); touch-action: pan-y; }
.christmas-gallery-stage figure { margin: 0; position: relative; }
.christmas-gallery-stage figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.christmas-gallery-stage figcaption { position: absolute; left: 15px; bottom: 15px; padding: 7px 12px; border-radius: 99px; color: #fff; background: #17243ed9; font-size: 13px; }
.christmas-gallery-arrow { display: grid; place-items: center; position: absolute; top: 50%; width: 44px; height: 44px; translate: 0 -50%; border: 0; border-radius: 50%; background: #fffffff2; color: #17243e; font-size: 30px; line-height: 1; cursor: pointer; }
.christmas-gallery-arrow.previous { left: 12px; }
.christmas-gallery-arrow.next { right: 12px; }
.christmas-gallery-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.christmas-gallery-thumbs button { border: 2px solid transparent; padding: 2px; border-radius: 11px; cursor: pointer; }
.christmas-gallery-thumbs button[aria-pressed='true'] { border-color: var(--book-accent); }
.christmas-gallery-thumbs img { display: block; width: clamp(48px, 6vw, 64px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }

.christmas-tag, .christmas-tag-details, .christmas-book-options, .christmas-layout-options { min-width: 0; padding: 0; margin: 0; border: 0; }
.christmas-tag { margin-bottom: 22px; }
.christmas-tag legend, .christmas-layout-options legend { font-weight: 700; color: var(--book-ink); margin: 0 0 8px; font-size: 15px; }
.christmas-tag-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pets-christmas .christmas-tag-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--book-line); border-radius: 14px; background: var(--book-surface); padding: 16px 12px; min-height: 84px; color: var(--book-ink); cursor: pointer; font-size: 14px; font-weight: 650; }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) { transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice):hover { border-color: color-mix(in srgb, var(--book-accent) 45%, var(--book-line)); }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice):has(:checked) { border-color: color-mix(in srgb, var(--book-accent) 65%, var(--book-line)); background: color-mix(in srgb, var(--book-accent) 5%, var(--book-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--book-accent) 15%, transparent); }
.pets-christmas .christmas-tag-option > span { color: var(--book-ink); opacity: 1; }
.christmas-tag-option small { display: block; margin-top: 2px; color: var(--book-accent); font-weight: 700; }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) > input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 1.5px solid color-mix(in srgb, var(--book-muted) 50%, var(--book-line));
    border-radius: 6px;
    background: var(--book-surface);
    box-shadow: inset 0 1px 2px #17243e0a;
    cursor: pointer;
}
.pets-christmas .christmas-tag-option > input { border-radius: 50%; }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) > input::before,
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) > input::after { content: none; display: none; }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) > input:checked { border-color: #3b50e6; background-color: #3b50e6; box-shadow: none; }
.pets-christmas .photo-book-choice > input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m5.5 11 3.6 3.6 7.4-7.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 100% 100%; }
.pets-christmas .christmas-tag-option > input:checked { background-image: radial-gradient(circle, white 0 4px, transparent 4.5px); }
.pets-christmas :is(.christmas-tag-option, .photo-book-choice) > input:focus-visible { outline: 3px solid color-mix(in srgb, var(--book-accent) 35%, transparent); outline-offset: 4px; }
@media (max-width: 500px) {
    .pets-christmas .christmas-tag-option { gap: 8px; padding: 13px 9px; font-size: 12px; }
    .pets-christmas .photo-book-choice { gap: 11px; padding: 15px 12px; }
    .pets-christmas .christmas-tag-preview { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .christmas-tag-preview > .photo-book-field { width: 100%; }
    .pets-christmas .christmas-tag-custom-fields { grid-template-columns: minmax(0, 1fr); }
}
.christmas-tag-details { background: var(--book-surface); border: 1px solid var(--book-line); border-radius: 13px; padding: 14px; margin-top: 10px; }
.christmas-tag-preview { display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; }
.christmas-tag-sheet { position: relative; width: 136px; color: #fff; }
.christmas-tag-sheet[data-tag-color='silver'] { color: #303039; }
.christmas-tag-sheet > img { display: block; width: 100%; height: auto; }
.christmas-tag-sheet > .christmas-tag-sample-qr { position: absolute; left: 66.125%; top: 37.5%; width: 17.75%; height: 35.5%; filter: invert(1); }
.christmas-tag-sheet[data-tag-color='silver'] > .christmas-tag-sample-qr { filter: none; }
.christmas-tag-sheet > svg { position: absolute; top: 0; width: 50%; height: 100%; fill: currentColor; font-family: var(--smplsFontFamilyTagRounded, Arial, sans-serif); }
.christmas-tag-front-text { left: 0; }
.christmas-tag-back-text { left: 50%; }
.christmas-tag-custom-fields { padding: 0; margin: 0; min-width: 0; border: 0; }
.christmas-input-pair, .christmas-page-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.christmas-input-pair .photo-book-field + .photo-book-field, .christmas-page-controls .photo-book-field + .photo-book-field { margin-top: 0; }
.photo-book-field select { width: 100%; min-height: 46px; padding: 8px 11px; color: var(--book-ink); background: var(--book-surface); border: 1px solid var(--book-line); border-radius: 9px; font: inherit; }
.photo-book-choice { color: var(--book-ink); }
.christmas-book-action { padding: 3px 2px 7px; }
.christmas-book-gift-card { border: 1px solid var(--book-line); border-radius: 14px; background: var(--book-surface); overflow: hidden; }
.christmas-book-gift-card:has(input:checked) { border-color: color-mix(in srgb, var(--book-accent) 65%, var(--book-line)); background: color-mix(in srgb, var(--book-accent) 5%, var(--book-surface)); }
.pets-christmas .christmas-book-gift-card > .photo-book-choice { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.christmas-book-gift-card > .christmas-book-action { padding: 0 16px 18px 52px; }
.christmas-book-gift-card .christmas-book-action button { max-width: 100%; white-space: normal; text-align: center; }
.christmas-book-action button { min-height: 44px; }
.christmas-summary { padding: 0; overflow: hidden; }
.christmas-summary-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.christmas-bundle-visual { position: relative; container-type: inline-size; }
.christmas-bundle-dedication { position: absolute; left: 79.8%; top: 65.3%; width: 13%; height: 14.5%; display: flex; align-items: center; justify-content: center; transform: rotate(-13deg); color: #503322; font-family: 'Book Handwriting', cursive; font-size: 4cqw; line-height: 1.05; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.christmas-bundle-dedication[data-length="medium"] { font-size: 3.1cqw; }
.christmas-bundle-dedication[data-length="long"] { font-size: 2.5cqw; }
.christmas-bundle-tag { position: absolute; left: 50%; top: 49%; width: 14.5%; aspect-ratio: 1; transform: rotate(-9deg); filter: drop-shadow(2px 5px 4px #28170e50); pointer-events: none; }
.christmas-bundle-tag-face { width: 100%; height: 100%; overflow: hidden; }
.christmas-bundle-tag-face img { display: block; width: 200%; max-width: none; height: 100%; }
.christmas-bundle-tag svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: white; font-family: Arial, sans-serif; }
.christmas-bundle-tag[data-tag-color="silver"] svg { fill: #323232; }
.christmas-packaging-note { margin: 0 0 14px; color: var(--book-ink); font-weight: 650; }
.christmas-ribbons { margin: 22px 0; padding: 18px; min-width: 0; border: 1px solid var(--book-line); border-radius: 16px; background: var(--book-surface); }
.christmas-ribbons legend { padding: 0 6px; font-weight: 700; font-size: 16px; color: var(--book-ink); }
.christmas-ribbons > p { margin: 0 0 14px; }
.christmas-ribbon-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pets-christmas .christmas-ribbon-option { position:relative; grid-template-columns:22px minmax(0,1fr); align-content:center; justify-items:center; row-gap:4px; column-gap:10px; min-height:96px; padding:16px 12px; text-align:center; }
.christmas-ribbon-swatch { --ribbon-color: #214bbb; position: relative; display: block; width: 42px; height: 22px; margin:0; grid-column:2; grid-row:1; }
.christmas-ribbon-swatch::before, .christmas-ribbon-swatch::after { content: ''; position: absolute; top: 4px; width: 23px; height: 17px; border: 1px solid #ffffff30; background: var(--ribbon-color); box-shadow: inset 0 -5px 6px #0002; }
.christmas-ribbon-swatch::before { left: 0; border-radius: 3px 10px 3px 10px; transform: rotate(14deg); }
.christmas-ribbon-swatch::after { right: 0; border-radius: 10px 3px 10px 3px; transform: rotate(-14deg); }
[data-ribbon-color="red"] .christmas-ribbon-swatch { --ribbon-color: #b91f2c; }
[data-ribbon-color="silver"] .christmas-ribbon-swatch { --ribbon-color: #bfc6ce; }
.pets-christmas .christmas-ribbon-option > input { grid-column:1; grid-row:1 / 3; align-self:center; }
.pets-christmas .christmas-ribbon-option:has(input:focus-visible) { outline:3px solid var(--book-accent); outline-offset:3px; }
.christmas-ribbon-option > span:last-child { grid-column:2; grid-row:2; font-size:14px; line-height:1.3; }
.christmas-ribbon-option small { font-size: 11px; font-weight: 400; line-height: 1.4; }
@media (max-width: 520px) {
    .christmas-ribbons { padding:14px; }
    .christmas-ribbon-options { gap:7px; }
    .pets-christmas .christmas-ribbon-option { min-height:92px; padding:12px 6px; column-gap:4px; }
    .christmas-ribbon-option > span:last-child { font-size:11px; }
    .christmas-ribbon-swatch { width:34px; }
}
.christmas-summary-body { padding: clamp(14px, 2.4vw, 24px); }
.christmas-add { width: 100%; justify-content: center; margin-top: 16px; gap: 8px; }
.christmas-add .icon { width: 19px; height: 19px; }
.christmas-add:disabled { opacity: .55; }
.christmas-error { color: light-dark(#9d2332, #ff9da9); font-size: 14px; margin: 9px 0 0; }
.christmas-error:empty { display: none; }

.christmas-book-dialog {
    --book-ink: var(--dark, #17243e);
    --book-muted: var(--muted, #52617a);
    --book-line: var(--line, #dce4f1);
    --book-surface: var(--surface, #fff);
    --book-accent: var(--blue, #3455df);
    --book-tint: color-mix(in srgb, var(--book-accent) 5%, var(--book-surface));
    inset: 0;
    margin: auto;
    width: min(780px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--book-line);
    border-radius: 20px;
    background: var(--book-surface);
    color: var(--book-ink);
}
.christmas-book-dialog::backdrop { background: #0b1329a8; }
.christmas-dialog-header, .christmas-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(14px, 2.8vw, 23px); }
.christmas-dialog-header { border-bottom: 1px solid var(--book-line); }
.pets-christmas .christmas-dialog-header h2 { font-size: clamp(22px, 4vw, 32px); }
.christmas-dialog-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--book-line); border-radius: 50%; color: var(--book-ink); font-size: 24px; cursor: pointer; }
.christmas-dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 17px; padding: clamp(14px, 2.8vw, 23px); }
.christmas-dialog-body .photo-book-visual { background: var(--book-tint); align-self: stretch; }
.christmas-dialog-footer { justify-content: flex-end; border-top: 1px solid var(--book-line); flex-wrap: wrap; }
.christmas-layout-options { margin-top: 16px; }
.christmas-layout-options label { display: flex; gap: 7px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.christmas-page-controls { margin-top: 10px; }

@media (max-width: 640px) {
    .christmas-dialog-body { grid-template-columns: minmax(0, 1fr); }
    .christmas-dialog-body .photo-book-visual { min-height: 0; }
}
@media (max-width: 390px) {
    .christmas-input-pair { grid-template-columns: minmax(0, 1fr); }
    .christmas-tag-option { gap: 4px; padding-inline: 5px; }
}

/* Three steps, one automatically composed print book. */
.christmas-book-dialog { width: min(980px, calc(100% - 24px)); }
.christmas-book-dialog [hidden] { display: none !important; }
.christmas-dialog-header .photo-book-note { margin: 0 0 5px; font-size: 10px; letter-spacing: .15em; }
.christmas-book-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; gap: 12px; margin: 0; padding: 20px 24px; border-bottom: 1px solid var(--book-line); }
.christmas-book-steps li { display: flex; align-items: center; gap: 9px; color: var(--book-muted); font-size: 13px; font-weight: 650; }
.christmas-book-steps li span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--book-tint); border: 1px solid var(--book-line); }
.christmas-book-steps li[aria-current] { color: var(--book-accent); }
.christmas-book-steps li[aria-current] span { background: var(--book-accent); border-color: var(--book-accent); color: var(--book-surface); }
.christmas-book-panel { padding: clamp(18px, 3vw, 30px); }
.christmas-book-intro { margin-bottom: 24px; max-width: 690px; }
.christmas-book-intro h3 { margin: 0 0 8px; font: 600 clamp(21px, 3vw, 28px)/1.25 var(--smplsFontFamilyHeading, system-ui); color: var(--book-ink); }
.christmas-book-intro p { margin: 0; color: var(--book-muted); font-size: 14px; line-height: 1.65; }
.christmas-book-cover-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
.christmas-book-cover-grid .christmas-book-scene { width: min(100%, 320px); }
.christmas-book-cover-grid .christmas-live-cover { min-height: 0; padding: 20px; gap: 12px; }
.christmas-motif-design-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding: 16px; border: 1px solid var(--book-line); border-radius: 14px; background: var(--book-tint); }
.christmas-motif-design-controls .photo-book-field { margin: 0; }
@media (max-width: 600px) { .christmas-motif-design-controls { grid-template-columns: 1fr; gap: 10px; } }
.christmas-book-cover-grid .photo-book-visual { background: var(--book-tint); }
.christmas-book-appearance { min-width: 0; }
.christmas-book-design-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; padding: 18px; border: 1px solid var(--book-line); border-radius: 14px; background: var(--book-tint); }
.christmas-book-design-options + .photo-book-note { margin: 10px 0 0; }
.christmas-book-design-options .photo-book-field { margin: 0; }
.christmas-book-appearance > .photo-book-note { margin: 10px 0 18px; }
.christmas-motif-samples { margin-top: 22px; }
.christmas-book-preview-action { width: 100%; text-align: center; }
.christmas-book-preview-button { min-width: 150px; justify-content: center; }
.christmas-motif-viewer-content > .christmas-motif-cover-only { grid-template-columns: minmax(0, 1fr); width: min(72%, 440px); margin-inline: auto; }
.christmas-motif-open-book.christmas-motif-cover-only::after { left: 4px; width: 12px; background: linear-gradient(to right, #33291e28, #fff6, transparent); }
.christmas-motif-cover-only .christmas-motif-sheet::after { background: linear-gradient(to right, #00000014, transparent 8%); }
.christmas-motif-samples h4 { margin: 0; color: var(--book-ink); font: 650 15px/1.4 var(--smplsFontFamilyHeading, system-ui); }
.christmas-motif-sample-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-top: 14px; padding: 6px 4px 12px; }
.christmas-motif-sample-grid figure { margin: 0; min-width: 0; flex: 0 0 78%; max-width: 310px; scroll-snap-align: start; }
.christmas-motif-spread-button { display: block; width: 100%; padding: 6px 6px 12px; border: 0; background: transparent; cursor: zoom-in; }
.christmas-motif-spread-button:hover .christmas-motif-open-book { box-shadow: 0 10px 20px #0b183333; }
.christmas-motif-sample-grid figcaption { color: var(--book-muted); font-size: 11px; line-height: 1.4; margin-top: 7px; text-align: center; }
.christmas-motif-open-book { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: 100%; padding: 4px 4px 10px; background: #e8e1d4; border-radius: 5px 8px 8px 5px; box-shadow: 0 8px 14px #0b183326; perspective: 1200px; }
.christmas-motif-open-book::before { content: ''; position: absolute; inset: 5px 2px 3px; border-bottom: 3px solid #c9c2b5; border-radius: 5px; box-shadow: 0 2px 0 #faf8f1; }
.christmas-motif-open-book::after { content: ''; position: absolute; z-index: 3; top: 4px; bottom: 10px; left: calc(50% - 4px); width: 8px; background: linear-gradient(to right, transparent, #382b1b28 45%, #fff6 70%, transparent); pointer-events: none; }
.christmas-motif-sheet { position: relative; min-width: 0; }
.christmas-motif-sheet canvas { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.christmas-motif-sheet::after { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.christmas-motif-sheet:first-child::after { background: linear-gradient(to right, #fff2, transparent 10%, transparent 85%, #33291e1c); }
.christmas-motif-sheet:last-child::after { background: linear-gradient(to right, #33291e1c, transparent 12%, transparent 92%, #fff2); }
.christmas-motif-viewer { width: min(1120px, calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: clamp(16px, 2.5vw, 28px); overflow-y: auto; border: 1px solid var(--book-line); border-radius: 22px; background: var(--book-surface); color: var(--book-ink); box-shadow: 0 30px 100px #07102466; }
.christmas-motif-viewer::backdrop { background: #0b152bb3; backdrop-filter: blur(8px); }
.christmas-motif-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.christmas-motif-viewer-header h3 { margin: 0; color: var(--book-ink); font: 650 clamp(21px, 3vw, 28px)/1.3 var(--smplsFontFamilyHeading, system-ui); }
.christmas-motif-viewer-header .photo-book-note { margin: 0 0 5px; font-size: 10px; letter-spacing: .12em; }
.christmas-motif-viewer-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--book-line); border-radius: 50%; background: var(--book-tint); color: var(--book-ink); font-size: 27px; cursor: pointer; }
.christmas-motif-viewer-content { display: grid; place-items: center; margin: 20px 0 12px; padding: clamp(14px, 3vw, 28px) clamp(8px, 3vw, 28px) 32px; border-radius: 14px; background: var(--book-tint); }
.christmas-motif-viewer-content > .christmas-motif-open-book { max-width: min(100%, max(300px, calc(160.9dvh - 515px))); }
.christmas-motif-viewer-hint { text-align: center; margin: 8px 0 16px; }
.christmas-motif-photo-target { position: absolute; z-index: 1; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.christmas-motif-photo-target > span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; opacity: 0; white-space: nowrap; background: #17243ee8; color: #fff; font-size: 12px; }
.christmas-motif-photo-target:is(:hover, :focus-visible) > span { opacity: 1; }
.christmas-motif-photo-target:focus-visible { outline: 3px solid var(--book-accent); outline-offset: 2px; }
.christmas-motif-photo-back { margin-top: 15px; min-height: 40px; padding: 7px 0; border: 0; background: transparent; color: var(--book-accent); font: inherit; font-size: 14px; cursor: pointer; }
.christmas-motif-full-photo { display: block; width: 100%; height: auto; max-height: calc(100dvh - 230px); object-fit: contain; }
.christmas-motif-viewer[data-photo] .christmas-motif-viewer-content { padding: 12px; }
@keyframes christmas-motif-leaf-open { from { transform: rotateY(-35deg); opacity: .5; } to { transform: rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .christmas-motif-viewer[open] .christmas-motif-sheet:last-child { transform-origin: left center; animation: christmas-motif-leaf-open .28s ease-out; } }
.christmas-upload-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.christmas-upload-bar .photo-book-field { flex: 1; }
.christmas-book-count { padding: 12px; background: var(--book-tint); color: var(--book-accent); font-size: 20px; font-weight: 700; border-radius: 10px; white-space: nowrap; }
.christmas-photo-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 22px 0 0; padding: 2px; max-height: min(44dvh, 440px); overflow-y: auto; overscroll-behavior: contain; }
.christmas-photo-card { min-width: 0; border: 1px solid var(--book-line); background: var(--book-surface); border-radius: 12px; overflow: hidden; cursor: grab; }
.christmas-photo-card[aria-grabbed='true'] { opacity: .45; }
.christmas-photo-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.christmas-photo-card { position: relative; }
.christmas-photo-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 7px 6px 11px; }
.christmas-photo-card small { display: block; color: var(--book-ink); font-size: 16px; font-weight: 650; white-space: nowrap; }
.christmas-photo-card .christmas-photo-remove { position: absolute; z-index: 1; top: 7px; right: 7px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff70; border-radius: 50%; background: #ffffffed; box-shadow: 0 2px 8px #17243e26; color: #26344c; font-size: 24px; line-height: 1; cursor: pointer; }
.christmas-photo-card .christmas-photo-remove:hover { background: #fff; }
.christmas-photo-controls { display: flex; justify-content: space-between; padding: 0 3px 3px; }
.christmas-photo-controls button { min-width: 38px; min-height: 40px; background: transparent; border: 0; border-radius: 7px; color: var(--book-ink); font: inherit; font-size: 20px; cursor: pointer; }
.christmas-photo-controls button:disabled { opacity: .3; cursor: default; }
.christmas-photo-controls button:hover:not(:disabled) { background: var(--book-tint); color: var(--book-accent); }
.christmas-print-preview { display: grid; justify-items: center; gap: 16px; border-radius: 16px; background: var(--book-tint); padding: clamp(12px, 3vw, 25px); }
.christmas-print-note { text-align: center; }
.christmas-print-note a { display: inline-block; padding: 8px; color: var(--book-accent); text-decoration: underline; }
.christmas-draft-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 16px; }
.christmas-draft-status p { margin: 0; }
.christmas-draft-status button { min-height: 44px; flex: none; border: 0; background: transparent; color: var(--book-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; }
.christmas-dialog-footer .christmas-error { flex: 1 1 100%; margin: 0; }
.christmas-book-dialog :focus-visible { outline: 3px solid var(--book-accent); outline-offset: 3px; }
.christmas-book-dialog button:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) {
    .christmas-photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .christmas-book-cover-grid { grid-template-columns: 1fr; gap: 20px; }
    .christmas-book-cover-grid .photo-book-visual { padding: 15px; }
    .christmas-book-steps { padding: 16px; gap: 8px; }
    .christmas-book-steps li { flex-direction: column; text-align: center; font-size: 11px; }
    .christmas-draft-status { padding-inline: 18px; }
    .christmas-dialog-footer .btn { min-height: 46px; }
}
@media (max-width: 380px) {
    .christmas-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .christmas-upload-bar { align-items: start; gap: 8px; }
    .christmas-book-count { font-size: 15px; padding: 9px; }
}
.christmas-book-dialog .christmas-dialog-footer { position: sticky; bottom: 0; z-index: 2; background: var(--book-surface); box-shadow: 0 -6px 18px #17243e08; }
.christmas-demo-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 24px 0; padding: 16px; border: 1px dashed var(--book-line); border-radius: 12px; background: var(--book-tint); }
.christmas-demo-panel strong { font-size: 14px; }
.christmas-demo-panel .photo-book-note { margin-top: 4px; }
.christmas-demo-panel button { flex: none; font-size: 11px; }
@media (max-width: 700px) { .christmas-demo-panel { align-items: stretch; flex-direction: column; margin-inline: 18px; gap: 10px; } }
@font-face { font-family: 'Book Handwriting'; src: url('fonts/evidence-handwriting.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Book Serif'; src: url('fonts/book-serif.ttf') format('truetype'); font-weight: 400; font-display: swap; }
.christmas-live-cover { min-height: 0; align-self: start; padding: clamp(20px, 3vw, 34px); background: var(--book-tint); }
.christmas-book-scene { width: min(100%, 380px); padding: 16px 12px 28px 22px; perspective: 1200px; }
.christmas-book-object {
    --cover-color: #edf3ed;
    position: relative;
    width: 100%;
    aspect-ratio: var(--book-page-ratio);
    transform: rotateX(7deg) rotateY(-16deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    box-shadow: 16px 24px 28px #0b183333, 4px 7px 7px #0b18331c;
    border-radius: 3px 7px 7px 3px;
}
.christmas-live-cover canvas {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--book-page-ratio);
    border-radius: 3px 7px 7px 3px;
    transform: translateZ(14px);
}
.christmas-book-pages {
    position: absolute;
    inset: 3px -7px -10px 4px;
    border-radius: 2px 6px 6px 3px;
    background: repeating-linear-gradient(to bottom, #f8f6ef 0 2px, #d5d2c9 2px 3px);
    border-right: 2px solid #e5e1d8;
    border-bottom: 4px solid var(--cover-color);
    box-shadow: 1px 2px 2px #0b183326;
}
.christmas-book-object::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -9px;
    left: -11px;
    width: 16px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(to right, #00000030, #ffffff35 35%, #00000012 85%), var(--cover-color);
    transform: translateZ(4px);
    box-shadow: inset 1px 0 1px #ffffff50;
}
.christmas-book-object::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 3px 7px 7px 3px;
    transform: translateZ(15px);
    background: linear-gradient(to right, #0000001c, #ffffff30 1.2%, #00000012 3.2%, transparent 6%, transparent 96%, #ffffff25);
    box-shadow: inset 0 0 0 1px #ffffff45, inset 12px 0 8px -9px #00000045;
}
.christmas-live-cover .photo-book-note { text-align: center; margin: 0; }
.christmas-crop-editor { padding: clamp(18px, 3vw, 30px); }
.christmas-crop-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; padding-top: 20px; }
.christmas-crop-controls > div:first-child { grid-column: 1 / -1; }
.christmas-crop-controls label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--book-ink); font-weight: 650; }
.christmas-crop-controls output { font-variant-numeric: tabular-nums; color: var(--book-accent); }
.christmas-crop-controls input[type='range'] { width: 100%; min-height: 32px; accent-color: var(--book-accent); }
.christmas-crop-tools, .christmas-crop-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.christmas-crop-tools button { min-height: 42px; border: 0; background: transparent; color: var(--book-accent); text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }
.christmas-crop-actions { border-top: 1px solid var(--book-line); padding-top: 18px; }
@media (max-width: 440px) { .christmas-crop-controls { gap: 10px; } .christmas-crop-actions .btn { padding-inline: 13px; font-size: 11px; } }
.christmas-book-layout { margin-bottom: 22px; }
.christmas-result-book { width: min(100%, 460px); padding: 20px 16px 32px 26px; }
.christmas-result-book .christmas-book-object { transform: rotateX(5deg) rotateY(-11deg) rotateZ(-1deg); }
.christmas-result-book .christmas-book-object[data-book-surface='page']::after {
    background: linear-gradient(to right, #00000024, #00000009 3%, transparent 9%, transparent 95%, #ffffff30);
}
.christmas-book-page-stage { position: relative; width: 100%; aspect-ratio: var(--book-page-ratio); transform: translateZ(14px); }
.christmas-book-page-stage > img { display: block; width: 100%; height: auto; aspect-ratio: var(--book-page-ratio); border-radius: 3px 7px 7px 3px; }
.christmas-book-page-stage > canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.christmas-book-page-stage > canvas.is-dragging { cursor: grabbing; }
.christmas-book-page-stage [data-book-photo-targets] { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.christmas-page-photo-target { position: absolute; display: block; appearance: none; pointer-events: auto; padding: 0; border: 2px solid transparent; border-radius: 0; background: transparent !important; cursor: crosshair; transform-origin: center; }
.christmas-page-photo-target > span { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); opacity: 0; padding: 7px 11px; border-radius: 8px; white-space: nowrap; background: var(--book-surface); color: var(--book-ink); font-size: 11px; font-weight: 700; box-shadow: 0 3px 12px #17243e25; }
.christmas-page-photo-target:is(:hover, :focus-visible) { border-color: #4654f5; box-shadow: 0 0 0 2px #ffffffb0; }
.christmas-page-photo-target:is(:hover, :focus-visible) > span { opacity: 1; }
.christmas-book-dialog[data-inline-crop] > :is(.christmas-book-steps, .christmas-draft-status, .christmas-dialog-footer) { display: none !important; }
.christmas-book-dialog[data-inline-crop] [data-book-step='3'] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, 1fr); align-items: start; gap: 18px; }
.christmas-book-dialog[data-inline-crop] [data-book-step='3'] > .christmas-book-intro { grid-column: 1 / -1; margin-bottom: 0; }
.christmas-book-dialog[data-inline-crop] .christmas-print-preview { grid-column: 1; grid-row: 2; padding: 14px; }
.christmas-book-dialog[data-inline-crop] .christmas-result-book { perspective: none; padding: 12px 12px 22px 18px; }
.christmas-book-dialog[data-inline-crop] .christmas-result-book .christmas-book-object { transform: none; }
.christmas-book-dialog[data-inline-crop] .christmas-book-page-stage { transform: none; }
.christmas-book-dialog[data-inline-crop] .christmas-crop-editor { grid-column: 2; grid-row: 2; padding: 8px 0; }
.christmas-book-dialog[data-inline-crop] [data-book-step='3'] > :is(p, button) { grid-column: 1 / -1; }
.christmas-crop-editor h3 { margin: 0 0 8px; font-size: 20px; }
.christmas-crop-editor .christmas-book-intro { margin-bottom: 0; }
.christmas-print-note a[aria-disabled='true'] { opacity: .5; cursor: wait; text-decoration: none; }
[data-book-print-status]:empty { display: none; }
@media (max-width: 700px) {
    .christmas-book-dialog[data-inline-crop] [data-book-step='3'] { display: block; }
    .christmas-book-dialog[data-inline-crop] .christmas-result-book { width: min(100%, 34dvh); }
    .christmas-book-dialog[data-inline-crop] .christmas-print-preview { margin-top: 12px; padding: 10px; gap: 8px; }
    .christmas-book-dialog[data-inline-crop] .photo-book-pagination { display: none; }
    .christmas-book-dialog[data-inline-crop] .christmas-crop-editor { padding: 14px 0 0; }
    .christmas-book-dialog[data-inline-crop] [data-book-step='3'] > .christmas-book-intro { display: none; }
}

/* The customer selects an illustrative motif; staff compose the finished book. */
.christmas-simple-book { width: min(1080px, calc(100% - 24px)); }
.christmas-simple-book .christmas-book-steps { grid-template-columns: repeat(2, 1fr); }
.christmas-simple-book .christmas-book-intro p { max-width: 75ch; }
.christmas-simple-book .photo-book-note { font-size: 14px; }
.christmas-motif-showcase { margin: 22px 0 0; overflow: hidden; border: 1px solid var(--book-line); border-radius: 16px; background: var(--book-surface); }
.christmas-motif-showcase > img { display: block; width: 100%; height: auto; }
.christmas-motif-showcase figcaption { padding: 12px 18px; color: var(--book-muted); font-size: 14px; line-height: 1.6; }
.christmas-motif-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pets-christmas .christmas-motif-card { position: relative; display: grid; gap: 0; overflow: hidden; margin: 0; border: 2px solid var(--book-line); border-radius: 12px; background: var(--book-surface); cursor: pointer; }
.christmas-motif-card img { display: block; width: 100%; height: auto; }
.christmas-motif-card span { display: block; padding: 11px 12px 11px 36px; font-size: 14px; font-weight: 650; color: var(--book-ink); }
.pets-christmas .christmas-motif-card input[type='radio'] { appearance: none; -webkit-appearance: none; position: absolute; bottom: 13px; left: 12px; display: block; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 0; padding: 0; border: 1.5px solid var(--book-muted); border-radius: 50%; background: var(--book-surface); box-shadow: none; cursor: pointer; }
.pets-christmas .christmas-motif-card input[type='radio']::before,
.pets-christmas .christmas-motif-card input[type='radio']::after { content: none; display: none; }
.pets-christmas .christmas-motif-card input[type='radio']:checked { border-color: var(--book-accent); background: radial-gradient(circle, var(--book-accent) 0 4px, var(--book-surface) 4.5px); }
.christmas-motif-card:has(:checked) { border-color: var(--book-accent); background: var(--book-tint); }
.christmas-motif-card:has(:focus-visible) { outline: 3px solid var(--book-accent); outline-offset: 3px; }
.christmas-selected-motif { display: inline-block; margin: 0 0 20px; padding: 8px 13px; border-radius: 8px; background: var(--book-tint); color: var(--book-accent); font-size: 15px; font-weight: 650; }
.christmas-simple-book .christmas-upload-bar { margin-top: 24px; padding: 22px; border: 1px dashed var(--book-accent); border-radius: 14px; background: var(--book-tint); }
.christmas-upload-progress { flex: 1 1 100%; margin: 0; }
.christmas-upload-progress:empty { display: none; }
@media (max-width: 700px) {
    .christmas-motif-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .christmas-motif-card span { min-height: 50px; display: flex; align-items: center; padding-left: 32px; }
    .pets-christmas .christmas-motif-card input { bottom: 17px; left: 9px; }
    .christmas-simple-book .christmas-book-steps li { flex-direction: row; text-align: left; font-size: 14px; }
    .christmas-simple-book .christmas-upload-bar { padding: 14px; flex-wrap: wrap; }
    .christmas-simple-book .christmas-dialog-footer .btn { flex: 1 1 auto; white-space: normal; }
}
 .christmas-motif-navigation { display: none; }
@media (min-width: 850px) {
    .christmas-motif-navigation { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; color: var(--book-ink); font-size: 15px; font-weight: 650; }
    .christmas-motif-navigation > div { display: flex; gap: 8px; }
    .christmas-motif-navigation button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--book-line); border-radius: 50%; background: var(--book-surface); color: var(--book-ink); font: inherit; font-size: 26px; cursor: pointer; }
    .christmas-motif-navigation button:hover { border-color: var(--book-accent); color: var(--book-accent); }
    .christmas-simple-book .christmas-motif-picker { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--book-muted) transparent; }
    .christmas-simple-book .christmas-motif-card { flex: 0 0 180px; scroll-snap-align: start; }
    .christmas-simple-book .christmas-motif-showcase { width: 100%; }
}
.christmas-photo-card figure{margin:0;background:var(--book-surface);border-radius:10px;overflow:hidden}.christmas-photo-card figcaption{padding:10px 12px;font-size:13px;text-align:center;color:var(--book-ink);overflow-wrap:anywhere;white-space:pre-wrap}.christmas-caption-toggle{display:flex!important;align-items:center;gap:8px;font-size:12px;margin:10px 0;color:var(--book-ink)}.pets-christmas .christmas-caption-toggle input[type=checkbox]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0;padding:0;accent-color:var(--book-accent)}.christmas-caption-toggle input::before,.christmas-caption-toggle input::after{display:none!important}.christmas-photo-card textarea{width:100%;resize:vertical;min-height:64px;padding:10px;border:1px solid var(--book-line);border-radius:8px;background:var(--book-surface);color:var(--book-ink);font:inherit;font-size:13px}.christmas-photo-card:has(textarea){overflow:visible;background:transparent;cursor:default;padding:6px}.christmas-photo-gallery{align-items:start}

/* Keep the selection control aligned with both one-line and wrapped motif names. */
.pets-christmas .christmas-motif-card {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto minmax(54px, auto);
    align-items: center;
}
.christmas-motif-card img {
    grid-column: 1 / -1;
    grid-row: 1;
}
.pets-christmas .christmas-motif-card input[type='radio'] {
    position: static;
    grid-column: 1;
    grid-row: 2;
    margin-left: 10px;
}
.pets-christmas .christmas-motif-card span {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 12px 10px 12px 6px;
    line-height: 1.35;
}

.pets-christmas[data-christmas] {
    padding-bottom: clamp(40px, 5vw, 72px);
}

.christmas-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    color: var(--book-muted);
    font-size: 13px;
}
.christmas-breadcrumb a { color: inherit; }
.christmas-breadcrumb + .photo-book-hero { padding-top: clamp(24px, 4vw, 48px); }

html[data-theme] .christmas-delivery-note { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
html[data-theme] .christmas-delivery-note strong { display:inline; color:inherit; margin:0; font-weight:750; }
html[data-theme] .christmas-delivery-note p { margin: 0; font-size: 14px; color: var(--muted); }

html[data-theme] .christmas-delivery-status { display:flex; align-items:flex-start; gap:10px; color:#18734c; }
html[data-theme] .christmas-delivery-status p { color:inherit; font-weight:600; }
.christmas-delivery-status svg { width:24px; height:24px; flex:0 0 24px; margin-top:1px; }
html[data-theme="dark"] .christmas-delivery-status { color:#87dcb1; }
.christmas-breadcrumb a { display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.christmas-breadcrumb a:hover { color:var(--blue); }
.christmas-breadcrumb .icon { width:18px; height:18px; }
.christmas-breadcrumb .breadcrumb-separator { opacity:.5; }
.christmas-breadcrumb [aria-current] { font-weight:600; }

.christmas-cats .christmas-gallery-stage img, .christmas-cats .christmas-summary-image { object-fit:contain; background:#fff; }
.christmas-cats .christmas-tag-sheet>svg, .christmas-cats .christmas-tag-sample-qr { display:none; }
.christmas-cats .christmas-bundle-dedication { left:79%; top:65%; width:14%; height:14%; transform:rotate(-13deg); }
.christmas-cats .christmas-tag-sheet { aspect-ratio:1; }
.christmas-cats .christmas-tag-sheet>img:first-child { width:100%; height:100%; object-fit:contain; }

/* Keep the native modal backdrop on a stable layer, including Safari. */
html:has(.christmas-book-dialog[open]) { overflow:hidden; scrollbar-gutter:stable; }
html[data-theme] .christmas-book-dialog::backdrop {
    background:rgba(11,19,41,.68);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    transition:none;
    animation:none;
}
.christmas-book-dialog { overscroll-behavior:contain; }

html[data-theme] dialog.christmas-book-dialog.is-uploading { width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; overflow:hidden; }
.book-upload-screen { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:max(32px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); overflow:auto; background:var(--book-surface,#fff); color:var(--book-ink,#191d32); }
.book-upload-screen[hidden] { display:none; }
.book-upload-card { width:min(100%,640px); text-align:center; }
.book-upload-symbol { width:56px; height:56px; padding:20px; box-sizing:content-box; border-radius:28px; color:var(--book-accent,#4054e8); background:var(--book-tint,#f1f3ff); margin:0 auto 24px; }
.book-upload-card .book-upload-eyebrow { color:var(--book-accent,#4054e8); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
html[data-theme] .book-upload-card h2 { font-size:clamp(28px,5vw,48px); line-height:1.15; margin:12px 0 20px; text-wrap:balance; }
.book-upload-detail { min-height:3em; margin:0; font-size:18px; font-weight:600; line-height:1.5; }
.book-upload-meter { display:block; margin:28px 0; text-align:left; }
.book-upload-meter-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin-bottom:12px; color:var(--book-muted,#53627a); font-size:14px; }
.book-upload-meter progress { display:block; appearance:none; -webkit-appearance:none; width:100%; height:18px; border:none; border-radius:20px; overflow:hidden; background:var(--book-tint,#edf0ff); }
.book-upload-meter progress::-webkit-progress-bar { background:var(--book-tint,#edf0ff); border-radius:20px; }
.book-upload-meter progress::-webkit-progress-value { background:var(--book-accent,#4054e8); border-radius:20px; }
.book-upload-meter progress::-moz-progress-bar { background:var(--book-accent,#4054e8); border-radius:20px; }
.book-upload-meter strong { color:var(--book-accent,#4054e8); font-size:32px; font-variant-numeric:tabular-nums; }
.book-upload-card .book-upload-note { margin:24px auto; max-width:46ch; color:var(--book-muted,#53627a); font-size:15px; line-height:1.7; }
.book-upload-card .book-upload-cancel { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 24px; border:1px solid var(--book-line,#dce0ea); border-radius:12px; background:var(--book-surface,#fff); color:var(--book-ink,#191d32); font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
.book-upload-cancel:hover:not(:disabled) { background:var(--book-tint,#edf0ff); }
.book-upload-cancel:focus-visible { outline:3px solid var(--book-accent,#4054e8); outline-offset:3px; }
.book-upload-cancel:disabled { opacity:.6; cursor:wait; }
.book-upload-card small { display:block; max-width:48ch; margin:24px auto 0; font-size:12px; line-height:1.7; color:var(--book-muted,#53627a); }

/* The book owns its photo editor; keep its counter beside the picker. */
.christmas-simple-book .christmas-upload-bar { flex-wrap:nowrap; align-items:center; }
.christmas-upload-bar .photo-book-field { min-width:0; }
.christmas-upload-bar input[type="file"] { max-width:100%; }
@media (max-width:700px) {
    .christmas-photo-gallery { display:flex; gap:12px; max-height:none; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x proximity; overscroll-behavior-y:auto; padding:4px 2px 12px; -webkit-overflow-scrolling:touch; }
    .christmas-photo-gallery .christmas-photo-card { flex:0 0 190px; scroll-snap-align:start; }
    .christmas-book-count { padding:6px; font-size:17px; }
    .christmas-upload-bar .photo-book-field label { font-size:14px; }
}

.book-upload-label { display:block; margin-bottom:10px; color:var(--book-ink); font-weight:700; }

.christmas-book-dialog .book-photo-picker { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:180px; margin:0; padding:24px 16px; border:2px dashed var(--book-accent); border-radius:16px; background:var(--book-surface); color:var(--book-muted); text-align:center; cursor:pointer; }
.book-photo-picker .book-photo-picker-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:var(--book-tint); color:var(--book-accent); font-size:32px; line-height:1; }
.book-photo-picker strong { color:var(--book-ink); font-size:17px; }
.book-photo-picker > span:not(.book-photo-picker-icon) { font-size:14px; font-weight:400; }
.book-photo-picker small { font-size:12px; font-weight:400; line-height:1.5; }
.christmas-book-dialog .book-photo-picker input[type="file"] { position:absolute; inset:0; z-index:1; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.book-photo-picker:focus-within, .book-photo-picker.is-dragging { outline:3px solid var(--book-accent); outline-offset:3px; }

html[data-theme] .christmas-book-dialog .christmas-caption-toggle input[type="checkbox"] {
    appearance:auto;
    -webkit-appearance:checkbox;
    flex:0 0 18px;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px;
    max-height:18px;
    margin:0;
    padding:0;
    box-shadow:none;
    accent-color:var(--book-accent);
}
html[data-theme] .christmas-book-dialog .christmas-caption-toggle input[type="checkbox"]:focus-visible {
    outline:2px solid var(--book-accent);
    outline-offset:2px;
}

.christmas-simple-book .christmas-upload-bar { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.book-upload-help { grid-column:1 / -1; display:grid; gap:8px; }
.book-upload-help .photo-book-note { margin:0; font-size:13px; line-height:1.6; }
.christmas-photo-card figure { position:relative; }
.christmas-photo-caption-overlay { position:absolute; inset:auto 0 0; padding:30px 10px 10px; background:linear-gradient(transparent,rgba(0,0,0,.78)); }
html[data-theme] .christmas-photo-card .christmas-photo-caption { display:block; width:100%; min-width:0; height:auto; margin:0; padding:8px 4px; border:0; border-radius:4px; background:transparent; color:#fff; font:inherit; font-size:13px; line-height:1.5; text-overflow:ellipsis; box-shadow:none; }
html[data-theme] .christmas-photo-caption::placeholder { color:#fff; opacity:.9; }
html[data-theme] .christmas-photo-caption:focus { outline:2px solid #fff; outline-offset:1px; background:rgba(0,0,0,.2); }
.christmas-photo-card:has(.christmas-photo-caption) { cursor:default; }

.book-cover-choice { display:grid; grid-template-columns:90px minmax(0,1fr); align-items:center; gap:18px; margin:24px 0; padding:18px; border:1px solid var(--book-line); border-radius:14px; background:var(--book-tint); }
.book-cover-thumbnail { display:grid; place-items:center; aspect-ratio:4/5; border-radius:8px; overflow:hidden; background:var(--book-surface); color:var(--book-accent); font-size:32px; }
.book-cover-thumbnail img { width:100%; height:100%; object-fit:cover; }
.book-cover-choice .photo-book-note { margin:6px 0 12px; font-size:13px; line-height:1.5; }
.book-cover-choice h4 { margin:0; font-size:16px; color:var(--book-ink); }
.book-cover-choice h4 small { font-size:12px; font-weight:400; color:var(--book-muted); }
.christmas-book-dialog .book-cover-picker { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 14px; border:1px solid var(--book-accent); border-radius:10px; color:var(--book-accent); background:var(--book-surface); font-size:14px; cursor:pointer; }
.christmas-book-dialog .book-cover-picker input[type="file"] { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.book-cover-picker:focus-within { outline:3px solid var(--book-accent); outline-offset:3px; }
.book-cover-choice [data-book-cover-status] { overflow-wrap:anywhere; }
.book-cover-choice .book-cover-remove { min-height:44px; padding:6px 0; border:0; background:transparent; color:var(--book-muted); font:inherit; font-size:13px; text-decoration:underline; cursor:pointer; }
@media(max-width:700px) { .book-cover-choice { grid-template-columns:60px minmax(0,1fr); gap:12px; padding:12px; } }

.book-upload-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.book-upload-heading .book-upload-label { margin:0; }
.book-upload-heading .christmas-book-count { padding:0; white-space:nowrap; }

.book-upload-recovery[hidden] { display:none; }
.book-upload-recovery { margin:20px 0; padding:20px; border:1px solid var(--book-line,#dce0ea); border-radius:16px; background:var(--book-soft,#f5f6fc); }
.book-upload-recovery > img { display:block; width:120px; height:120px; object-fit:contain; border-radius:10px; margin:0 auto 12px; }
.book-upload-recovery > strong { display:block; overflow-wrap:anywhere; }
.book-upload-recovery p { font-size:14px; line-height:1.5; margin:10px 0; }
.book-recovery-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:16px; }
.book-recovery-actions .book-cover-picker { margin:0; }

.book-upload-screen.is-recovering { place-items:start center; }
.book-upload-screen.is-recovering .book-upload-symbol, .book-upload-screen.is-recovering .book-upload-eyebrow { display:none; }
html[data-theme] .is-recovering .book-upload-card h2 { font-size:28px; margin-top:0; }
.is-recovering .book-upload-note, .is-recovering .book-upload-card > small { display:none; }
.is-recovering .book-upload-meter { margin-bottom:20px; }

.christmas-delivery-note { display:grid; gap:16px; }
html[data-theme] .christmas-delivery-deadline p { color:var(--book-ink); font-weight:400; }
