#product-dialog{background:transparent;border:0;padding:0;box-shadow:none;width:1168px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
#product-dialog::backdrop{background:rgba(23,35,38,.65)}
.product-modal-shell{display:grid;grid-template-columns:48px minmax(0,1040px) 48px;align-items:center;gap:16px;padding:32px 0}
.product-modal-card{position:relative;background:white;border-radius:16px;box-shadow:0 0 25px #0006;padding:32px;display:flex;flex-direction:column;gap:24px}
.product-close{position:absolute;right:20px;top:22px;width:24px;height:24px;border:0;padding:0;background:none;cursor:pointer}
.product-count{padding-left:10px;margin:0;font:600 14px/normal Inter;color:#585857}
.product-modal-content{display:grid;grid-template-columns:minmax(0,552px) minmax(0,1fr);gap:32px;padding:10px;min-height:0}
.product-media{min-width:0;display:flex;flex-direction:column;gap:10px}
.product-main-image{position:relative;width:100%;height:auto;aspect-ratio:552/460;border-radius:12px;overflow:hidden}
.product-main-image img{width:100%;height:120%;object-fit:cover;position:absolute;top:-1.74%;left:0}
.product-gallery{position:relative}.product-thumbnails{display:flex;gap:10px;overflow:auto;scrollbar-width:none;padding:0 16px}
.product-thumbnail{flex:none;width:90px;height:90px;padding:0;border:1px solid #dedede;border-radius:8px;overflow:hidden;background:white;cursor:pointer}
.product-thumbnail[aria-pressed=true]{border:1.6px solid #838383}.product-thumbnail img{width:100%;height:100%;object-fit:cover}
.product-arrow{width:48px;height:48px;border:0;border-radius:50%;background:white;padding:10px;display:grid;place-items:center;cursor:pointer}
.product-arrow:disabled{opacity:.35;cursor:default}
.gallery-arrow{position:absolute;top:29px;width:32px;height:32px;padding:6px;box-shadow:0 0 4px #0004}.gallery-arrow.previous{left:0}.gallery-arrow.next{right:0}
.product-details{display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-width:0}
.product-identity{display:flex;flex-direction:column;gap:8px}.product-category{font:600 14px/normal Inter;color:#585857;margin:0}
#product-dialog h2{font:700 22px/1.25 Inter;margin:0;color:#585857}.product-store{font:600 16px/normal Inter;margin:6px 0 0}.product-normal{font:400 14px/normal Inter;margin:0}
.product-description{font:400 14px/20px Inter;color:#585857;margin:24px 0 0}
.product-choose{height:44px;width:100%;border:0;border-radius:999px;background:#00a1b0;color:white;font:600 15px/20px Inter;letter-spacing:.75px;cursor:pointer}
.product-choose:disabled{opacity:.4;cursor:default}

/* Shared colours/buttons; dynamic product images retain their full proportions. */
#product-dialog{color:#585857;font-family:Inter,Arial,sans-serif}#product-dialog .product-main-image img{height:100%;top:0;object-fit:cover;border-radius:12px}#product-dialog .product-description{white-space:pre-line}#product-dialog .product-choose{text-transform:uppercase;font:600 13px/20px Inter;letter-spacing:.39px}#product-dialog .product-close img{width:24px;height:24px}#product-dialog .product-arrow img{width:20px;height:20px}#product-dialog .product-thumbnail img{display:block}#product-dialog button:focus-visible{outline:2px solid #00a1b0;outline-offset:3px}
.design-step2 .fgs-catalog-filters{flex-wrap:wrap}.design-step2 .fgs-catalog-filters .design-search-label{flex:1 1 240px;margin-right:auto;max-width:420px}.design-step2 .fgs-catalog-filters input[type=search]{width:100%;height:48px;min-height:48px;border:1px solid #dedede;border-radius:999px;background:#fff url('figma-search.svg') no-repeat 16px center/20px;padding:0 16px 0 44px;color:#585857;font:400 14px Inter}.design-step2 .fgs-catalog-filters input[type=search]:focus{outline:0;border-color:#00a1b0;box-shadow:none}.design-step2 .fgs-gift-grid .fgs-gift-card-main{position:relative}.design-product-category{position:absolute;top:8px;left:8px;background:#9bb7ba;color:white;padding:6px 10px;border-radius:999px;font:500 12px/normal Inter;z-index:1}.design-card-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font:400 14px/20px Inter;color:#585857;margin:4px 0 0;letter-spacing:-.42px}.design-step2 .fgs-gift-grid .fgs-gift-copy{overflow:hidden}
@media(max-width:780px){.design-step2 .fgs-catalog-filters .design-search-label{flex-basis:100%;max-width:none}.design-step2 .fgs-catalog-filters>label:not(.design-search-label){flex:1;min-width:0}.design-step2 .fgs-catalog-filters select{width:100%}}
@media(max-width:1100px){.product-modal-content{grid-template-columns:1.2fr 1fr;gap:24px;min-height:0}.product-main-image{height:auto;aspect-ratio:1.2}.product-modal-card{padding:24px}.product-thumbnail{width:72px;height:72px}.gallery-arrow{top:20px}}
@media(max-width:700px){.product-modal-shell{grid-template-columns:1fr 1fr;gap:12px;padding:32px 12px}.product-modal-card{grid-column:1/-1;grid-row:1}.product-modal-shell>.product-arrow{justify-self:center}.product-modal-content{grid-template-columns:1fr;padding:0}.product-main-image{max-height:320px}.product-details{gap:24px}.product-close{top:16px;right:16px}}
/* Later approved preview correction: previous arrows point left. */
.product-previous img,.gallery-arrow.previous img{transform:rotate(180deg)}

@media(max-width:650px){.design-step2 .fgs-catalog-filters select{font-size:13px;padding-left:12px;padding-right:28px;background-position:right 8px center,right 6px center}.design-step2 .fgs-catalog-filters input[type=search]{font-size:16px}}

@media(max-width:360px){.design-step2 .fgs-catalog-filters>label:not(.design-search-label){flex:1 1 100px;min-width:100px}}

/* Product cards: stable action position and shared neutral typography. */
.design-step2 .fgs-gift-grid .fgs-gift-card-actions > .fgs-status-pill{margin-right:0;margin-left:auto}
.design-step2 .fgs-gift-grid .fgs-gift-card-actions > form{margin-left:auto}
.design-step2 .fgs-gift-grid .fgs-gift-card-actions > form .fgs-btn,
.design-step2 .fgs-gift-grid .design-selected .fgs-gift-card-actions > .fgs-status-pill{min-width:94px;box-sizing:border-box;text-align:center;justify-content:center}
.design-step2 .fgs-gift-grid .design-card-description{color:#585857;margin:10px 0 0;font:400 14px/20px Inter;letter-spacing:-.42px}
.design-step2 .fgs-gift-grid .fgs-tags span:first-child,
.design-step2 .fgs-selected-gifts .fgs-tags span:first-child{text-transform:none}

/* Keep the card copy within its shared text budget. Full copy stays in Se gave. */
.design-step2 .fgs-gift-grid .fgs-gift-copy h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.design-step2 .fgs-gift-grid .fgs-gift-copy .fgs-tags span:first-child{display:block;flex:0 1 100%;width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-transform:none}
.design-step2 .fgs-gift-grid .design-card-description{-webkit-line-clamp:3;overflow-wrap:anywhere}
.design-step2 .fgs-gift-grid .design-title-two-lines .design-card-description{-webkit-line-clamp:2}

/* Media and action share the same bottom edge, with or without thumbnails. */
#product-dialog .product-modal-content{align-items:stretch}
#product-dialog .product-main-image{aspect-ratio:552/460;flex:none}
#product-dialog .product-details{align-self:stretch}
#product-dialog .product-choose{flex-shrink:0;margin-top:auto}
#product-dialog .product-store{text-transform:none}
#product-dialog .product-modal-card{box-shadow:0 0 25px #00000059}
@media(min-width:701px){#product-dialog .product-modal-content{grid-template-columns:minmax(0,552fr) minmax(0,372fr)}}

/* Align the detail link with the product copy inset. */
.design-step2 .fgs-gift-grid .fgs-gift-card-actions > .design-gift-link{margin-left:6px}

/* Full text rows fit before clamping; the actions never clip the description. */
.design-step2 .fgs-gift-grid>.fgs-gift-card{height:460px}
.design-step2 .fgs-gift-grid .fgs-gift-copy{flex-shrink:0;overflow:visible}
.design-step2 .fgs-gift-grid .fgs-gift-card-actions{flex-shrink:0}
.design-step2 .fgs-gift-grid .design-gift-preview{display:block;width:100%;height:215px;flex:none;border:0;padding:0;margin:0;background:transparent;border-radius:6px;cursor:pointer;overflow:hidden}
.design-step2 .fgs-gift-grid .design-gift-preview .fgs-gift-image{display:block;height:100%;width:100%;margin:0}
.design-step2 .design-gift-preview:focus-visible{outline:2px solid #00a1b0;outline-offset:3px}
.design-step2 .design-product-category{pointer-events:none}
