/* Choose a design first; read its details and request a calculation next. */
#catalog .category-card .category-title{border-bottom:0;padding-bottom:8px}
#catalog .category-caption{margin-bottom:4px}
#catalog .category-action{margin-top:auto;padding-top:14px;min-height:44px}
#catalog .catalog-secondary-action{min-height:36px;display:inline-flex;align-items:center}
.catalog-dialog{width:min(1120px,calc(100% - 40px));max-width:none;max-height:92vh;max-height:92dvh;border:1px solid #d6dacd;border-radius:8px;background:#fafbf8;overscroll-behavior:contain}
.catalog-dialog [hidden]{display:none!important}
.catalog-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:28px 32px 24px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}
.catalog-dialog-heading .eyebrow{font-size:11px;letter-spacing:1.5px;margin-bottom:9px;color:#80502d}
.catalog-dialog-heading h2{font-size:32px;line-height:1.2;letter-spacing:-.7px;max-width:850px;overflow-wrap:break-word}
.catalog-dialog-heading h2:focus{outline:none}
.catalog-dialog-heading p:last-child{font-size:15px;line-height:1.5;margin-top:9px;color:#596055}
.catalog-close{flex:none;width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #d2d8c9;border-radius:50%;background:#fff;color:var(--ink);font-size:30px;line-height:1}
.catalog-close:hover{background:#f0f2eb}
.catalog-dialog-content{padding:28px 32px 32px}
.catalog-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-choice{display:flex;flex-direction:column;text-align:left;padding:0;border:2px solid #d9ddd3;border-radius:6px;overflow:hidden;background:#fff;min-width:0;transition:border-color .16s,box-shadow .16s}
.catalog-choice-photo{display:block;position:relative;flex:none;width:100%;aspect-ratio:1.5;overflow:hidden;background:#e5e8e0}
.catalog-choice-photo>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.catalog-choice-copy{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;flex:1;font-size:16px;line-height:1.4}
.catalog-choice-check{flex:none;display:grid;place-items:center;width:23px;height:23px;border:1px solid #b4bbae;border-radius:50%;color:#fff;font-size:15px}
.catalog-choice[aria-pressed="true"]{border-color:#a45522;box-shadow:0 0 0 1px #a45522;background:#fff6ed}
.catalog-choice[aria-pressed="true"] .catalog-choice-check{background:#a45522;border-color:#a45522}
.catalog-choice[aria-pressed="true"] .catalog-choice-check::before{content:'✓'}
.catalog-choice:hover{border-color:#945124}
.catalog-choice:focus-visible{outline:3px solid #4d6147;outline-offset:4px}
.catalog-selected{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:32px;padding:30px;margin-top:30px;border:1px solid #d2d9c8;border-radius:6px;background:#fff}
.catalog-selected-visual,.catalog-selected-copy{min-width:0}
.catalog-selected-photo{display:block;border-radius:4px;overflow:hidden;background:#f0f2eb}
.catalog-selected-photo>img{width:100%;height:auto;max-height:480px;object-fit:contain}
.catalog-selected-photo>span{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;font-size:14px;line-height:1.45;background:#f0f2eb}
.catalog-image-note{margin-top:14px;font-size:13px;line-height:1.6;color:#62685e}
.catalog-selected-copy .eyebrow{font-size:11px;letter-spacing:1.4px;margin-bottom:12px;color:#80502d}
.catalog-selected-copy h3{font-size:28px;line-height:1.25;letter-spacing:-.6px;overflow-wrap:break-word}
.catalog-selected-copy h3:focus-visible{outline:2px solid #a45522;outline-offset:5px}
#catalog-selected-description{font-size:16px;line-height:1.65;margin-top:16px;color:#596055}
.catalog-selected-copy .button{width:100%;font-size:15px;line-height:1.4;gap:16px;margin-top:25px;text-align:left;min-height:52px}
.catalog-request-note{font-size:13px;line-height:1.6;margin-top:13px}
.catalog-selected-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:22px}
.catalog-selected-links .text-link{display:inline-flex;align-items:center;text-align:left;min-height:44px;padding:8px 0;border:0;border-bottom:1px solid #bac1b1;background:none;font-size:14px;line-height:1.4}
@media(max-width:900px){
 .catalog-dialog-heading{padding:23px 24px 20px}
 .catalog-dialog-heading h2{font-size:28px}
 .catalog-dialog-content{padding:24px}
 .catalog-options{gap:14px}
 .catalog-choice-copy{font-size:15px;gap:10px;padding:12px}
 .catalog-selected{padding:24px;gap:24px}
 .catalog-selected-copy h3{font-size:25px}
}
@media(max-width:720px){
 .catalog-dialog{width:calc(100% - 16px);max-height:94vh;max-height:94dvh;border-radius:6px}
 .catalog-dialog-heading{padding:18px 16px 16px;gap:12px}
 .catalog-dialog-heading h2{font-size:24px;line-height:1.25;letter-spacing:-.5px}
 .catalog-dialog-heading .eyebrow{font-size:10px;margin-bottom:7px}
 .catalog-dialog-heading p:last-child{font-size:14px;margin-top:8px}
 .catalog-dialog-content{padding:18px 14px 22px}
 .catalog-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
 .catalog-choice-photo{aspect-ratio:1.15}
 .catalog-choice-copy{font-size:14px;line-height:1.4;padding:10px 9px;gap:7px}
 .catalog-choice-check{width:19px;height:19px;font-size:12px}
 .catalog-selected{grid-template-columns:1fr;gap:22px;padding:17px;margin-top:24px}
 .catalog-selected-photo>img{max-height:370px;max-height:48dvh}
 .catalog-selected-copy h3{font-size:25px}
 .catalog-selected-copy .button{margin-top:20px}
 .catalog-selected-links{margin-top:18px}
}

/* Category covers keep the same composition on desktop and mobile. */
#catalog .category-image{aspect-ratio:4/3}

/* A selected reference travels to the request without replacing typed wishes. */
.request-selection{display:grid;grid-template-columns:88px minmax(0,1fr);gap:15px;padding:14px;margin:0 0 24px;border:1px solid #d4c6b5;border-radius:6px;background:#fbf7f1}
.request-selection[hidden]{display:none}
.request-selection>img{width:88px;height:88px;object-fit:cover;border-radius:3px;background:#e5e8e0}
.request-selection-copy{min-width:0}
.request-selection-copy>p{font-size:12px;line-height:1.4;color:#80502d;margin-bottom:5px}
.request-selection-copy>strong{display:block;font-size:16px;line-height:1.4;font-weight:500;overflow-wrap:anywhere}
.request-selection-actions{display:flex;flex-wrap:wrap;column-gap:16px;margin-top:5px}
.request-selection-actions>button{padding:9px 0;min-height:44px;border:0;background:none;font-size:13px;line-height:1.4;text-align:left;text-decoration:underline;text-underline-offset:3px}
.request-selection-actions>button:hover{color:#945124}
@media(max-width:420px){.request-selection{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px}.request-selection>img{width:64px;height:76px}.request-selection-copy>strong{font-size:15px}.request-selection-actions{column-gap:13px}}

/* Quiet pill controls keep the photographs at the centre of the chooser. */
.catalog-filter-controls{
 padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid #e1e4da;
}
.catalog-filter-group{
 display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;border:0;min-width:0;
}
.catalog-filter-group+.catalog-filter-group{margin-top:20px}
.catalog-filter-group legend{
 margin-bottom:10px;padding:0;font-size:11px;font-weight:600;line-height:1.5;
 letter-spacing:.09em;text-transform:uppercase;color:#697060;
}
.catalog-filter-chip{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;
 min-height:42px;max-width:100%;padding:10px 18px;border:1px solid #dde1d5;
 border-radius:999px;background:#fff;color:#4f5749;font-family:inherit;
 font-size:14px;font-weight:400;line-height:1.4;text-align:center;
 box-shadow:0 1px 2px rgb(35 39 35 / 3%);
 transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s;
}
.catalog-filter-chip[aria-pressed=true]{
 background:#f2e5d7;color:#76401f;border-color:#cda989;
 box-shadow:0 1px 3px rgb(118 64 31 / 7%);
}
.catalog-filter-chip:focus-visible,.catalog-filter-reset:focus-visible{
 outline:2px solid #9a5d30;outline-offset:3px;
}
.catalog-filter-reset{
 display:inline-flex;align-items:center;gap:7px;min-height:40px;margin-top:12px;
 padding:8px 3px;border:0;border-radius:4px;background:none;color:#71766b;
 font-size:13px;line-height:1.4;text-decoration:none;text-underline-offset:4px;
}
.catalog-filter-reset::before{
 content:'';width:12px;height:12px;flex:none;
 background:linear-gradient(45deg,transparent 45%,currentColor 45%,currentColor 55%,transparent 55%),
 linear-gradient(-45deg,transparent 45%,currentColor 45%,currentColor 55%,transparent 55%);
 background-size:9px 9px;background-position:center;background-repeat:no-repeat;
}
@media(hover:hover){
 .catalog-filter-chip:hover{background:#f3f3ed;border-color:#bfc6b5;color:#333d2e}
 .catalog-filter-chip[aria-pressed=true]:hover{background:#ecdac7;border-color:#b98d68;color:#69391c}
 .catalog-filter-reset:hover{color:#76401f;text-decoration:underline}
}
.catalog-empty{padding:26px;border:1px dashed #b9c0b0;border-radius:6px;background:#fff;font-size:16px;line-height:1.65;color:#596055}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:720px){
 .catalog-filter-controls{padding-bottom:20px;margin-bottom:20px}
 .catalog-filter-group{gap:8px 6px}
 .catalog-filter-group+.catalog-filter-group{margin-top:18px}
 .catalog-filter-chip{padding:10px 14px;min-height:44px;font-size:13px}
 .catalog-filter-reset{min-height:44px;margin-top:8px}
}
