/* Shared title, visual-choice row and footer for the audited collections. */
#main-content .catalog-grid:has(.product-choices) { row-gap: 52px; }
#main-content .catalog-more:has(.product-choices) { margin-top: 40px; }
#main-content .catalog-card:has(.product-choices) { display: flex; flex-direction: column; min-width: 0; }
#main-content .catalog-card:has(.product-choices) .catalog-card-copy { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
#main-content .catalog-card:has(.product-choices) .product-overline { display: none; }
#main-content .catalog-card:has(.product-choices) h3 { min-height: 52px; margin: 0 0 8px; font-size: 18px; line-height: 26px; overflow-wrap: anywhere; }
.product-choices { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; flex: none; margin-top: auto; padding-bottom: 4px; box-sizing: border-box; }
.choice-fields { flex: 1; min-width: 0; }
.choice-fields:empty, .choice-finishes:empty { display: none; }
.choice-design { position: relative; min-width: 0; }
.choice-design summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid #cbd6d0; border-radius: 4px; color: #354a40; cursor: pointer; list-style: none; font-size: 12px; }
.choice-design summary::-webkit-details-marker { display: none; }
.choice-design summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-design summary i { font-size: 9px; flex: none; }
.choice-design[open] summary { border-color: #506b5f; background: #edf2ee; }
.choice-design-panel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 12; width: 260px; max-width: calc(100vw - 48px); overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #d3dbd7; border-radius: 6px; box-shadow: 0 6px 24px #23382b24; }
.choice-design.opens-down .choice-design-panel { top: calc(100% + 8px); bottom: auto; }
.choice-design-panel button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 6px; text-align: left; border: 1px solid transparent; background: #fff; color: #26332d; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.choice-design-panel img { width: 52px; height: 52px; object-fit: contain; background: #f5f7f5; flex: none; }
.choice-design-panel button:hover { background: #f5f7f5; }
.choice-design-panel button[aria-pressed="true"] { border-color: #506b5f; background: #edf2ee; }
.choice-finishes { display: flex; flex: none; align-items: center; height: 40px; }
.choice-swatches { display: flex; gap: 4px; }
.choice-swatches button { position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.choice-swatches button::before { content: ''; position: absolute; inset: 6px; border: 1px solid #0002; border-radius: 50%; background: var(--swatch); }
.choice-swatches button[aria-pressed="true"] { border-color: #506b5f; }
.choice-swatches button:focus-visible, .choice-design summary:focus-visible, .choice-design-panel button:focus-visible { outline: 2px solid #506b5f; outline-offset: 3px; }
.choice-status { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; padding: 6px 8px; background: #f5f7f6; font-size: 11px; color: #586b64; line-height: 1.5; }
.choice-status:empty { display: none; }
.dialog-preview-note { margin: 8px 0; font-size: 12px; color: #586b64; }
.product-choices .card-source-select { display: none; }
#main-content .catalog-card:has(.product-choices) .card-bottom { margin-top: 0; justify-content: space-between; align-items: center; flex-direction: row; gap: 12px; padding-top: 4px; padding-bottom: 12px; border-top: 0; border-bottom: 1px solid #d3dbd7; }
#main-content .catalog-card:has(.product-choices) .card-bottom > span { display: none; }
#main-content .catalog-card:has(.product-choices) .spec-link { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 36px; }
@media (max-width: 560px) {
    #main-content .catalog-grid:has(.product-choices) { row-gap: 40px; }
    #main-content .catalog-card:has(.product-choices) h3 { min-height: 0; font-size: 18px; margin-bottom: 12px; }
    .product-choices:not(.has-visual-choices) { height: 0; padding: 0; }
}
