/* ROG Contact — cookie strip, keep-in-touch cards, inline rows.
   Uses the theme's tokens (--rog-*) with fallbacks so it holds up alone. */

.rogc-card,
.rogc-cookie,
.rogc-inline,
.rogc-account {
	font-family: var(--rog-font-body, Inter, -apple-system, 'Segoe UI', sans-serif);
	color: var(--rog-text, #f0f0f0);
}

/* The strip is display:flex below, which would beat the UA's [hidden]
   rule — so say it explicitly, or "Accept all" hides nothing. */
.rogc-cookie[hidden],
.rogc-card[hidden] { display: none !important; }

/* ── strip ─────────────────────────────────────────────────────────────── */
.rogc-cookie {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 14px 24px;
	background: var(--rog-bg-light, #383838);
	border-top: 1px solid var(--rog-border, #4a4a4a);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.rogc-cookie p { margin: 0; flex: 1 1 320px; font-size: .9rem; line-height: 1.45; }
.rogc-cookie a { color: var(--rog-text-muted, #a0a0a0); }

/* ── floating card ─────────────────────────────────────────────────────── */
.rogc-card {
	position: fixed; right: 24px; bottom: 24px; z-index: 9991;
	width: 380px; max-width: calc(100% - 48px);
	background: var(--rog-bg-light, #383838);
	border: 1px solid var(--rog-border, #4a4a4a);
	border-radius: var(--rog-radius, 6px);
	padding: 20px 22px 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.rogc-card--cart {
	position: static; width: auto; max-width: 640px; margin: 0 0 24px;
	box-shadow: none;
}
.rogc-band { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rog-primary, #b50505); border-radius: 6px 6px 0 0; }
.rogc-card h4 { font-family: var(--rog-font-heading, Georgia, serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; margin: 0 0 6px; }
.rogc-card p { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; color: var(--rog-text-muted, #a0a0a0); }
.rogc-x {
	position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
	border: 0; background: transparent; color: var(--rog-text-muted, #a0a0a0);
	font-size: 20px; line-height: 1; border-radius: 50%; cursor: pointer;
}
.rogc-x:hover, .rogc-x:focus-visible { background: var(--rog-bg-lighter, #434343); color: var(--rog-text, #f0f0f0); outline: 2px solid var(--rog-gold, #c8a415); outline-offset: 1px; }

/* ── rows ──────────────────────────────────────────────────────────────── */
.rogc-rows { display: grid; gap: 8px; margin: 12px 0 14px; }
.rogc-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .92rem; line-height: 1.35; cursor: pointer; }
.rogc-row small { display: block; color: var(--rog-text-muted, #a0a0a0); font-size: .8rem; margin-top: 1px; }
.rogc-row input[type=checkbox] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rog-primary, #b50505); cursor: pointer; }
.rogc-row input[type=checkbox]:focus-visible { outline: 2px solid var(--rog-gold, #c8a415); outline-offset: 2px; }

/* ── controls ──────────────────────────────────────────────────────────── */
.rogc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rogc-btn {
	font-family: inherit; font-weight: 600; font-size: .92rem;
	padding: 10px 16px; border-radius: var(--rog-radius, 6px);
	border: 1px solid transparent; cursor: pointer;
}
.rogc-btn--primary { background: var(--rog-primary, #b50505); color: #fff; }
.rogc-btn--primary:hover { background: var(--rog-primary-dark, #8a0404); }
.rogc-btn--primary:disabled { background: var(--rog-bg-lighter, #434343); color: var(--rog-text-muted, #a0a0a0); cursor: not-allowed; }
.rogc-btn--ghost { background: transparent; color: var(--rog-text, #f0f0f0); border-color: var(--rog-border, #4a4a4a); }
.rogc-btn--ghost:hover { background: var(--rog-bg-lighter, #434343); }
.rogc-btn:focus-visible { outline: 2px solid var(--rog-gold, #c8a415); outline-offset: 2px; }
.rogc-link { background: none; border: 0; color: var(--rog-text-muted, #a0a0a0); font-family: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 10px 4px; }
.rogc-link:hover { color: var(--rog-text, #f0f0f0); }
.rogc-fine { font-size: .76rem !important; color: var(--rog-text-muted, #a0a0a0); margin: 10px 0 0 !important; }
.rogc-fine a { color: inherit; }
.rogc-done { margin: 6px 0 0; color: var(--rog-text, #f0f0f0); }
.rogc-card input[type=email] {
	width: 100%; font: 16px inherit; padding: 10px 12px;
	background: var(--rog-bg, #2e2e2e); color: var(--rog-text, #f0f0f0);
	border: 1px solid var(--rog-border, #4a4a4a); border-radius: var(--rog-radius, 6px);
}
.rogc-card input[type=email]:focus { outline: 2px solid var(--rog-gold, #c8a415); outline-offset: 1px; border-color: transparent; }
.rogc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── inline (checkout / register / my account) ─────────────────────────── */
.rogc-inline { border: 1px solid var(--rog-border, #4a4a4a); border-radius: var(--rog-radius, 6px); padding: 14px 16px 10px; margin: 18px 0; }
.rogc-inline legend { padding: 0 6px; font-weight: 600; }
.rogc-inline-intro { margin: 0 0 6px; font-size: .9rem; color: var(--rog-text-muted, #a0a0a0); }
.rogc-inline-intro a { color: inherit; }
.rogc-inline-note { font-size: .9rem; color: var(--rog-text-muted, #a0a0a0); }
.rogc-account .rogc-rows { max-width: 520px; }

/* ── phone: bottom sheet ───────────────────────────────────────────────── */
@media (max-width: 640px) {
	.rogc-card:not(.rogc-card--cart) {
		right: 0; left: 0; bottom: 0; width: auto; max-width: none;
		border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
		padding: 18px 20px 22px; max-height: 45vh; overflow-y: auto;
	}
	.rogc-card:not(.rogc-card--cart) .rogc-btn--primary { width: 100%; padding: 13px 16px; }
	.rogc-cookie { padding: 12px 16px; }
	.rogc-cookie .rogc-actions { width: 100%; }
	.rogc-cookie .rogc-btn { flex: 1; }
}

/* ── motion ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.rogc-card:not([hidden]), .rogc-cookie:not([hidden]) { animation: rogc-rise .35s ease both; }
}
@keyframes rogc-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
