/* MaxDob Reptiles — additions for the PHP site (loaded after site.css). */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Flash messages */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flash { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.flash svg { flex-shrink: 0; }
.flash span { flex: 1; }
.flash a { text-decoration: underline; white-space: nowrap; }
.flash--success { background: #e9f5ec; color: #1f6a3f; border: 1px solid #c8e2d0; }
.flash--error { background: #fbecea; color: #8a2b1f; border: 1px solid #f0c8c1; }

/* Forms */
.field-label.has-error input, .field-label.has-error textarea, .field-label.has-error select { border-color: #c2452f !important; background: #fff7f5 !important; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: #a32020; font-size: 13px; font-weight: 600; }
.req { color: var(--clay); }
.checkout-field-grid > label { margin-top: 19px; }
.checkout-fieldset .field-label small { font-weight: 400; color: var(--quiet); }
.mega-wrap button svg { display: inline; }

/* Mega menu (server rendered groups) */
.mega-pet-group { display: flex; }
.mobile-megas details { border-bottom: 1px solid var(--line); }
.mobile-megas summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 12px 0; }
.mobile-megas summary::-webkit-details-marker { display: none; }
.mobile-megas summary::after { content: '+'; font-weight: 700; font-size: 18px; }
.mobile-megas details[open] summary::after { content: '–'; }
.mobile-megas .mega-head { margin: 10px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--quiet); }
.mobile-megas .mega-acc-body a { border-bottom: 0; padding: 8px 4px; }

/* Long text */
.prose-more { margin-top: 4px; }
.prose-more > summary { list-style: none; display: inline-flex; margin: 4px 0 12px; }
.prose-more > summary::-webkit-details-marker { display: none; }
.prose-more .when-open { display: none; }
.prose-more[open] .when-open { display: inline; }
.prose-more[open] .when-closed { display: none; }
.prose-more[open] > summary { order: 2; }
.detail-copy details > summary { list-style-position: inside; }

/* Product */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: var(--line); display: inline-flex; }
.stars .star.on { color: var(--clay); }
.stars .star.on svg { fill: currentColor; }
.rating-field { border: 0; padding: 0; margin: 19px 0 0; }
.rating-field legend { font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { cursor: pointer; color: var(--line); display: inline-flex; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--clay); }
.rating-input label:hover svg, .rating-input label:hover ~ label svg, .rating-input input:checked ~ label svg { fill: currentColor; }
.rating-input input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.review-body p { margin-bottom: 8px; }
.stock-line[data-stock-line]:empty { display: none; }
.color-swatches button { cursor: pointer; }
.buy-row .button span { pointer-events: none; }

/* Cart */
.cart-quantity { display: inline-flex; align-items: center; }
.cart-quantity form { display: inline-flex; }
.cart-row-end form { display: inline-flex; }

/* Pages */
.pc-subhead { font-size: 28px; margin-bottom: 12px; }
.restriction-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--quiet); }
.restriction-list strong { color: var(--ink); }
.pc-updated { margin-top: 26px; font-size: 13px; color: var(--quiet); }
.account-tabs a { display: inline-flex; align-items: center; justify-content: center; }
.account-actions form { display: inline; }
.order-row-meta a { text-decoration: underline; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.video-caption { margin-top: 12px; color: var(--quiet); font-size: 15px; }
.explain-figure img { width: 100%; }

/* Shop by Category: keep all columns on one row */
.mega-cats { flex-wrap: nowrap; width: max-content; max-width: min(1240px, 94vw); }
.mega-cats .mega-col { min-width: 0; flex: 1 1 0; padding-inline: 16px; }
