/* Shared, compact storefront. Mobile retains a real scroll area, not a scaled form. */
.checkout-contact-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.checkout-contact-fields>.field{min-width:0}
.checkout-contact-fields input{width:100%;min-width:0}
#orderDialog.compact-checkout .phone-national{display:flex;align-items:center;min-width:0;border:1px solid var(--border);border-radius:12px;background:#fff}
#orderDialog.compact-checkout .phone-national:focus-within{outline:2px solid var(--berry);outline-offset:1px}
#orderDialog.compact-checkout .phone-prefix{flex:none;padding-left:8px;font-size:16px;line-height:1;color:var(--ink)}
#orderDialog.compact-checkout .phone-national input{flex:1;min-width:0;width:100%;border:0;outline:0;box-shadow:none;padding:8px 6px;border-radius:12px;font-variant-numeric:tabular-nums}
#orderDialog.compact-checkout .phone-national:has(input[aria-invalid="true"]){border-color:#b42318}
.quick-filter{padding:20px 0;background:#fff8f9}
.quick-filter>.wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"budget occasion" "type occasion";gap:18px 24px;align-items:start}
.quick-filter .filter-budget{grid-area:budget}
.quick-filter .filter-occasion{grid-area:occasion}
.quick-filter .category-filter{grid-area:type}
.quick-filter .category-filter{padding:0;border:0;background:transparent;min-width:0}
.quick-filter .category-filter>.wrap{width:100%;max-width:none;margin:0;padding:0}
.quick-filter .filter-block,.quick-filter .filter-block+.filter-block{margin:0;min-width:0}
.quick-filter .quick-filter-title{margin:0 0 10px;font-size:14px}
.quick-filter .quick-chip-row{gap:7px}
.quick-filter .quick-chip-row button{min-height:42px;padding:8px 13px;font-size:13px}
.quick-filter .quick-chip-row{flex-wrap:wrap;overflow:visible}
.quick-filter .quick-chip-row button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.quick-filter .quick-chip-row button[hidden],.quick-filter .filter-more[hidden]{display:none}
.quick-filter .filter-more{min-height:42px;margin-top:7px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--berry);font:600 13px 'Manrope','Segoe UI',Arial,sans-serif;cursor:pointer}
.quick-filter .filter-more:focus-visible{outline:2px solid var(--berry);outline-offset:3px}
.popular-more{display:block;min-height:44px;margin:24px auto 0;min-width:220px}
.popular-more[hidden]{display:none}
.popular-catalog-cta{margin-top:20px}

dialog#orderDialog.compact-checkout{padding:0;width:calc(100% - 40px);max-width:560px;max-height:calc(100dvh - 40px);overflow:hidden}
dialog#orderDialog.compact-checkout[open]{display:flex;flex-direction:column}
#orderDialog .checkout-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;background:#fff;border-bottom:1px solid #f0e4e8;z-index:2}
#orderDialog .checkout-header h3{margin:0;padding:0;font-size:20px;line-height:1.25}
#orderDialog .checkout-header .modal-close{position:static;flex:none;width:44px;height:44px;margin:-4px -5px -4px 0}
#orderDialog.compact-checkout #formStep,#orderDialog.compact-checkout #previewStep{overflow:auto;min-height:0;overscroll-behavior:contain;padding:14px 22px 22px;scroll-padding:14px}
#orderDialog.compact-checkout [hidden]{display:none!important}
#orderDialog.compact-checkout .modal-product.managed-confirm{grid-template-columns:56px minmax(0,1fr);padding:9px;gap:10px;margin:0 0 14px}
#orderDialog.compact-checkout .modal-product.managed-confirm>img,#orderDialog.compact-checkout .managed-order-placeholder{width:56px;height:56px}
#orderDialog.compact-checkout .modal-product.managed-confirm strong{font-size:15px}
#orderDialog.compact-checkout .modal-product.managed-confirm small{font-size:12px}
#orderDialog.compact-checkout .modal-product.managed-confirm b{font-size:15px}
#orderDialog.compact-checkout .field input,#orderDialog.compact-checkout .field textarea,#orderDialog.compact-checkout select{min-height:44px;font-size:16px}
#orderDialog.compact-checkout .field label,#orderDialog.compact-checkout legend{font-size:13px;font-weight:600}
#orderDialog.compact-checkout .choice-grid span{min-height:44px;border-radius:12px;padding:8px;font-size:13px}
#orderDialog.compact-checkout .pickup-checkout{margin:0 0 12px}
#orderDialog.compact-checkout .pickup-summary{border:0;background:none;margin:0 0 10px;padding:0}
#orderDialog.compact-checkout .pickup-address{font-size:12px;font-weight:400;color:var(--ink-muted)}
#orderDialog.compact-checkout #pickupBenefit{display:none!important}
#orderDialog.compact-checkout .checkout-contact .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#orderDialog.compact-checkout .checkout-contact .choice-grid span{font-size:13px;padding:8px 4px}
#orderDialog.compact-checkout .checkout-optional{border:1px solid var(--border);border-radius:12px;margin:10px 0;padding:0;background:#fff}
#orderDialog.compact-checkout .checkout-optional summary{cursor:pointer;padding:12px;font-size:13px;min-height:44px}
#orderDialog.compact-checkout .checkout-optional .field{margin:0;padding:0 12px 12px}
#orderDialog.compact-checkout .pickup-schedule{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:start}
#orderDialog.compact-checkout .pickup-schedule .pickup-summary{grid-column:1/-1}
#orderDialog.compact-checkout .pickup-schedule .pickup-time{border:0;background:none;margin:0;padding:0;min-width:0}
#orderDialog.compact-checkout .pickup-time select{width:100%;min-width:0}
#orderDialog.compact-checkout .pickup-time label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}
#orderDialog.compact-checkout #pickupHint{font-size:11px;line-height:1.4;margin-bottom:0}
#orderDialog.compact-checkout .card-message-box{padding:10px 12px;border-radius:12px;margin:10px 0;background:#fff7f9}
#orderDialog.compact-checkout .card-toggle{align-items:center}
#orderDialog.compact-checkout .card-toggle input{width:20px;height:20px;margin:0;flex:none}
#orderDialog.compact-checkout .card-toggle b{font-size:14px}
#orderDialog.compact-checkout #cardMessageField textarea{min-height:68px;font-size:16px}
#orderDialog.compact-checkout .total-box{padding:14px 0 0;margin:12px 0 4px;border:0;background:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
#orderDialog.compact-checkout #orderTotal{font-size:30px;line-height:1.15;color:var(--berry)}
#orderDialog.compact-checkout #managedGiftNotice{padding:0;margin:7px 0 12px;border:0;background:none;font-size:14px;line-height:1.5;font-weight:400;color:var(--ink)}
#orderDialog.compact-checkout .gift-notice-actions{gap:8px 14px}
#orderDialog.compact-checkout .gift-notice-action{min-height:32px}
#orderDialog.compact-checkout .personal-data-notice{font-size:11px;line-height:1.45;margin:12px 0}
#orderDialog.compact-checkout #submitButton{min-height:48px}
#orderDialog.compact-checkout #turnstileBox{max-width:100%;overflow:auto}
#orderDialog.compact-checkout.order-success-active .checkout-header h3{visibility:hidden}
#orderDialog.delivery-estimate-active:not(.delivery-quick-lead-active) .checkout-optional{display:none}

@media(max-width:600px){
  .quick-filter{padding:14px 0}
  .quick-filter>.wrap{grid-template-columns:1fr;grid-template-areas:"budget" "occasion" "type";gap:12px}
  .quick-filter .quick-filter-title{font-size:13px;margin-bottom:7px}
  .quick-filter .quick-chip-row{display:flex;flex-wrap:wrap;overflow:visible;padding-bottom:0}
  .quick-filter .quick-chip-row button{flex:0 1 auto;white-space:normal;min-height:42px;padding:8px 11px}
  dialog#orderDialog.compact-checkout{width:100%;max-width:none;max-height:calc(100dvh - 12px);margin:auto 0 0;border-radius:20px 20px 0 0}
  #orderDialog .checkout-header{padding:12px 16px;min-height:60px}
  #orderDialog .checkout-header h3{font-size:18px}
  #orderDialog.compact-checkout #formStep,#orderDialog.compact-checkout #previewStep{padding:12px 16px calc(18px + env(safe-area-inset-bottom))}
  #orderDialog.compact-checkout .form-note{font-size:11px;margin:4px 0 9px}
  #orderDialog.compact-checkout .choice-grid.three span{padding:8px 4px;font-size:12px}
  .popular-more{width:100%;margin-top:16px}
}

#orderDialog.compact-checkout #totalHint{font-size:13px;line-height:1.45;color:var(--ink-muted)}

/* Successful request stays centered, not a mobile bottom sheet. */
#orderDialog.compact-checkout.order-success-active{inset:0;margin:auto;width:calc(100% - 32px)!important;max-width:480px!important;height:fit-content;max-height:calc(100dvh - 32px);border-radius:22px}
#orderDialog.compact-checkout.order-success-active #previewStep{text-align:center;padding:24px}
.catalog-photo-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.catalog-photo-open:focus-visible{outline:3px solid #3f7656;outline-offset:-3px}
.catalog-photo-dialog{box-sizing:border-box;inset:0;margin:auto;width:min(94vw,900px);max-height:94dvh;border:0;border-radius:18px;padding:16px;text-align:center;overflow:auto}
.catalog-photo-dialog::backdrop{background:#000b}
.catalog-photo-dialog img{display:block;max-width:100%;max-height:72dvh;width:auto;height:auto;object-fit:contain;margin:12px auto}
.photo-viewer-close{display:block;margin-left:auto;padding:10px 16px;min-height:44px;cursor:pointer}
#msgMenu a{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:12px;padding:12px 16px;text-decoration:none;color:inherit;min-height:44px;box-sizing:border-box}
#msgMenu a:hover,#msgMenu a:focus-visible{background:#eef5ef}

/* Product preview: one photograph, real card data, existing checkout. */
dialog.catalog-photo-dialog{width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:18px;border-radius:24px;text-align:left;position:fixed}
dialog.catalog-photo-dialog[open]{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:28px;align-items:start}
.catalog-photo-dialog .photo-viewer-image{width:100%;height:auto;max-height:calc(100dvh - 80px);object-fit:contain;display:block;margin:0;border-radius:16px;background:#faf7f6}
.catalog-photo-dialog .photo-viewer-close{position:absolute;right:12px;top:10px;z-index:1;border:1px solid #ddd;background:#fff;border-radius:12px;min-height:44px}
.photo-viewer-info{min-width:0;padding:48px 10px 10px 0;overflow-wrap:anywhere}
.photo-viewer-title{font-size:clamp(22px,2.5vw,32px);line-height:1.18;margin:0 0 18px}
.photo-viewer-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.photo-viewer-badge{background:#ffe7ed;color:#78132b;padding:7px 12px;border-radius:20px;font-size:14px;font-weight:600}
.photo-viewer-prices{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin:16px 0}
.photo-viewer-price{color:#78132b;font-size:32px;line-height:1.2}
.photo-viewer-old-price{color:#777;font-size:20px}
.photo-viewer-meta,.photo-viewer-description{line-height:1.5;margin:14px 0;font-size:17px}
.photo-viewer-benefits{padding:0;margin:20px 0;list-style:none;display:flex;gap:12px 20px;flex-wrap:wrap;line-height:1.5}
.photo-viewer-discount{font-size:14px;color:#666;margin:22px 0 14px}
.photo-viewer-order{width:100%;min-height:50px;margin-top:10px}
.catalog-photo-dialog [hidden]{display:none!important}
/* Thumbnail labels share a wrapping row rather than covering each other. */
.card-photo .card-badges{position:absolute;top:8px;left:8px;right:8px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;pointer-events:none}
.card-photo .card-badges .card-badge{position:static;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:0}
@media(max-width:600px){
  dialog.catalog-photo-dialog{width:100%;max-height:100dvh;height:fit-content;min-height:0;margin:auto 0;border-radius:16px;padding:48px 0 max(10px,env(safe-area-inset-bottom));overflow:auto}
  dialog.catalog-photo-dialog[open]{display:block}
  .catalog-photo-dialog .photo-viewer-close{top:4px;right:8px;padding:8px 12px;min-height:44px;font-size:14px}
  .catalog-photo-dialog .photo-viewer-image{height:min(46vh,90vw,360px);height:min(46dvh,90vw,360px);max-height:360px;border-radius:0;width:100%;object-fit:contain}
  .photo-viewer-info{padding:10px 16px 0}
  .photo-viewer-title{font-size:20px;line-height:1.2;margin:0 0 8px}
  .photo-viewer-badges{gap:6px;margin-bottom:6px}
  .photo-viewer-badge{font-size:12px;padding:5px 9px}
  .photo-viewer-prices{gap:10px;margin:6px 0}
  .photo-viewer-price{font-size:26px}
  .photo-viewer-old-price{font-size:17px}
  .photo-viewer-meta,.photo-viewer-description{font-size:15px;line-height:1.35;margin:6px 0}
  .photo-viewer-benefits{font-size:14px;line-height:1.35;margin:8px 0;gap:6px 12px}
  .photo-viewer-discount{font-size:12px;line-height:1.35;margin:6px 0}
  .photo-viewer-order{font-size:16px;min-height:44px;margin-top:4px}
  .card-photo .card-badges .card-badge{font-size:11px;padding:5px 7px;line-height:1.2}
}
@media(max-width:600px) and (max-height:650px){
  .catalog-photo-dialog .photo-viewer-image{height:min(34vh,90vw,280px);height:min(34dvh,90vw,280px)}
}


/* Readable card details without shrinking the enlarged product photo. */
.grid-cards .card-meta{font-size:13px;line-height:1.4}
.grid-cards .card-benefit,.grid-cards .product-features{font-size:13px;line-height:1.4}
.grid-cards .managed-size-control,.grid-cards .package-control{font-size:14px}
.grid-cards .managed-size-control select,.grid-cards .package-control select{font-size:16px;min-height:44px}
.messenger-menu>a{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:12px;min-height:48px}
.messenger-menu>a>span{min-width:0;white-space:nowrap}
.messenger-menu .messenger-icon{display:block;width:28px;height:28px;flex:none}
.photo-viewer-variant{display:flex;flex-direction:column;gap:5px;margin:10px 0;font-size:15px;font-weight:600}
.photo-viewer-variant select{width:100%;min-height:44px;font-size:16px;border:1px solid #dfcdd2;border-radius:10px;padding:8px 10px;background:#fff;color:#33242a}
.catalog-photo-dialog .photo-viewer-image[hidden],.photo-viewer-variant[hidden]{display:none!important}
@media(max-width:600px){
 .grid-cards .card-body h3{font-size:15px;line-height:1.3}
 .photo-viewer-benefits{font-size:16px;line-height:1.35}
 .photo-viewer-meta,.photo-viewer-description{font-size:16px}
 .photo-viewer-discount{font-size:14px}
 .photo-viewer-variant{margin:6px 0}
}

/* Keep the dismiss target in reserved chrome, never over the photograph. */
.catalog-photo-dialog .photo-viewer-close{width:44px;height:44px;padding:0;font:32px/1 Arial,sans-serif;display:grid;place-items:center}
.grid-cards .card-old-price{font-size:14px;line-height:1.35;color:#706267;text-decoration-thickness:1px}
@media(min-width:601px){dialog.catalog-photo-dialog{padding-top:62px}.photo-viewer-info{padding-top:0}}
