.xc-dialog { padding: 0; width: min(970px, calc(100% - 48px)); max-width: none; max-height: min(850px, calc(100dvh - 48px)); border: 1px solid #d9bf8e; border-radius: 10px; background: #fff8eb; color: var(--pine-deep); box-shadow: 0 30px 100px #170d1799; color-scheme: light; overflow: hidden; }
.xc-dialog:not([open]), .xc-dialog [hidden] { display: none !important; }
.xc-dialog::backdrop { background: #160d18bf; backdrop-filter: blur(6px); }
html.xc-open { overflow: hidden; }
.xc-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-height: inherit; }
.xc-keepsake { display: flex; flex-direction: column; padding: 34px 28px; background: radial-gradient(ellipse at 20% 20%, #335d46, transparent 70%), var(--pine-deep); color: var(--cream); }
.xc-brand { font: 500 26px/1.2 var(--serif); }
.xc-brand > span { display: block; margin-top: 8px; font: 700 8px/1 var(--sans); letter-spacing: .45em; text-transform: uppercase; }
.xc-certificate { margin: 38px 0 24px; padding: 6px; background: #fff2dc; transform: rotate(-3deg); box-shadow: 0 10px 30px #071e2499; }
.xc-certificate img { width: 100%; height: 115px; object-fit: cover; }
.xc-certificate-paper { padding: 21px 15px 17px; border: 1px solid #c0b18e; border-top: 0; color: var(--pine); background: linear-gradient(120deg, #fff8e8, #f6e9cf); }
.xc-certificate-paper > span:first-child { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.xc-certificate-paper > p { margin: 13px 0 17px; font: 500 38px/1.03 var(--serif); letter-spacing: -.04em; }
.xc-certificate-paper em { color: var(--red); }
.xc-certificate-paper [data-gift-name] { display: block; font-size: 11px; overflow-wrap: anywhere; }
.xc-certificate-paper strong { display: block; border-top: 1px solid #bca77980; padding-top: 12px; margin-top: 14px; font-size: 9px; font-weight: 600; }
.xc-keepsake-note { display: flex; align-items: center; gap: 14px; margin: 5px 0 24px; }
.xc-keepsake-note > span { font-size: 30px; color: var(--gold); }
.xc-keepsake-note p { font: 500 20px/1.35 var(--serif); }
.xc-inclusions { padding-top: 20px; margin-top: auto; border-top: 1px solid #edc88640; font-size: 11px; line-height: 1.9; color: #d9dac4; }
.xc-form { display: flex; flex-direction: column; min-height: 0; min-width: 0; max-height: inherit; }
.xc-header { position: relative; padding: 27px 32px 0; flex-shrink: 0; }
.xc-kicker { padding-right: 30px; color: #83532e; font-size: 9px; letter-spacing: .13em; font-weight: 800; text-transform: uppercase; }
.xc-header h2 { margin-top: 6px; font: 500 32px/1.2 var(--serif); letter-spacing: -.04em; }
.xc-dialog button, .xc-dialog input, .xc-dialog textarea { font: inherit; }
.xc-dialog button { cursor: pointer; }
.xc-dialog button:disabled { cursor: wait; opacity: .7; }
.xc-dialog button:focus-visible, .xc-dialog a:focus-visible { outline: 3px solid #a36b24; outline-offset: 3px; }
.xc-close { position: absolute; top: 15px; right: 15px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #674b3b; font-size: 28px !important; line-height: 1 !important; }
.xc-close:hover { background: #f0e4cf; }
.xc-progress { display: flex; padding: 0 0 17px; margin: 21px 0 0; list-style: none; gap: 16px; border-bottom: 1px solid #dccfb8; }
.xc-progress li { display: flex; align-items: center; gap: 7px; color: #726a58; font-size: 10px; font-weight: 600; white-space: nowrap; }
.xc-progress span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #b4a68e; font-size: 10px; }
.xc-progress [aria-current="step"] { color: var(--red); font-weight: 800; }
.xc-progress [aria-current="step"] span { background: var(--red); color: #fff8eb; border-color: var(--red); }
.xc-progress .is-complete span { color: var(--pine); border-color: #65785c; background: #e7eada; }
.xc-content { padding: 24px 32px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; }
.xc-step-title { font: 500 25px/1.2 var(--serif); letter-spacing: -.035em; scroll-margin: 24px; }
.xc-step-title:focus { outline: none; }
.xc-intro { margin-top: 7px; margin-bottom: 20px; color: #686653; font-size: 12px; line-height: 1.7; }
.xc-fieldset { min-width: 0; padding: 0; margin: 0 0 17px; border: 0; }
.xc-fieldset legend, .xc-field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.xc-field > label span { color: #746e5e; font-weight: 400; font-size: 11px; }
.xc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xc-option { position: relative; min-width: 0; cursor: pointer; }
.xc-option > input { position: absolute; left: 14px; top: 17px; width: 14px; height: 14px; margin: 0; accent-color: var(--pine); }
.xc-option > span { display: block; height: 100%; padding: 13px 10px 13px 35px; border: 1px solid #c7bda8; border-radius: 5px; background: #fffdf5; line-height: 1.5; }
.xc-option strong { display: block; font-size: 11px; font-weight: 800; }
.xc-option small { display: block; margin-top: 3px; color: #726a58; font-size: 10px; }
.xc-option input:checked + span { border-color: #3b6550; background: #edf0e4; box-shadow: inset 0 0 0 1px #3b6550; }
.xc-option input:focus-visible + span { outline: 3px solid #a36b24; outline-offset: 3px; }
.xc-bundles .xc-option > span { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.xc-bundles b { font: 500 24px/1 var(--serif); letter-spacing: -.04em; }
.xc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xc-field { margin-bottom: 17px; min-width: 0; }
.xc-field input, .xc-field textarea { width: 100%; min-height: 46px; border: 1px solid #bfb59f; border-radius: 5px; padding: 11px 12px; background: #fffdf8; color: #182f26; font-size: 16px; line-height: 1.5; }
.xc-field textarea { display: block; min-height: 80px; resize: vertical; font-size: 13px; }
.xc-field input::placeholder, .xc-field textarea::placeholder { color: #817867; opacity: 1; }
.xc-field input:focus, .xc-field textarea:focus { outline: 2px solid var(--pine); outline-offset: 2px; }
.xc-field input[aria-invalid="true"], .xc-field textarea[aria-invalid="true"] { border-color: #9b2940; }
.xc-hint { margin-top: 6px; color: #746c5b; font-size: 10px; line-height: 1.7; }
.xc-note { margin-top: 12px; padding: 11px 13px; border-left: 2px solid #bb9961; background: #f5ecd9; color: #665c48; font-size: 11px; line-height: 1.7; }
.xc-reassurance { display: flex; gap: 15px; margin-top: 27px; padding-top: 24px; border-top: 1px solid #dccfb8; }
.xc-reassurance > span { font-size: 25px; color: #a77b3b; }
.xc-reassurance strong { font-size: 12px; }
.xc-reassurance p { margin-top: 6px; color: #686653; font-size: 12px; }
.xc-footer { margin-top: auto; padding: 17px 32px 22px; flex-shrink: 0; border-top: 1px solid #dccfb8; background: #fbf1df; }
.xc-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.xc-total > span { font-size: 12px; font-weight: 800; }
.xc-total small { margin-left: 8px; font-size: 10px; color: #746c5b; font-weight: 400; }
.xc-total strong { font: 500 28px/1 var(--serif); letter-spacing: -.04em; }
.xc-actions { display: flex; gap: 12px; }
.xc-next { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px; border: 1px solid var(--red-deep); border-radius: 4px; background: var(--red); color: #fff8eb; font-size: 12px !important; font-weight: 800 !important; }
.xc-next:hover { background: var(--red-deep); }
.xc-back { padding: 10px 15px; min-height: 48px; border: 1px solid #bbad90; border-radius: 4px; background: transparent; color: var(--pine-deep); font-size: 12px !important; }
.xc-secure { margin-top: 9px; text-align: center; color: #746c5b; font-size: 10px; }
.xc-review-card { padding: 16px; margin-bottom: 13px; border: 1px solid #d7c9b1; border-radius: 5px; background: #fffdf5; font-size: 12px; overflow-wrap: anywhere; }
.xc-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.xc-review-heading h4 { margin: 0; font-size: 12px; }
.xc-review-heading button { border: 0; padding: 6px 0 6px 8px; min-height: 32px; background: transparent; color: var(--red); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.xc-review-card dl { margin: 0; }
.xc-review-card dl > div { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.xc-review-card dt, .xc-review-message > span { color: #726a58; }
.xc-review-card dd { margin: 0; }
.xc-review-message { border-top: 1px solid #dccfb8; margin-top: 13px; padding-top: 12px; }
.xc-review-message p { white-space: pre-wrap; margin-top: 6px; max-height: 130px; overflow: auto; }
.xc-errors { padding: 14px 16px; margin-bottom: 20px; border: 1px solid #a94753; border-radius: 4px; color: #712437; background: #f9e7e2; font-size: 12px; }
.xc-errors:focus { outline: 2px solid #712437; outline-offset: 3px; }
.xc-errors h3 { font-size: 13px; }
.xc-errors ul { padding-left: 18px; margin: 7px 0 0; }
.xc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
    .xc-dialog { width: min(590px, calc(100% - 32px)); }
    .xc-shell { grid-template-columns: minmax(0, 1fr); }
    .xc-keepsake { display: none; }
}
@media (max-width: 540px) {
    .xc-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .xc-shell { height: 100%; }
    .xc-header { padding: max(19px, env(safe-area-inset-top)) 20px 0; }
    .xc-header h2 { font-size: 28px; }
    .xc-kicker { font-size: 8px; }
    .xc-progress { gap: 12px; margin-top: 16px; padding-bottom: 14px; justify-content: space-between; }
    .xc-progress li { font-size: 9px; gap: 5px; }
    .xc-progress span { width: 20px; height: 20px; font-size: 9px; }
    .xc-content { padding: 21px 20px; }
    .xc-step-title { font-size: 24px; }
    .xc-footer { padding: 14px 20px max(16px, env(safe-area-inset-bottom)); }
    .xc-fields { grid-template-columns: 1fr; gap: 0; }
    .xc-field textarea { font-size: 16px; }
    .xc-intro { margin-bottom: 17px; }
    .xc-option > span { padding: 12px 9px 12px 30px; }
    .xc-option > input { left: 10px; top: 16px; }
    .xc-option small { font-size: 9px; }
    .xc-bundles b { font-size: 23px; }
    .xc-bundles .xc-option > span { gap: 4px; }
    .xc-total strong { font-size: 25px; }
}
@media (max-height: 550px) and (min-width: 541px) {
    .xc-dialog { max-height: calc(100dvh - 16px); }
    .xc-header { padding-top: 12px; }
    .xc-header h2 { font-size: 24px; }
    .xc-progress { margin-top: 10px; padding-bottom: 10px; }
    .xc-footer { padding-block: 10px; }
    .xc-keepsake { display: none; }
    .xc-shell { grid-template-columns: minmax(0, 1fr); }
}
