/* GordStore: out-of-stock drawer + Telegram-style product card + consent */

/* 1. «Нет в наличии» */
.gs-soldout { margin-top: 34px; }
.gs-soldout details { border: 1px solid var(--line-bright, #ffffff26); border-radius: 18px; background: var(--surface, #1d1f22); }
.gs-soldout summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer;
  font-size: 15px; letter-spacing: -.02em; user-select: none; }
.gs-soldout summary::-webkit-details-marker { display: none; }
.gs-soldout-count { min-width: 28px; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft, #fa604b12);
  color: var(--accent, #fa604b); font-size: 12px; text-align: center; }
.gs-soldout-caret { margin-left: auto; transition: rotate .25s ease; color: var(--muted, #a0a2a8); }
.gs-soldout details[open] .gs-soldout-caret { rotate: 180deg; }
.gs-soldout-note { padding: 0 22px 14px; color: var(--muted, #a0a2a8); font-size: 12px; }
.gs-soldout-grid { padding: 0 16px 18px; }
.gs-soldout-grid > * { filter: grayscale(.55); opacity: .78; transition: opacity .2s, filter .2s; }
.gs-soldout-grid > *:hover { filter: none; opacity: 1; }

/* 2. Product card: table + collapsible description */
.gs-spec { width: 100%; border-collapse: separate; border-spacing: 0; margin: 4px 0 16px; overflow: hidden;
  border: 1px solid var(--line-bright, #ffffff26); border-radius: 14px; font-size: 12.5px; }
.gs-spec td { padding: 10px 14px; border-bottom: 1px solid var(--line, #ffffff12); vertical-align: middle; }
.gs-spec tr:last-child td { border-bottom: 0; }
.gs-spec td:first-child { color: var(--muted, #a0a2a8); white-space: nowrap; }
.gs-spec td:first-child .icon { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--accent, #fa604b); }
.gs-spec td:last-child { text-align: right; }
.gs-spec tr:nth-child(odd) td { background: #ffffff05; }

.gs-desc, .gs-terms { border: 1px solid var(--line-bright, #ffffff26); border-radius: 14px; margin-bottom: 16px; background: #ffffff04; }
.gs-desc summary, .gs-terms summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer; }
.gs-desc summary::-webkit-details-marker, .gs-terms summary::-webkit-details-marker { display: none; }
.gs-desc summary .icon:first-child { width: 17px; height: 17px; color: var(--accent, #fa604b); }
.gs-desc-caret { margin-left: auto; width: 17px !important; height: 17px !important; color: var(--muted, #a0a2a8); transition: rotate .25s ease; }
.gs-desc[open] .gs-desc-caret, .gs-terms[open] .gs-desc-caret { rotate: 180deg; }
.gs-desc #productDescription { padding: 0 14px 14px; max-height: none; }
.gs-terms-body { padding: 0 14px 14px; white-space: pre-line; color: var(--muted, #a0a2a8); font-size: 12px; max-height: 260px; overflow: auto;
  border-left: 3px solid var(--accent, #fa604b); margin: 0 14px 14px; padding: 4px 0 4px 12px; }

/* 3. Consent before payment */
.gs-consent { margin: 14px 0 12px; }
.gs-consent .gs-terms { margin-bottom: 10px; }
/* ".dialog label" in shop.css sets display:block + margin; this selector is stronger. */
.gs-consent label.gs-consent-check { display: flex; gap: 11px; align-items: flex-start; margin: 0; cursor: pointer;
  font-size: 12px; line-height: 1.6; color: var(--text, #f0efec); }
.gs-consent .gs-consent-check input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--line-bright, #ffffff40); border-radius: 5px;
  background: #ffffff08 center / 12px 12px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.gs-consent .gs-consent-check input[type="checkbox"]:hover { border-color: var(--accent, #fa604b); }
.gs-consent .gs-consent-check input[type="checkbox"]:checked { border-color: var(--accent, #fa604b); background-color: var(--accent, #fa604b);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.gs-consent .gs-consent-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent, #fa604b); outline-offset: 2px; }
.gs-consent.gs-shake .gs-consent-check input[type="checkbox"]:not(:checked) { border-color: var(--accent-hover, #ff7a66); }
.gs-consent-check a { color: var(--accent, #fa604b); text-decoration: underline; text-underline-offset: 3px; }
.gs-consent-warn { margin-top: 8px; color: var(--accent-hover, #ff7a66); font-size: 12px; }
.gs-locked { opacity: .45; }
.gs-shake { animation: gs-shake .45s ease; }
@keyframes gs-shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .gs-shake { animation: none; } }
