/* Store assets are registered in gc_head; all component styles stay scoped here. */
#gc-store { background: #5499cf; color: #fff; border-radius: 10px; padding: 20px; min-height: 300px; }
#gc-store *, #gc-store *::before, #gc-store *::after { box-sizing: border-box; }
#gc-store [hidden] { display: none !important; }
#gc-store .store-intro { text-align: center; max-width: 900px; margin: 0 auto 20px; }
#gc-store h1 { margin: 8px 0 14px; }
#gc-store .store-intro p { line-height: 1.5; margin: 8px 0; }
#gc-store a, #gc-store a:visited { color: inherit; }
#gc-store .store-intro-secondary { font-size: 14px; }
#gc-store .store-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px; background: #17466e; border-radius: 8px; }
#gc-store .store-filters label { display: flex; flex: 1 1 170px; flex-direction: column; gap: 7px; font-weight: bold; text-align: left; }
#gc-store .store-filters input, #gc-store .store-filters select { width: 100%; min-width: 0; height: 42px; border: 1px solid #b9cad8; border-radius: 4px; background: #fff; color: #142c3e; padding: 8px 10px; font: 16px Arial, sans-serif; }
#gc-store button { cursor: pointer; }
#gc-store #store-clear, #gc-store #store-close { min-height: 42px; border: 1px solid #c4cdd6; border-radius: 5px; background: linear-gradient(#fff, #d5dce2); color: #132b40; font: bold 14px Arial, sans-serif; padding: 10px 16px; }
#gc-store #store-date-help { width: 100%; margin: 0; font-size: 13px; line-height: 1.4; }
#gc-store #store-results { margin: 14px 0; font-size: 14px; }
#gc-store #store-empty { padding: 24px; background: #17466e; border-radius: 6px; line-height: 1.5; }
#gc-store .store-category > h2 { padding: 16px 0 12px; margin: 12px 0 0; border-top: 1px solid #ffffff65; font-size: 26px; text-align: left; }
#gc-store .store-group > h3 { margin: 0; padding: 16px 0 12px; font-size: 22px; text-align: left; }
#gc-store .store-group + .store-group { margin-top: 24px; border-top: 1px solid #ffffff65; }
#gc-store .store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
#gc-store .store-tile { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; padding: 10px 6px; color: #fff; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: center; font: inherit; line-height: 1.35; }
#gc-store .store-tile:hover { border-color: #ffffff80; }
#gc-store .store-tile-photo { display: flex; width: 100%; height: 150px; align-items: center; justify-content: center; margin-bottom: 10px; }
#gc-store .store-tile-photo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .15s ease; }
#gc-store .store-tile:hover img { transform: scale(1.06); }
#gc-store .store-tile-name { font-weight: bold; margin-bottom: 5px; overflow-wrap: anywhere; }
#gc-store .store-tile-meta { display: block; font-size: 13px; }
#gc-store .store-tile-action { display: block; font: bold 12px Arial, sans-serif; margin-top: auto; padding-top: 10px; }
#gc-store :is(button, a, input, select, summary):focus-visible { outline: 3px solid #ffdf57; outline-offset: 3px; }
#gc-store .store-disclosure { border-top: 1px solid #ffffff65; padding-top: 18px; margin: 24px 0 4px; font-size: 13px; line-height: 1.5; }
html.store-modal-open, html.store-modal-open body { overflow: hidden; }
#gc-store #store-dialog { width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 7px; border: 0; border-radius: 22px; background: linear-gradient(115deg, #fff 8%, #a5a5a5 28%, #fdfdfd 46%, #bdbdbd 70%, #fff 92%); color: #fff; overflow: auto; box-shadow: 0 18px 80px #0009; }
#gc-store #store-dialog::backdrop { background: #020912de; }
#gc-store .store-dialog-inner { border: 5px solid #080d12; border-radius: 16px; background: #16476b; padding: 22px; }
#gc-store .store-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
#gc-store .store-eyebrow { font: bold 12px Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #c9deed; margin: 0 0 6px; }
#gc-store #store-title { font-size: clamp(23px, 3vw, 32px); margin: 0; line-height: 1.15; }
#gc-store #store-close { flex-shrink: 0; }
#gc-store #store-close span { margin-left: 8px; font-size: 20px; line-height: 14px; }
#gc-store .store-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
#gc-store .store-detail-photo { margin: 0; padding: 18px; background: #0b2e49; border: 1px solid #6488a3; border-radius: 10px; align-self: start; }
#gc-store #store-image { display: block; width: 100%; height: 350px; object-fit: contain; }
#gc-store .store-detail-photo figcaption { margin-top: 18px; color: #d1e2ee; font-size: 13px; line-height: 1.45; text-align: center; }
#gc-store #store-facts { margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
#gc-store #store-facts dt { font-size: 12px; color: #c9deed; }
#gc-store #store-facts dd { margin: 3px 0 0; font-weight: bold; }
#gc-store .store-detail-info h3 { margin: 0 0 8px; font-size: 22px; }
#gc-store .store-match-note, #gc-store .store-listing-note { font-size: 13px; line-height: 1.5; color: #d1e2ee; margin: 8px 0 16px; }
#gc-store .store-option { padding: 16px; margin-bottom: 12px; border: 1px solid #91aec2; border-radius: 8px; background: #f4f7fa; color: #19374d; }
#gc-store .store-option h4 { margin: 0; font-size: 19px; }
#gc-store .store-option p { margin: 7px 0 13px; line-height: 1.45; font-size: 15px; }
#gc-store .store-option a, #gc-store .store-option a:visited { display: block; padding: 12px; border: 1px solid #173e5b; border-radius: 5px; background: #16476b; color: #fff; text-decoration: none; text-align: center; font: bold 14px/1.4 Arial, sans-serif; }
#gc-store .store-option a:hover { background: #0b2e49; text-decoration: underline; }
#gc-store .store-guide { border-top: 1px solid #6488a3; margin-top: 22px; padding-top: 16px; }
#gc-store .store-guide summary { cursor: pointer; padding: 5px 0; font-weight: bold; }
#gc-store .store-guide dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; line-height: 1.45; margin-bottom: 0; }
#gc-store .store-guide dt { font-weight: bold; }
#gc-store .store-guide dd { margin: 4px 0 0; color: #d1e2ee; font-size: 14px; }
@media (max-width: 640px) {
    #gc-store { padding: 12px; border-radius: 1px; }
    #gc-store h1 { font-size: 26px; }
    #gc-store .store-filters { padding: 12px; gap: 10px; }
    #gc-store .store-filters label { flex-basis: calc(50% - 10px); }
    #gc-store .store-filters label:nth-child(2) { order: -1; flex-basis: 100%; }
    #gc-store #store-clear { width: 100%; }
    #gc-store .store-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
    #gc-store #store-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 5px; border-radius: 17px; }
    #gc-store .store-dialog-inner { padding: 14px; border-width: 3px; border-radius: 12px; }
    #gc-store .store-dialog-header { gap: 10px; margin-bottom: 16px; }
    #gc-store #store-close { padding: 9px; }
    #gc-store #store-close span { margin-left: 3px; }
    #gc-store .store-detail-layout { grid-template-columns: 1fr; gap: 18px; }
    #gc-store #store-image { height: 220px; }
    #gc-store .store-guide dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    #gc-store .store-tile-photo img { transition: none; }
}
