/* Only the checkout wizard is constrained to one screen. */
#experience-dialog[data-mode="wizard"]{position:fixed;inset:var(--experience-top,10px) 0 auto;width:min(620px,calc(100vw - 20px));height:var(--experience-height,min(720px,calc(100dvh - 20px)));max-height:none;margin:0 auto;padding:0;overflow:hidden;border-radius:22px}
#experience-dialog[data-mode="wizard"] #dialog-content{height:100%;min-height:0;overflow:hidden}
#experience-dialog .dialog-close{position:absolute;float:none;top:12px;right:12px;margin:0;width:36px;height:36px;z-index:10;font-size:24px}
.wizard-screen{height:100%;min-height:0;padding:18px 22px 16px;display:flex;flex-direction:column;gap:14px;text-align:left}
.wizard-header{flex:0 0 auto;padding:0;margin:0}
.wizard-progress-label{display:flex;justify-content:space-between;align-items:center;padding-right:46px;min-height:24px;gap:12px;color:#775163;font-size:12px;font-weight:650;line-height:18px}
.wizard-progress{display:flex;gap:5px;list-style:none;padding:0 46px 0 0;margin:7px 0 16px;height:4px}
.wizard-progress li{flex:1;height:4px;border-radius:10px;background:#e9d5df}
.wizard-progress .is-current,.wizard-progress .is-complete{background:#b03466}
#experience-dialog .wizard-title{padding:0;margin:0;font-family:var(--display,var(--serif));font-size:clamp(26px,4vw,34px);font-weight:650;line-height:1.1;letter-spacing:-.8px;color:#672c48}
.wizard-title:focus{outline:none}
#experience-dialog .wizard-subtitle{font-size:13px;line-height:19px;margin:7px 0 0;color:#7d5869}
.wizard-form{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;margin:0}
.wizard-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;justify-content:center}
#experience-dialog .wizard-footer{flex:0 0 auto;display:block;width:100%;max-width:none;padding:0;margin:0;border:0}
#experience-dialog .wizard-footer>.wizard-actions{display:flex;gap:10px;width:100%;margin:0}
#experience-dialog .wizard-primary,#experience-dialog .wizard-secondary{min-height:46px;height:auto;padding:12px 18px;border-radius:12px;font-family:var(--sans);font-size:14px;font-weight:700;line-height:20px;letter-spacing:0;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:14px;margin:0}
#experience-dialog .wizard-primary{flex:1;color:#fff9ed;background:#ab3265;border:1px solid #ab3265;box-shadow:0 3px 0 #7f214a}
#experience-dialog .wizard-primary>span{font-size:18px}
#experience-dialog .wizard-secondary{flex:0 0 auto;background:#fff8ee;color:#8c3d60;border:1px solid #cda3b5;box-shadow:none}
#experience-dialog .wizard-preview{margin:11px 0 0;font-size:12px;line-height:16px;text-align:center;color:#805d6d}
#experience-dialog .wizard-small-note{margin:0;color:#805d6d;font-size:12px;line-height:18px}
.wizard-plans{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-height:0}
.wizard-plan{min-width:0;position:relative;padding:14px 12px 17px;border:1.5px solid #ddbdc6;border-radius:18px;background:#fce8df;display:flex;flex-direction:column;align-items:center;gap:7px;color:#69364e;box-shadow:0 4px 0 #e7ccd2}
.wizard-plan:nth-child(2){background:#eee3f5}
.wizard-plan[aria-pressed="true"]{border:2px solid #ab3265;box-shadow:0 4px 0 #d9a3b9}
.wizard-plan-check{position:absolute;right:10px;top:9px;width:23px;height:23px;display:grid;place-items:center;border:1px solid #cda1b3;border-radius:50%;background:#fff9f1;color:#a64970;font-size:14px}
.wizard-plan[aria-pressed="true"] .wizard-plan-check{color:white;background:#ab3265;border-color:#ab3265}
.wizard-plan-art{display:block;width:100%;height:clamp(96px,22dvh,160px)}
.wizard-plan-art>svg{width:100%;height:100%;object-fit:contain}
.wizard-plan>strong{font-size:16px;line-height:21px}
.wizard-plan>span:not(.wizard-plan-check):not(.wizard-plan-art):not(.wizard-plan-price){font-size:14px;line-height:20px}
.wizard-plan-price{font-family:var(--display,var(--serif));font-size:31px;line-height:1.1;color:#a52f62}
.wizard-size .wizard-small-note{text-align:center}
.wizard-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.wizard-field>label,.wizard-tracking-form>label{font-size:13px;font-weight:650;line-height:18px;color:#69394f}
.wizard-field label>span{font-size:12px;font-weight:400;color:#896071}
#experience-dialog .wizard-field input,#experience-dialog .wizard-field textarea,#experience-dialog .wizard-tracking-form input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #d4b4c0;border-radius:10px;background:#fffdf9;color:#583045;font-family:var(--sans);font-size:16px;line-height:22px;box-sizing:border-box}
#experience-dialog .wizard-field textarea{min-height:84px;max-height:104px;height:90px;resize:none}
.wizard-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wizard-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;background:#f4dce6;border-radius:12px;font-size:14px;line-height:20px}
.wizard-summary>strong{font-size:15px}
.wizard-policy{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:18px;color:#785063}
.wizard-policy>input{width:18px;height:18px;min-width:18px;accent-color:#a83264;margin:1px 0 0}
.wizard-scene{flex:1;min-height:0;width:100%;position:relative;overflow:hidden;border-radius:24px;background:#f5dfe6;display:flex;align-items:center;justify-content:center}
.wizard-scene>.cup-scene{width:100%;height:100%;min-height:0;max-height:100%;margin:0;border-radius:0}
.wizard-scene .photo-scene-caption,.wizard-scene .photo-scene-heart{display:none}
#experience-dialog .wizard-reveal-status{flex:0 0 auto;text-align:center;font-size:14px;line-height:20px;margin:0;color:#865066}
.wizard-stage-dots{display:flex;gap:6px;justify-content:center;flex:0 0 auto}
.wizard-stage-dots>span{width:6px;height:6px;border-radius:50%;background:#dbc1cb}
.wizard-stage-dots>.active{background:#ad3d69}
.wizard-matches .wizard-body{gap:7px}
#experience-dialog .wizard-match-key{margin:0;font-size:12px;line-height:17px;color:#835a6c;text-align:center;flex:0 0 auto}
.wizard-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:8px;flex:1;min-height:0;list-style:none;padding:0;margin:0}
.wizard-match-grid.is-small{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);max-height:230px;margin-block:auto;width:100%}
.wizard-match-tile{min-width:0;min-height:0;padding:8px;position:relative;background:#fffdf8;border:1px solid #dfbfcc;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.wizard-product-icon{flex:1;min-height:20px;max-height:90px;width:100%;display:flex;align-items:center;justify-content:center}
.wizard-product-icon>svg{width:100%;height:100%;max-width:105px;max-height:100%}
.wizard-match-tile>strong{font-family:var(--sans);font-size:14px;font-weight:650;line-height:18px;text-align:center;flex:0 0 auto}
.wizard-charm-badge{position:absolute;right:5px;top:5px;width:22px;height:22px;padding:2px;border-radius:50%;background:#f8e4ed;border:1px solid #ebc8d8}
.wizard-charm-badge>:is(svg,span,img){display:block;width:100%;height:100%}
.wizard-review-summary{padding:16px;display:grid;grid-template-columns:1fr auto;gap:8px 12px;border:1px solid #d9b7c6;border-radius:13px;background:#f7e1e9;align-items:start}
.wizard-review-summary>div{display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:20px}
.wizard-review-summary>div>strong{font-size:17px}
.wizard-review-summary>strong{font-family:var(--display,var(--serif));color:#a33265;font-size:27px;line-height:32px}
#experience-dialog .wizard-review-summary>p{grid-column:1/-1;margin:0;font-size:12px;line-height:18px;color:#805366}
.wizard-confirmation-art{flex:1;min-height:0;max-height:240px;width:100%}
.wizard-confirmation-art>svg{width:100%;height:100%}
.wizard-order-card{text-align:center;padding:15px;border:1px solid #d8b3c2;background:#f7e1e9;border-radius:13px;display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 auto}
.wizard-order-card>span{font-size:12px;color:#8b5d72}
.wizard-order-card>strong{color:#803b5d;font-family:var(--sans);font-size:19px;font-weight:750;line-height:25px}
#experience-dialog .wizard-order-card>p{color:#80576b;font-size:13px;line-height:19px;margin:0}
.wizard-confirmation .wizard-small-note{text-align:center}
.wizard-tracking-form{flex:0 0 auto;display:flex;flex-direction:column;gap:7px;margin:0}
.wizard-tracking-form>div{display:flex;gap:8px}
.wizard-tracking-form input{flex:1}
.wizard-tracking-result{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:14px}
.wizard-tracking-steps{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:14px;font-size:14px;line-height:20px;color:#927281}
.wizard-tracking-steps li{display:flex;align-items:center;gap:10px}
.wizard-tracking-steps .is-complete{color:#944366;font-weight:650}
#experience-dialog .wizard-empty{text-align:center;font-size:14px;line-height:20px;margin:0;color:#855e71}
.wizard-guide-image{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.wizard-info-icon{text-align:center;font-size:70px;line-height:1;color:#bc4a79}
#experience-dialog .wizard-info-copy{margin:0;text-align:center;font-size:18px;line-height:26px;color:#78425d}
#experience-dialog[data-mode="info"]{max-height:calc(100dvh - 24px)}
#experience-dialog[data-mode="info"] .wizard-policy-page{padding:54px 24px 26px}
#experience-dialog[data-mode="info"] .wizard-policy-page h2{font-size:28px;line-height:1.15}
#experience-dialog[data-mode="info"] .policy-content p{font-size:14px;line-height:21px}
@media(max-width:400px),(max-height:650px){
 .wizard-screen{padding:14px 15px 13px;gap:10px}.wizard-progress{margin-bottom:11px}
 #experience-dialog .wizard-title{font-size:27px;letter-spacing:-.7px}
 #experience-dialog .wizard-subtitle{font-size:12px;line-height:17px;margin-top:5px}
 .wizard-body,.wizard-form{gap:10px}.wizard-plan{padding:13px 8px;gap:6px}.wizard-plan-art{height:102px}.wizard-plan>strong{font-size:15px}.wizard-plan-price{font-size:29px}
 #experience-dialog .wizard-primary,#experience-dialog .wizard-secondary{padding:10px 12px;min-height:44px;gap:8px;font-size:13px}
 #experience-dialog .wizard-preview{margin-top:9px}.wizard-match-grid{gap:6px}.wizard-match-tile{padding:6px;gap:2px;border-radius:10px}.wizard-match-tile>strong{font-size:12px;line-height:16px}
 .wizard-match-grid.is-small{max-height:185px}.wizard-charm-badge{width:19px;height:19px;top:3px;right:3px}.wizard-summary{padding:10px 12px;font-size:13px}.wizard-summary>strong{font-size:14px}
 .wizard-review-summary{padding:12px}.wizard-order-card{padding:12px}.wizard-order-card>strong{font-size:17px}.wizard-tracking-steps{gap:11px;font-size:13px}
}
/* Reflow for a software keyboard without shrinking input text below 16px. */
#experience-dialog[data-compact="true"] .wizard-screen{padding:9px 13px;gap:7px}
#experience-dialog[data-compact="true"] .wizard-header{padding-right:38px}
#experience-dialog[data-compact="true"] .wizard-progress-label,#experience-dialog[data-compact="true"] .wizard-progress{display:none}
#experience-dialog[data-compact="true"] .wizard-title{font-size:21px;line-height:25px}
#experience-dialog[data-compact="true"] .wizard-subtitle{display:none}
#experience-dialog[data-compact="true"] .wizard-body,#experience-dialog[data-compact="true"] .wizard-form{gap:6px}
#experience-dialog[data-compact="true"] .wizard-body{justify-content:flex-start}
#experience-dialog[data-compact="true"] .wizard-field{gap:3px}
#experience-dialog[data-compact="true"] .wizard-field>label{font-size:12px;line-height:15px}
#experience-dialog[data-compact="true"] .wizard-field input{min-height:39px;height:39px;padding-block:7px}
#experience-dialog[data-compact="true"] .wizard-field textarea{min-height:50px;height:55px;padding-block:7px}
#experience-dialog[data-compact="true"] .wizard-small-note,#experience-dialog[data-compact="true"] .wizard-preview{display:none}
#experience-dialog[data-compact="true"] .wizard-summary{padding:7px 10px}
#experience-dialog[data-compact="true"] .wizard-review-summary{padding:8px 10px;gap:3px 8px}
#experience-dialog[data-compact="true"] .wizard-review-summary>p{display:none}
#experience-dialog[data-compact="true"] .wizard-primary,#experience-dialog[data-compact="true"] .wizard-secondary{min-height:39px;padding-block:8px}
/* Keep every field above a tall software keyboard; the dialog retains its accessible name. */
#experience-dialog[data-mode="wizard"][data-short="true"] .wizard-header{display:none}
#experience-dialog[data-short="true"] .wizard-body,#experience-dialog[data-short="true"] .wizard-form{gap:5px}
#experience-dialog[data-short="true"] .dialog-close{top:auto;bottom:12px}
#experience-dialog[data-short="true"] .wizard-footer{padding-right:44px}
#experience-dialog[data-short="true"] .wizard-primary>span{display:none}
