.kfp-shell { container: kfp-outer / inline-size; }
.kfp {
  --kfp-ink: var(--kfa-ink, #313c35); --kfp-muted: var(--kfa-muted, #626b60);
  --kfp-accent: var(--kfa-accent, #435d4c); --kfp-border: var(--kfa-border, #dce0d5);
  display: grid; grid-template-columns: 1fr 1.2fr; max-width: 1080px; margin: 40px auto 24px;
  border: 1px solid var(--kfp-border); border-radius: 20px; overflow: hidden;
  background: var(--kfa-paper, #fcfbf7); color: var(--kfp-ink); font: inherit; font-size: 15px; line-height: 1.65; text-align: left;
}
.kfp *, .kfp *::before, .kfp *::after { box-sizing: border-box; }
.kfp [hidden] { display: none !important; }
.kfp p { margin: 0 0 20px; }
.kfp-welcome { padding: 48px 40px; background: var(--kfa-soft, #f0f1e9); }
.kfp h2 { color: var(--kfp-ink); font: 400 clamp(30px, 3.5vw, 44px)/1.17 var(--wp--preset--font-family--heading, Georgia, serif); letter-spacing: -.035em; margin: 30px 0 24px; }
.kfp .kfp-eyebrow { color: var(--kfp-accent); font-size: 10px; font-weight: 650; letter-spacing: .15em; margin: 0 0 14px; }
.kfp-welcome > p:not(.kfp-eyebrow) { color: var(--kfp-muted); font-size: 14px; }
.kfp-steps { padding: 0; margin: 38px 0; list-style: none; }
.kfp-steps li { display: flex; align-items: center; gap: 14px; font-size: 13px; margin: 10px 0; padding: 12px; border: 1px solid transparent; border-radius: 10px; }
.kfp-steps .kfp-step-number { flex: 0 0 32px; color: #566d58; font-size: 11px; border: 1px solid #b6c1ac; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.kfp-steps strong { font-weight: 500; }
.kfp-steps small { display: block; margin-top: 2px; font-size: 11px; color: var(--kfp-muted); }
.kfp-steps .is-current { background: var(--kfa-paper, #fcfbf7); border-color: var(--kfp-accent); }
.kfp-steps .is-current .kfp-step-number { background: var(--kfp-accent); color: white; border-color: var(--kfp-accent); }
.kfp-steps .is-current strong, .kfp-steps .is-current small { color: var(--kfp-accent); font-weight: 650; }
.kfp-steps .is-complete small { color: var(--kfp-accent); font-weight: 600; }
.kfp .kfp-note { border-top: 1px solid var(--kfp-border); padding-top: 22px; font-size: 11px !important; margin: 0; }
.kfp-content { padding: 48px 40px; min-width: 0; }
.kfp h3 { font: 400 29px/1.2 var(--wp--preset--font-family--heading, Georgia, serif); color: var(--kfp-ink); letter-spacing: -.025em; margin: 0 0 16px; }
.kfp .kfp-subtitle { font-size: 13px; color: var(--kfp-muted); margin-bottom: 28px; }
.kfp label { display: block; font-size: 12px; margin: 0 0 8px; }
.kfp input:not([type="checkbox"]) { display: block; width: 100%; min-width: 0; border: 1px solid var(--kfp-border); border-radius: 7px; color: var(--kfp-ink); background: white; padding: 13px 14px; font: inherit; font-size: 14px; line-height: 1.5; margin: 0; }
.kfp input[name="code"] { letter-spacing: .12em; }
.kfp input[name="family_name"] { margin-bottom: 24px; }
.kfp input[readonly] { background: #f3f3ed; }
.kfp input::placeholder { color: #72796c; opacity: 1; }
.kfp .kfp-hint { color: var(--kfp-muted); font-size: 11px; margin: 8px 0 23px; }
.kfp .kfp-mail-note { color: var(--kfp-ink); background: var(--kfa-soft, #f0f1e9); border-left: 3px solid var(--kfp-accent); border-radius: 4px; padding: 12px 14px; font-size: 13px; margin: 16px 0 22px; }
.kfp .kfp-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; margin: 22px 0; }
.kfp-checkbox input { flex: 0 0 16px; width: 16px; height: 16px; accent-color: var(--kfp-accent); margin: 3px 0 0; }
.kfp a { color: var(--kfp-accent); }
.kfp button { cursor: pointer; font: inherit; }
.kfp .kfp-primary { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 1px solid var(--kfp-accent); border-radius: 7px; background: var(--kfp-accent); color: white; padding: 13px 18px; font-size: 12px; line-height: 1.5; text-decoration: none; }
.kfp .kfp-primary:hover { filter: brightness(.9); }
.kfp button:disabled { opacity: .65; cursor: wait; }
.kfp :is(button, input, a):focus-visible { outline: 2px solid var(--kfp-accent); outline-offset: 3px; }
.kfp .kfp-link { background: none; border: 0; padding: 2px 0; color: var(--kfp-accent); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.kfp-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kfp-success, .kfp-error { border: 1px solid var(--kfp-border); border-radius: 8px; padding: 16px 18px; margin: 22px 0 0 !important; font-size: 13px; overflow-wrap: anywhere; }
.kfp-success { background: var(--kfa-soft, #f0f1e9); }
.kfp-error { background: #fff2ec; border-color: #e3c5b5; color: #813f2c; }
.kfp-account { display: flex; gap: 15px; align-items: flex-start; justify-content: space-between; font-size: 11px; border-bottom: 1px solid var(--kfp-border); margin-bottom: 26px; }
.kfp-account p { overflow-wrap: anywhere; }
.kfp-account strong { display: block; font-weight: 500; }
.kfp-project { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--kfp-border); }
.kfp-project p { font-size: 13px; color: var(--kfp-muted); }
.kfp .kfp-date { font-size: 16px; color: var(--kfp-accent); background: var(--kfa-soft, #f0f1e9); border-radius: 8px; padding: 16px; margin: 24px 0 12px; }
.kfp-project small { color: var(--kfp-muted); font-size: 11px; }
.kfp-gallery { margin-top: 24px; }
.kfp.kfp-has-gallery { grid-template-columns: 1fr; }
.kfp-has-gallery .kfp-welcome { padding: 24px 40px; }
.kfp-has-gallery .kfp-welcome h2 { font-size: 30px; margin: 12px 0 0; }
.kfp-has-gallery .kfp-welcome :is(.kfp-steps, p:not(.kfp-eyebrow)) { display: none; }
.kfp-has-gallery .kfp-content { padding-top: 28px; }
.kfp-gallery h4 { font-size: 17px; margin: 0 0 16px; }
.kfp-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--kfp-border); border-radius: 8px; margin: 12px 0; }
.kfp-gallery fieldset { border: 1px solid var(--kfp-border); border-radius: 8px; padding: 16px; margin-top: 20px; min-width: 0; }
.kfp-gallery legend { font-size: 14px; padding: 0 6px; }
.kfp-motifs { display: grid; gap: 8px; margin: 8px 0 20px; }
.kfp .kfp-motifs label { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--kfp-border); border-radius: 5px; margin: 0; }
.kfp .kfp-motifs input { margin: 0; accent-color: var(--kfp-accent); }
.kfp .kfp-gallery input[type="range"] { padding: 0; width: 100%; border: 0; background: transparent; margin: 15px 0; accent-color: var(--kfp-accent); }
.kfp .kfp-price { font-size: 18px; color: var(--kfp-accent); min-height: 3em; }
@media (max-width: 760px) {
  .kfp { grid-template-columns: 1fr; border-radius: 14px; margin: 24px 0; }
  .kfp-welcome, .kfp-content { padding: 28px 24px; }
  .kfp-steps { margin: 26px 0; }
  .kfp input:not([type="checkbox"]) { font-size: 16px; }
}
@container kfp-outer (max-width: 760px) {
  .kfp { grid-template-columns: 1fr; border-radius: 14px; }
  .kfp-welcome, .kfp-content { padding: 28px 24px; }
}
.kfp .kfp-card-open { display: block; border: 0; padding: 0; width: 100%; background: transparent; cursor: zoom-in; }
.kfp-card-open img { margin: 0; max-height: 65vh; object-fit: contain; background: var(--kfa-soft, #f0f1e9); }
.kfp .kfp-card-caption { font-size: 12px; margin: 10px 0 14px; }
.kfp-card-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.kfp .kfp-card-thumbs button { flex: 0 0 132px; border: 1px solid var(--kfp-border); border-radius: 8px; padding: 6px; background: white; font-size: 12px; color: var(--kfp-ink); }
.kfp .kfp-card-thumbs button[aria-pressed="true"] { border: 2px solid var(--kfp-accent); padding: 5px; }
.kfp .kfp-card-thumbs img { width: 100%; height: 70px; object-fit: contain; margin: 0 0 5px; border: 0; }
.kfp-selection-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 8px 0 18px; }
.kfp .kfp-only-selected { display: flex; gap: 8px; align-items: center; padding: 10px 0; }
.kfp .kfp-only-selected input { accent-color: var(--kfp-accent); }
.kfp-motif-pages { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kfp .kfp-motif-pages button, .kfp-selection-actions > button { border: 1px solid var(--kfp-border); background: white; color: var(--kfp-ink); padding: 8px 12px; border-radius: 5px; font-size: 12px; }
.kfp .kfp-motif-pages button[aria-pressed="true"] { background: var(--kfp-accent); color: white; }
.kfp .kfp-motifs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.kfp-selection-summary { padding: 18px; background: var(--kfa-soft,#f0f1e9); border-radius: 8px; margin: 16px 0; }
.kfp-selection-summary strong { font-size: 15px; }
.kfp .kfp-selection-summary .kfp-price { margin: 8px 0 14px; min-height: 0; }
.kfp-selection-summary details { font-size: 13px; margin-bottom: 14px; overflow-wrap: anywhere; }
.kfp-selection-summary details p { margin: 10px 0 0; }
.kfp-calculator { margin: 20px 0; font-size: 14px; }
.kfp-calculator > label { margin-top: 20px; }
.kfp details summary { cursor: pointer; }
.kfp-lightbox { width: min(1200px,96vw); max-width: 96vw; height: 92dvh; max-height: 94dvh; padding: 0; border: 0; border-radius: 10px; background: #1b241e; color: white; }
.kfp-lightbox::backdrop { background: rgb(0 0 0 / .8); }
.kfp-viewer-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.kfp-viewer-tools span { flex: 1 1 160px; font-size: 12px; }
.kfp .kfp-viewer-tools button { background: #f7f7f1; color: #26372c; padding: 9px 12px; border: 0; border-radius: 5px; font-size: 12px; }
.kfp-viewer-stage { height: calc(92dvh - 120px); overflow: auto; cursor: grab; overscroll-behavior: contain; }
.kfp-viewer-canvas { display: flex; justify-content: center; align-items: center; }
.kfp .kfp-viewer-canvas img { max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; flex: none; }
@media(max-width:600px) {
 .kfp .kfp-card-thumbs button { flex-basis: 118px; }
 .kfp .kfp-motifs { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .kfp .kfp-motifs label { padding: 11px 8px; }
 .kfp-has-gallery .kfp-welcome { padding: 24px; }
 .kfp-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
 .kfp-viewer-stage { height: calc(100dvh - 160px); }
 .kfp-viewer-tools span { flex-basis: 100%; order: -1; }
}

.kfp-order-review { max-width:680px; width:calc(100% - 32px); border:1px solid #d5d8ce; border-radius:16px; padding:28px; color:#253c30; background:#fcfcf7; }
.kfp-order-review::backdrop { background:rgba(20,35,28,.55); }
/* Keep card navigation, number ranges and checkout actions on consistent tracks. */
.kfp .kfp-card-thumbs :is(span,small) { display:block; line-height:1.5; }
.kfp .kfp-card-thumbs small { font-size:11px; }
.kfp-selection-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; }
.kfp .kfp-selection-toolbar > label { margin:0; }
.kfp .kfp-selection-toolbar input[type="search"] { margin-top:6px; }
.kfp .kfp-only-selected input { margin:0; flex:none; width:17px; height:17px; }
.kfp .kfp-motif-pages { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); }
.kfp .kfp-motif-pages button { min-height:48px; line-height:1.5; text-align:left; }
.kfp .kfp-selection-page-title { margin:0 0 12px; color:var(--kfp-ink); font-size:13px; font-weight:600; }
.kfp .kfp-motifs label { min-width:0; min-height:48px; white-space:nowrap; cursor:pointer; }
.kfp .kfp-motifs label:has(input:checked) { background:var(--kfa-soft,#f0f1e9); border-color:var(--kfp-accent); }
.kfp .kfp-motifs input { width:17px; height:17px; flex:none; }
.kfp-order-review { box-sizing:border-box; max-height:90dvh; overflow-y:auto; }
.kfp-order-review .kfp-price { min-height:0; margin:20px 0; }
.kfp-order-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; align-items:stretch; gap:12px; margin-top:24px; }
.kfp-order-actions button { margin:0; min-height:46px; border:1px solid var(--kfp-border); border-radius:7px; background:white; color:var(--kfp-ink); padding:12px 16px; line-height:1.5; font-size:12px; }
@media(max-width:600px) {
 .kfp-selection-toolbar { grid-template-columns:1fr; gap:8px; }
 .kfp .kfp-motifs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .kfp-order-review { padding:22px; }
 .kfp-order-actions { flex-direction:column; }
 .kfp-order-actions button { width:100%; }
}

.kfp .kfp-refresh-note { border-left: 4px solid var(--kfp-accent); padding: 16px 18px; background: var(--kfa-soft, #f0f1e9); font-size: 14px; }
.kfp .kfp-refresh-note strong { display: block; color: var(--kfp-ink); font-size: 19px; font-weight: 750; line-height: 1.4; margin-bottom: 8px; }

.kfp [data-portal-awaiting]:focus { outline: none; }

/* Two-column mobile choices also follow the portal's actual available width. */
@media (max-width:760px) {
 .kfp .kfp-motifs, .kfp .kfp-motif-pages, .kfp .kfp-card-thumbs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .kfp .kfp-card-thumbs { overflow-x:visible; }
 .kfp .kfp-card-thumbs button { width:100%; min-width:0; }
}
@container kfp-outer (max-width:760px) {
 .kfp .kfp-motifs, .kfp .kfp-motif-pages, .kfp .kfp-card-thumbs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .kfp .kfp-card-thumbs { overflow-x:visible; }
 .kfp .kfp-card-thumbs button { width:100%; min-width:0; }
}

.kfp-selection-actions { display:flex; flex-wrap:wrap; gap:8px; }
.kfp-selection-actions > button { min-height:40px; max-width:100%; }
@media (max-width:760px) {
 .kfp-selection-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container kfp-outer (max-width:760px) {
 .kfp-selection-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Kita: no extra click/tap outline on gallery page controls. */
.kfp :is(.kfp-card-thumbs, .kfp-motif-pages, .kfp-viewer-tools, .kfp-selection-actions) button:focus:not(:focus-visible),
.kfp .kfp-card-open:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.kfp :is(.kfp-card-thumbs, .kfp-motif-pages, .kfp-viewer-tools, .kfp-selection-actions) button,
.kfp .kfp-card-open {
  -webkit-tap-highlight-color: transparent;
}

/* Kita: compact parent gallery; project and group lead the page. */
body:has(.kfp[data-portal-stage="account"]) .wp-block-post-title {
  display: none;
}
body:has(.kfp[data-portal-stage="account"].kfp-has-gallery) > .wp-site-blocks > header.wp-block-template-part {
  display: none;
}
.kfp[data-portal-stage="account"].kfp-has-gallery .kfp-welcome {
  display: none;
}
.kfp[data-portal-stage="account"].kfp-has-gallery {
  margin-top: 16px;
}
.kfp[data-portal-stage="account"].kfp-has-gallery .kfp-content {
  padding-top: 24px;
}
.kfp.kfp-has-gallery [data-portal-account]:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.kfp-has-gallery [data-portal-account] > .kfp-account {
  order: 10;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--kfp-border);
  border-bottom: 0;
}
.kfp-has-gallery [data-portal-projects] > .kfp-project > .kfp-eyebrow {
  font-size: 12px;
  margin-bottom: 10px;
}
.kfp-has-gallery [data-portal-projects] > .kfp-project > h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 12px;
}

/* One large card with its own motif choices; one shared order summary. */
.kfp-card-block { margin: 0 0 32px; padding: 0 0 32px; border-bottom: 1px solid var(--kfp-border); }
.kfp-card-block .kfp-motifs { margin-bottom: 0; }
.kfp-gallery .kfp-selection-final { margin-top: 0; }
.kfp-selection-final .kfp-selection-summary { margin-top: 0; }

/* Kita: breathing room around each overview card and between sections. */
.kfp .kfp-gallery .kfp-card-open {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  border: 1px solid var(--kfp-border);
  border-radius: 10px;
  background: var(--kfa-soft, #f0f1e9);
}
.kfp .kfp-gallery .kfp-card-open img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 65vh;
  margin: 0 auto;
  border: 0;
  border-radius: 4px;
}
.kfp .kfp-card-block {
  margin: 0 0 40px;
  padding: 0 0 32px;
}
.kfp .kfp-card-caption { margin: 14px 0 20px; }
@media (max-width: 760px) {
  .kfp .kfp-gallery .kfp-card-open { padding: 18px 8px; }
  .kfp .kfp-card-block { margin-bottom: 32px; padding-bottom: 24px; }
}
@container kfp-outer (max-width: 760px) {
  .kfp .kfp-gallery .kfp-card-open { padding: 18px 8px; }
  .kfp .kfp-card-block { margin-bottom: 32px; padding-bottom: 24px; }
}

/* The same top accent follows parents from their code to the photo selection. */
.kfp { border-top:5px solid #435d4c; }
.kfp > nav.kfp-journey[data-kfa-progress] { background:#eaf2e7; }
.kfp-order-review { border-top:5px solid #435d4c; }
.kfp-order-review > nav.kfp-journey[data-kfa-progress] { background:#eaf2e7; }



/* Kita: begin every parent page with the portal, without the site navigation. */
body:has(.kfp-shell) > .wp-site-blocks > header.wp-block-template-part,
body:has(.kfp-shell) .wp-block-post-title {
  display: none;
}
/* The entry screen leads directly to the access-code form. */
.kfp[data-portal-stage="entry"] .kfp-welcome { display: none; }
.kfp[data-portal-stage="entry"] { grid-template-columns: 1fr; margin-top: 24px; }

/* The parent area leads with the project status instead of a second welcome block. */
.kfp[data-portal-stage="account"] {
  grid-template-columns: 1fr;
  --kfp-account-padding: 40px;
}
.kfp[data-portal-stage="account"] .kfp-welcome {
  padding: 20px var(--kfp-account-padding) 0;
  background: transparent;
}
.kfp[data-portal-stage="account"] .kfp-welcome .kfp-eyebrow { margin: 0; }
.kfp[data-portal-stage="account"] .kfp-content {
  padding: 18px var(--kfp-account-padding) 28px;
}
@media (max-width: 760px) {
  .kfp[data-portal-stage="account"] { --kfp-account-padding: 24px; }
}
@container kfp-outer (max-width: 760px) {
  .kfp[data-portal-stage="account"] { --kfp-account-padding: 24px; }
}

/* Confirmation starts with the action; the family note follows the controls. */
.kfp[data-portal-stage="confirm"] { grid-template-columns: 1fr; margin-top: 24px; }
.kfp[data-portal-stage="confirm"] .kfp-content { padding-top: 28px; }
.kfp[data-portal-stage="confirm"] .kfp-confirm-note { color: var(--kfp-muted); margin: 22px 0 0; padding-top: 14px; }

/* Selection cards: quiet viewer chrome and a clear order action on every card. */
.kfp .kfp-project-group { margin: 0 0 18px; font-size: 14px; }
.kfp-has-gallery [data-portal-projects] > .kfp-project > .kfp-eyebrow { margin-bottom: 4px; }
.kfp .kfp-card-order { display: flex; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; padding: 14px 20px; font-weight: 700; }
.kfp-lightbox-simple[open] { display: flex; flex-direction: column; overflow: hidden; }
.kfp-lightbox-simple .kfp-viewer-tools { flex: none; flex-wrap: nowrap; gap: 12px; padding: max(12px,env(safe-area-inset-top)) 14px 10px; }
.kfp-lightbox-simple .kfp-viewer-info { flex: 1; order: 0; font-size: 14px; }
.kfp .kfp-lightbox-simple .kfp-viewer-close { display: grid; place-items: center; width: 48px; min-width: 48px; height: 48px; padding: 0; margin: 0; border-radius: 50%; font-size: 32px; line-height: 1; background: rgb(255 255 255 / .12); color: #fff; }
.kfp-lightbox-simple .kfp-viewer-stage { flex: 1; min-height: 0; height: auto; width: 100%; scrollbar-width: none; overscroll-behavior: contain; }
.kfp-lightbox-simple .kfp-viewer-stage::-webkit-scrollbar { display: none; }
.kfp .kfp-lightbox-simple :is(.kfp-viewer-prev,.kfp-viewer-next) { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 54px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: rgb(0 0 0 / .45); color: #fff; font-size: 38px; line-height: 1; }
.kfp-lightbox-simple .kfp-viewer-prev { left: 12px; }
.kfp-lightbox-simple .kfp-viewer-next { right: 12px; }
.kfp .kfp-lightbox-simple [hidden] { display: none; }
.kfp .kfp-lightbox-simple .kfp-viewer-hint { flex: none; margin: 0; padding: 10px 12px max(12px,env(safe-area-inset-bottom)); color: #e2e7e0; text-align: center; font-size: 12px; line-height: 1.4; }
.kfp-lightbox-simple button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (pointer: coarse) { .kfp .kfp-lightbox-simple :is(.kfp-viewer-prev,.kfp-viewer-next) { width: 36px; height: 48px; font-size: 32px; } }

/* Compact review: keep actions reachable while the summary can scroll on short screens. */
.kfp .kfp-order-review { width: min(560px,calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 18px; overflow: hidden; }
.kfp .kfp-order-review[open] { display: flex; flex-direction: column; gap: 0; }
.kfp .kfp-order-review > .kfa-account-bar { flex: none; margin: 0 0 6px; padding: 2px 0; border: 0; }
.kfp .kfp-order-review > nav.kfp-journey[data-kfa-progress] { flex: none; margin: 0 0 12px; padding: 6px 6px 24px; }
.kfp .kfp-order-review .kfp-review-content { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.kfp .kfp-order-review .kfp-review-content h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.kfp .kfp-order-review .kfp-review-content .kfp-price { margin: 0 0 12px; min-height: 0; font-size: 20px; line-height: 1.35; }
.kfp .kfp-order-review .kfp-review-content > p:not(.kfp-price) { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.kfp .kfp-order-review .kfp-review-footer { flex: none; padding-top: 6px; background: #fcfcf7; }
.kfp .kfp-order-review .kfp-order-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 8px; margin: 0; }
.kfp .kfp-order-review .kfp-order-actions button { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 10px 8px; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.kfp .kfp-order-review .kfp-order-actions .kfp-checkout-cta { background: var(--kfp-accent,#435d4c); border-color: var(--kfp-accent,#435d4c); color: #fff; font-weight: 700; }
.kfp .kfp-order-review .kfp-review-tax { margin: 9px 0 0; font-size: 11px; line-height: 1.4; color: var(--kfp-muted,#626b60); }
@media (max-width: 380px), (max-height: 600px) {
  .kfp .kfp-order-review { padding: 14px; }
  .kfp .kfp-order-review > nav.kfp-journey[data-kfa-progress] { margin-bottom: 8px; }
  .kfp .kfp-order-review .kfp-review-content .kfp-price { margin-bottom: 8px; font-size: 18px; }
}

/* Live selection total, outside the portal's clipping/container boundary. */
.kfp-selection-float { position: fixed; z-index: 80; top: max(12px,env(safe-area-inset-top)); left: max(12px,env(safe-area-inset-left)); display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3.3px 13.2px; max-width: calc((100vw - max(12px, env(safe-area-inset-left)) - 12px) / 1.06); margin: 0; padding: 11px 15.4px; border: 1px solid rgb(67 93 76 / .2); border-radius: 15.4px; background: rgb(252 251 247 / .86); color: #273e30; box-shadow: 0 5px 22px rgb(25 45 32 / .13); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 14.3px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; pointer-events: none; transform-origin: top left; animation: none; }
.kfp-selection-float[hidden], body:has(.kfp dialog[open]) .kfp-selection-float { display: none !important; }
.kfp-selection-float .kfp-float-caption { grid-column: 1 / -1; color: #536455; font-size: 11px; line-height: 1.2; }
.kfp-selection-float .kfp-float-count { white-space: nowrap; }
.kfp-selection-float .kfp-float-total { font-size: 19.8px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .kfp-selection-float { animation: none; } }

/* Offer one more image only while the selected total remains unchanged. */
.kfp-selection-float .kfp-float-hint { grid-column: 1 / -1; max-width: 209px; margin-top: 3.3px; color: #2e6b3d; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: normal; }
.kfp-selection-float .kfp-float-hint[hidden] { display: none !important; }

/* Clear card ranges and a local jump-to-number control, including large galleries. */
.kfp .kfp-card-heading { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.kfp .kfp-motif-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: end; padding: 16px; margin: 20px 0 28px; border: 1px solid var(--kfp-border); border-radius: 10px; background: var(--kfa-soft,#f0f1e9); }
.kfp .kfp-motif-search label { margin: 0; }
.kfp .kfp-motif-search input { margin-top: 6px; }
.kfp .kfp-motif-search button { min-height: 47px; margin: 0; padding: 12px 16px; border: 1px solid var(--kfp-accent); border-radius: 7px; background: var(--kfp-accent); color: white; font-size: 13px; line-height: 1.5; }
.kfp .kfp-motif-search-result { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; }
.kfp .kfp-motif-search-result:empty { display: none; }
.kfp .kfp-motifs label.kfp-motif-found { outline: 2px solid var(--kfp-accent); outline-offset: 3px; }
.kfp .kfp-review-selection { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.kfp .kfp-review-selection p { margin: 6px 0 0; overflow-wrap: anywhere; }
@media(max-width:380px) { .kfp .kfp-motif-search { grid-template-columns:minmax(0,1fr); } .kfp .kfp-motif-search button { width:100%; } }

/* Prominent access confirmation; keep the request-new-link action secondary. */
.kfp [data-portal-confirm] {
  width: 100%; min-width: 0; min-height: 66px;
  padding: 18px 24px; border-radius: 10px;
  font-size: 20px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 4px 12px rgb(33 62 42 / .16);
  text-align: center;
}
.kfp [data-portal-confirm][data-portal-blocked="true"]:disabled { cursor: not-allowed; }
.kfp [data-portal-confirm-form] + p { margin: 16px 0 22px; }
.kfp [data-portal-confirm-form] + p > a {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  text-underline-offset: 3px;
}
