.booking-review-package { padding: 24px; border: 1px solid #dedbd2; border-radius: 16px; background: #fff; }
#review-addons-open { margin-block:16px; }
.booking-review-package header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #dedbd2; }
.booking-review-package h3 { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; line-height: 1.2; }
.booking-review-package header span { flex-shrink: 0; color: #62685f; }
#review-date { margin: 16px 0; color: #4f5c45; }
#review-package-description { margin: 20px 0; line-height: 1.65; overflow-wrap: anywhere; }
#review-package-description h2, #review-package-description h3 { font-size: 22px; }
#review-price-lines { border-top: 1px solid #dedbd2; padding-top: 12px; font-variant-numeric: tabular-nums; }
#review-price-lines p { display: flex; justify-content: space-between; gap: 18px; margin: 10px 0; }
#review-price-lines strong { flex-shrink: 0; }
#review-price-lines .review-total { border-top: 1px solid #dedbd2; padding-top: 12px; font-weight: 700; }
.booking-review-documents { margin: 24px 0; }
.agenda-body .service-card { cursor: pointer; }
.agenda-body .service-card-description-panel { cursor: auto; }
.booking-review-documents h3 { font-size: 20px; margin-bottom: 16px; }
.review-consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; line-height: 1.55; }
.review-consent input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex-shrink: 0; accent-color: #637256; }
.review-consent label { cursor: pointer; padding-bottom: 8px; }
#review-optional fieldset { padding: 0; margin: 22px 0; border: 0; }
#review-optional legend { font-weight: 700; line-height: 1.4; }
.review-permission-help { font-style: italic; line-height: 1.65; }
.review-consent-copy .review-permission-help { margin: 4px 0 0; }
.review-consent-copy label { display: block; padding-bottom: 0; }
.review-permission-divider { border: 0; border-top: 1px solid #dedbd2; margin: 28px 0; }
.booking-review-documents a { color: #435637; text-decoration: underline; text-underline-offset: 3px; }
.booking-review-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.booking-review-actions button { min-height: 44px; }
#booking-review-submit {white-space:pre-line;line-height:1.4;}
.booking-review-documents input:focus-visible, .booking-review-documents a:focus-visible { outline: 2px solid #435637; outline-offset: 4px; }
@media (max-width: 600px) { .booking-review-package { padding: 18px; } .booking-review-actions > button { width: 100%; } }
.agenda-body .booking-progress { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.agenda-body #booking-review-form [hidden] { display: none !important; }
.agenda-body .booking-review-actions .booking-secondary { background: #fff !important; color: #435637 !important; border: 1px solid #637256 !important; }
.agenda-body .booking-review-documents .booking-consent-copy { font-size: 1rem; line-height: 1.55; }
#review-code-stage {margin:28px 0;padding:24px;border:1px solid #dde2da;border-radius:16px;background:#f4f6f1;}
.review-code-head {display:flex;gap:14px;align-items:flex-start;margin-bottom:22px;}
.review-code-icon {flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid #dde2da;color:#4f5b43;}
.review-code-icon svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
#review-code-title {margin:0 0 4px;font-family:'Cormorant Garamond',Georgia,serif;font-size:26px;font-weight:600;line-height:1.2;}
#review-code-destination {margin:0;color:#687066;line-height:1.5;overflow-wrap:anywhere;}
#review-code-stage > label {display:block;margin-bottom:10px;font-weight:600;}
.review-code-field {position:relative;width:min(100%,400px);}
/* El texto real es transparente: lo muestran las casillas, pero el campo sigue recibiendo foco, pegado y autocompletado. */
.agenda-body #review-code {position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;background:transparent;color:transparent;caret-color:transparent;font-size:16px;-webkit-text-fill-color:transparent;box-shadow:none;}
#review-code::selection {background:transparent;}
.review-code-cells {display:grid;grid-template-columns:repeat(3,1fr) 6px repeat(3,1fr);gap:8px;}
.review-code-cells span:nth-child(4) {grid-column:5;}
.review-code-cells span {display:grid;place-items:center;aspect-ratio:5/6;border:1px solid #cfd6ca;border-radius:12px;background:#fff;color:#1c211b;font-size:clamp(22px,6.4vw,30px);font-weight:600;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s,background-color .15s;}
.review-code-cells span.is-filled {border-color:#9aa68f;}
.review-code-cells span.is-active {border-color:#4f5b43;box-shadow:0 0 0 3px rgba(102,114,87,.24);}
.review-code-cells span.is-active:empty::after {content:'';width:2px;height:38%;background:#4f5b43;animation:review-code-caret 1s steps(1) infinite;}
#review-code-stage.is-complete .review-code-cells span {border-color:#667257;background:#fbfcfa;}
#review-code-stage.is-valid .review-code-cells span {border-color:#4f7041;background:#edf4e7;color:#2f4a24;box-shadow:none;}
.review-code-status {margin:12px 0 0;color:#3f5d32;font-weight:600;line-height:1.5;}
.review-code-status:empty {display:none;}
#review-code-stage.is-valid .review-code-status::before {content:'✓ ';}
#review-code[aria-invalid="true"] + .review-code-cells {animation:review-code-shake .32s;}
#review-code[aria-invalid="true"] + .review-code-cells span {border-color:#973e30;background:#fbf1ea;box-shadow:none;}
#review-code-stage[aria-busy="true"] .review-code-cells span {animation:review-code-pulse 1.1s ease-in-out infinite;}
#review-code-help {margin:14px 0 4px;color:#687066;font-size:.92rem;line-height:1.55;}
.review-code-resend {min-height:44px;padding:8px 0;border:0;background:none;color:#435637;font:inherit;font-weight:600;font-variant-numeric:tabular-nums;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.review-code-resend:disabled {color:#687066;text-decoration:none;cursor:default;}
.review-code-resend:focus-visible {outline:2px solid #435637;outline-offset:3px;border-radius:4px;}
@keyframes review-code-caret {50% {opacity:0;}}
@keyframes review-code-shake {25% {transform:translateX(-5px);} 75% {transform:translateX(5px);}}
@keyframes review-code-pulse {50% {opacity:.55;}}
@media (max-width:600px) {#review-code-stage {padding:18px;} .review-code-cells {gap:6px;grid-template-columns:repeat(3,1fr) 2px repeat(3,1fr);} .review-code-cells span {border-radius:10px;}}
@media (prefers-reduced-motion:reduce) {.review-code-cells, .review-code-cells span, .review-code-cells span::after {animation:none !important;transition:none;}}
.booking-document-reader h3,.booking-document-reader h4 {font-weight:700;line-height:1.35;margin:1.6em 0 .6em;}
.booking-document-reader blockquote {margin:1em 0;padding:0 0 0 20px;border-left:1px solid #68765a;}
.booking-document-reader li {margin:.4em 0;}
.booking-document-reader {--booking-green:#637256;--booking-green-dark:#435637;width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid #dedbd2;border-radius:14px;padding:24px;color:#273026;background:#fff;line-height:1.65;}
.booking-document-reader::backdrop {background:rgb(25 34 23 / .55);}
.booking-document-reader header {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;}
.booking-document-reader header h2 {margin:0;font-weight:700;}
.booking-document-reader p {white-space:pre-line;}
.booking-document-reader {text-align:left;}
.booking-document-reader header button {flex-shrink:0;width:auto;font:inherit;padding:8px 14px;border:1px solid #637256;border-radius:12px;color:#435637;background:#fff;cursor:pointer;}
#booking-accepted-links {line-height:1.8;}
.agenda-body .booking-document-link {appearance:none;display:inline;width:auto;min-height:0;padding:0;border:0;border-radius:0;background:none!important;color:#435637!important;font:inherit;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.agenda-body .booking-document-link:disabled,.agenda-body .booking-document-link[aria-disabled="true"] {opacity:.55;cursor:wait;}
.booking-document-link:focus-visible,.booking-document-reader button:focus-visible,#booking-document-reader-body:focus-visible {outline:2px solid #435637;outline-offset:4px;}
#review-privacy-row {line-height:1.65;margin:4px 0 20px;}
.booking-document-reader:not([open]) {display:none;}
.booking-document-reader[open] {display:flex;flex-direction:column;overflow:hidden;padding:0;}
.booking-document-reader header {padding:20px 24px;border-bottom:1px solid #dedbd2;flex-shrink:0;}
.booking-document-reader header h2 {font-size:clamp(20px,3vw,28px);line-height:1.3;overflow-wrap:anywhere;}
#booking-document-reader-body {padding:4px 24px 20px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#68765a #f4f3ee;}
.booking-document-reader footer {padding:12px 24px;border-top:1px solid #dedbd2;flex-shrink:0;}
.booking-document-reader footer:has(button[hidden]):has(p[hidden]) {display:none;}
.booking-document-reader ::selection {background:#e4eadc;color:#273026;}
@media(max-width:600px) {.booking-document-reader {max-height:calc(100dvh - 16px);width:calc(100vw - 16px);}.booking-document-reader header {padding:16px;gap:12px;}#booking-document-reader-body {padding:4px 16px 16px;}.booking-document-reader footer {padding:12px 16px;}.review-image-uses {padding-inline-start:24px;}}

/* Image-use offer: states what is asked and what is promised before the two choices. */
#review-optional .review-image-offer legend { font-family: Merriweather, serif; font-size: 1.3rem; font-weight: 400; line-height: 1.35; }
.review-image-offer > p { line-height: 1.65; margin: 8px 0 0; }
.review-image-promises { display: grid; gap: 6px; list-style: none; margin: 14px 0 18px; padding: 0; }
.review-image-promises li { display: grid; gap: 10px; grid-template-columns: 18px minmax(0, 1fr); line-height: 1.45; }
.review-image-promises svg { fill: none; height: 18px; margin-top: 3px; stroke: #667257; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; width: 18px; }
.review-image-offer > .review-image-status { background: #f4f6f1; border-radius: 10px; font-weight: 600; margin: 4px 0 0; padding: 10px 14px; }
.review-image-offer > .review-image-status.is-on { background: #4f5b43; color: #fff; }
.review-image-offer > .review-image-note { color: #687066; font-size: .88rem; margin-top: 14px; }

/* The request button stays visibly unavailable until the mandatory acceptances are ticked. */
.agenda-body .booking-review-actions .booking-primary:disabled,
.agenda-body .booking-review-actions .booking-primary:disabled:hover { background: #dfe3da !important; border-color: #dfe3da !important; color: #6a7265 !important; cursor: not-allowed; }
.review-submit-hint { color: #687066; font-size: .88rem; margin: 10px 0 0; min-height: 1.4em; }
