/**
 * GDPR Notice / Cookie Consent Popup Styles
 * 
 * Depends on: Swift Commerce-frontend.css (design tokens)
 * Component-specific styles leveraging unified design system.
 * 
 * @version 2.0.0
 * @since Swift Commerce 1.0.0
 */

/* ==========================================================================
   1. CSS Variables (Component-Specific Overrides)
   ========================================================================== */

.swift-commerce-gdpr-notice {
  /* Component variables - can be overridden via inline styles */
  --gdpr-primary: var(--sc-primary, #7c3aed);
  --gdpr-bg: var(--sc-background, #ffffff);
  --gdpr-text: var(--sc-foreground, #1f2937);
  --gdpr-radius: var(--sc-radius-lg, 8px);
  --gdpr-shadow: var(--sc-shadow-md);
  --gdpr-shadow-lg: var(--sc-shadow-lg);
  
  /* Hidden by default - JS will show it if needed (prevents flash on page load) */
  display: none;
  position: fixed;
  z-index: var(--sc-z-modal, 1050);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Show when JavaScript has determined it should be visible */
.swift-commerce-gdpr-notice.swift-commerce-gdpr-visible {
  display: block;
}

/* Boxed layout needs flex centering when visible */
.swift-commerce-gdpr-notice.swift-commerce-gdpr-visible.swift-commerce-gdpr-boxed {
  display: flex;
}

/* Reset child elements */
.swift-commerce-gdpr-notice *,
.swift-commerce-gdpr-notice *::before,
.swift-commerce-gdpr-notice *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.swift-commerce-gdpr-notice[aria-hidden="true"] {
  display: none !important;
}

/* ==========================================================================
   2. Container
   ========================================================================== */

.swift-commerce-gdpr-container {
  background: var(--gdpr-bg);
  color: var(--gdpr-text);
  border-radius: var(--gdpr-radius);
  box-shadow: var(--gdpr-shadow-lg);
  padding: var(--sc-space-5) var(--sc-space-6);
  max-width: 100%;
}

/* Overlay */
.swift-commerce-gdpr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* ==========================================================================
   3. Icon
   ========================================================================== */

.swift-commerce-gdpr-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gdpr-primary);
  border-radius: var(--sc-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-white);
}

.swift-commerce-gdpr-icon svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   4. Content
   ========================================================================== */

.swift-commerce-gdpr-content {
  flex: 1;
  min-width: 0;
}

.swift-commerce-gdpr-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  color: var(--gdpr-text) !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  border: none !important;
  background: none !important;
}

.swift-commerce-gdpr-message {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--gdpr-text) !important;
  opacity: 0.8;
  font-size: 14px !important;
  line-height: 1.625 !important;
  font-weight: 400 !important;
}

.swift-commerce-gdpr-privacy-link {
  color: var(--gdpr-primary) !important;
  text-decoration: underline !important;
  margin-left: var(--sc-space-1) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  transition: opacity var(--sc-transition-normal) var(--sc-ease-in-out);
}

.swift-commerce-gdpr-privacy-link:hover,
.swift-commerce-gdpr-privacy-link:focus {
  opacity: 0.8;
  text-decoration: none !important;
  color: var(--gdpr-primary) !important;
  background: none !important;
}

/* ==========================================================================
   5. Actions & Buttons
   ========================================================================== */

.swift-commerce-gdpr-actions {
  display: flex;
  gap: var(--sc-space-2-5);
  flex-wrap: wrap;
  margin-top: var(--sc-space-4);
}

/* Base Button - Extends framework tokens */
.swift-commerce-gdpr-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 20px !important;
  border-radius: calc(var(--gdpr-radius) - 2px) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  transition: all var(--sc-transition-normal) var(--sc-ease-in-out) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  background-image: none !important;
}

.swift-commerce-gdpr-btn:focus-visible {
  outline: 2px solid var(--gdpr-primary) !important;
  outline-offset: 2px !important;
}

/* Accept Button - Primary */
.swift-commerce-gdpr-btn-accept {
  background: var(--gdpr-primary) !important;
  background-color: var(--gdpr-primary) !important;
  color: var(--sc-white) !important;
}

.swift-commerce-gdpr-btn-accept:hover,
.swift-commerce-gdpr-btn-accept:focus {
  filter: brightness(1.1) !important;
  background: var(--gdpr-primary) !important;
  background-color: var(--gdpr-primary) !important;
  color: var(--sc-white) !important;
}

/* Decline Button - Outline */
.swift-commerce-gdpr-btn-decline {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid var(--gdpr-text) !important;
  color: var(--gdpr-text) !important;
  opacity: 0.7;
}

.swift-commerce-gdpr-btn-decline:hover,
.swift-commerce-gdpr-btn-decline:focus {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05) !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--gdpr-text) !important;
}

/* Settings Button - Ghost */
.swift-commerce-gdpr-btn-settings {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--gdpr-primary) !important;
  text-decoration: underline !important;
  padding: 10px 12px !important;
  border: none !important;
}

.swift-commerce-gdpr-btn-settings:hover,
.swift-commerce-gdpr-btn-settings:focus {
  text-decoration: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--gdpr-primary) !important;
}

/* Save Button - Primary */
.swift-commerce-gdpr-btn-save {
  background: var(--gdpr-primary) !important;
  background-color: var(--gdpr-primary) !important;
  color: var(--sc-white) !important;
}

.swift-commerce-gdpr-btn-save:hover,
.swift-commerce-gdpr-btn-save:focus {
  filter: brightness(1.1) !important;
  background: var(--gdpr-primary) !important;
  background-color: var(--gdpr-primary) !important;
  color: var(--sc-white) !important;
}

/* ==========================================================================
   7. Settings Panel
   ========================================================================== */

.swift-commerce-gdpr-settings-panel {
  margin-top: var(--sc-space-5);
  padding: var(--sc-space-5);
  border-top: 1px solid var(--sc-border);
  display: none;
  background: var(--gdpr-bg);
  border-radius: var(--gdpr-radius);
}

.swift-commerce-gdpr-settings-panel.swift-commerce-gdpr-settings-open {
  display: block;
}

.swift-commerce-gdpr-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sc-space-4);
  padding-bottom: var(--sc-space-3);
  border-bottom: 1px solid var(--sc-border);
}

.swift-commerce-gdpr-settings-header h4 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--gdpr-text) !important;
  border: none !important;
  background: none !important;
}

.swift-commerce-gdpr-settings-close {
  background: var(--sc-gray-100) !important;
  border: 1px solid var(--sc-border) !important;
  cursor: pointer;
  padding: var(--sc-space-2) !important;
  margin: 0 !important;
  color: var(--gdpr-text) !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  line-height: 1 !important;
  border-radius: var(--sc-radius) !important;
  transition: all var(--sc-transition-normal) var(--sc-ease-in-out);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
}

.swift-commerce-gdpr-settings-close:hover {
  background: var(--sc-gray-200) !important;
  color: var(--gdpr-text) !important;
}

.swift-commerce-gdpr-settings-close svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke-width: 2.5;
}

/* ==========================================================================
   8. Categories
   ========================================================================== */

.swift-commerce-gdpr-categories {
  display: flex;
  flex-direction: column;
  gap: var(--sc-space-3);
  max-height: 300px;
  overflow-y: auto;
  padding-right: var(--sc-space-1);
}

/* Scrollbar */
.swift-commerce-gdpr-categories::-webkit-scrollbar {
  width: 6px;
}

.swift-commerce-gdpr-categories::-webkit-scrollbar-track {
  background: var(--sc-gray-100);
  border-radius: var(--sc-radius);
}

.swift-commerce-gdpr-categories::-webkit-scrollbar-thumb {
  background: var(--sc-gray-300);
  border-radius: var(--sc-radius);
}

.swift-commerce-gdpr-categories::-webkit-scrollbar-thumb:hover {
  background: var(--sc-gray-400);
}

.swift-commerce-gdpr-category {
  padding: var(--sc-space-3) var(--sc-space-4);
  background: var(--sc-gray-50);
  border-radius: calc(var(--gdpr-radius) - 2px);
  border: 1px solid var(--sc-border);
}

.swift-commerce-gdpr-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sc-space-3);
}

.swift-commerce-gdpr-category-label {
  display: flex;
  align-items: center;
  gap: var(--sc-space-2-5);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.swift-commerce-gdpr-category-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--gdpr-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.swift-commerce-gdpr-category-name {
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--gdpr-text) !important;
}

.swift-commerce-gdpr-required {
  font-size: 12px !important;
  opacity: 0.6;
  font-weight: 400 !important;
  margin-left: 4px;
  color: var(--gdpr-text) !important;
}

.swift-commerce-gdpr-category-description {
  margin: 4px 0 0 28px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.625 !important;
  opacity: 0.7;
  color: var(--gdpr-text) !important;
}

.swift-commerce-gdpr-settings-actions {
  margin-top: var(--sc-space-4);
  padding-top: var(--sc-space-4);
  border-top: 1px solid var(--sc-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--sc-space-2-5);
}

/* ==========================================================================
   9. Position Variants
   ========================================================================== */

/* --- Boxed Layout ---
   Constrains the banner to a percentage width, centered on screen.
   Uses margin auto (not transform) to avoid conflicts with slide animations. */
.swift-commerce-gdpr-boxed.swift-commerce-gdpr-bottom,
.swift-commerce-gdpr-boxed.swift-commerce-gdpr-top {
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.swift-commerce-gdpr-boxed.swift-commerce-gdpr-bottom {
  bottom: var(--sc-space-4, 16px);
}

.swift-commerce-gdpr-boxed.swift-commerce-gdpr-top {
  top: var(--sc-space-4, 16px);
}

.swift-commerce-gdpr-boxed .swift-commerce-gdpr-container {
  width: var(--gdpr-boxed-width, 80%);
  max-width: var(--gdpr-boxed-width, 80%);
  border-radius: var(--gdpr-radius, 12px);
  box-shadow: var(--gdpr-shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.15));
}

/* Bottom Banner (full-width) */
.swift-commerce-gdpr-bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-container {
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: var(--sc-space-5);
  padding: var(--sc-space-4) var(--sc-space-10);
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* Settings panel in full-width banners - inline categories */
.swift-commerce-gdpr-bottom .swift-commerce-gdpr-settings-panel,
.swift-commerce-gdpr-top .swift-commerce-gdpr-settings-panel {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--sc-space-5) var(--sc-space-10);
  border-radius: 0;
  border-top: 1px solid var(--sc-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-settings-panel {
  bottom: 0;
}

.swift-commerce-gdpr-top .swift-commerce-gdpr-settings-panel {
  top: 0;
  border-top: none;
  border-bottom: 1px solid var(--sc-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Inline categories for full-width banners */
.swift-commerce-gdpr-bottom .swift-commerce-gdpr-categories,
.swift-commerce-gdpr-top .swift-commerce-gdpr-categories {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sc-space-3);
  max-height: none;
  overflow: visible;
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-category,
.swift-commerce-gdpr-top .swift-commerce-gdpr-category {
  flex: 0 0 auto;
  padding: var(--sc-space-2) var(--sc-space-4);
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-category-description,
.swift-commerce-gdpr-top .swift-commerce-gdpr-category-description {
  display: none;
}

/* Hide main popup content when settings are open */
.swift-commerce-gdpr-bottom .swift-commerce-gdpr-container.swift-commerce-gdpr-settings-visible > *:not(.swift-commerce-gdpr-settings-panel),
.swift-commerce-gdpr-top .swift-commerce-gdpr-container.swift-commerce-gdpr-settings-visible > *:not(.swift-commerce-gdpr-settings-panel) {
  display: none;
}

.swift-commerce-gdpr-bottom .swift-commerce-gdpr-settings-actions,
.swift-commerce-gdpr-top .swift-commerce-gdpr-settings-actions {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Top Banner */
.swift-commerce-gdpr-top {
  top: 0;
  left: 0;
  right: 0;
}

.swift-commerce-gdpr-top .swift-commerce-gdpr-container {
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: var(--sc-space-5);
  padding: var(--sc-space-4) var(--sc-space-10);
}

.swift-commerce-gdpr-top .swift-commerce-gdpr-actions {
  margin-top: 0;
  flex-shrink: 0;
}

/* Bottom Left */
.swift-commerce-gdpr-bottom-left {
  bottom: var(--sc-space-5);
  left: var(--sc-space-5);
}

.swift-commerce-gdpr-bottom-left .swift-commerce-gdpr-container {
  max-width: 400px;
}

/* Bottom Right */
.swift-commerce-gdpr-bottom-right {
  bottom: var(--sc-space-5);
  right: var(--sc-space-5);
}

.swift-commerce-gdpr-bottom-right .swift-commerce-gdpr-container {
  max-width: 400px;
}

/* Center Modal */
.swift-commerce-gdpr-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
}

/* ==========================================================================
   10. Template Variants
   ========================================================================== */

/* Minimal */
.swift-commerce-gdpr-minimal .swift-commerce-gdpr-container {
  padding: var(--sc-space-4) var(--sc-space-5);
}

.swift-commerce-gdpr-minimal .swift-commerce-gdpr-icon {
  display: none;
}

.swift-commerce-gdpr-minimal .swift-commerce-gdpr-title {
  font-size: 16px;
}

.swift-commerce-gdpr-minimal .swift-commerce-gdpr-message {
  font-size: 12px;
}

.swift-commerce-gdpr-minimal .swift-commerce-gdpr-btn {
  padding: 8px 16px;
  font-size: 12px;
}

/* Magazine — editorial newspaper layout */
.swift-commerce-gdpr-magazine {
  --gdpr-radius: 0px;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-container {
  border-radius: 0 !important;
  padding: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  display: grid !important;
  grid-template-columns: 1fr 200px;
  grid-template-rows: auto;
  gap: 0;
}

/* Hide the icon — magazine doesn't use it */
.swift-commerce-gdpr-magazine .swift-commerce-gdpr-icon {
  display: none !important;
}

/* Content area — left column */
.swift-commerce-gdpr-magazine .swift-commerce-gdpr-content {
  padding: 28px 24px 28px 32px;
  position: relative;
}

/* "PRIVACY NOTICE" badge via ::before — must be block to sit on its own line */
.swift-commerce-gdpr-magazine .swift-commerce-gdpr-title::before {
  content: 'PRIVACY NOTICE';
  display: inline-block !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  background: var(--gdpr-text, #1a1a1a) !important;
  color: var(--gdpr-bg, #ffffff) !important;
  padding: 3px 10px !important;
  margin-bottom: 14px !important;
  line-height: 1.5 !important;
  /* Force it onto its own line */
  float: none !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-title {
  font-family: 'Fraunces', 'DM Serif Display', 'Georgia', serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
  /* Ensure badge + title stack vertically */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-message {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  opacity: 0.7 !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-privacy-link {
  display: block !important;
  margin-top: 16px !important;
  margin-left: 0 !important;
  font-size: 0.8rem !important;
  opacity: 0.6;
}

/* Buttons area — right column, stacked vertically */
.swift-commerce-gdpr-magazine .swift-commerce-gdpr-actions {
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding: 28px 20px !important;
  justify-content: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-btn {
  width: 100% !important;
  border-radius: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 10px 16px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-btn-accept {
  background: var(--gdpr-text, #1a1a1a) !important;
  background-color: var(--gdpr-text, #1a1a1a) !important;
  color: var(--gdpr-bg, #ffffff) !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-btn-accept:hover {
  background: var(--gdpr-text, #1a1a1a) !important;
  background-color: var(--gdpr-text, #1a1a1a) !important;
  filter: brightness(1.2) !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-btn-decline {
  border: 1px solid var(--gdpr-text, #1a1a1a) !important;
  color: var(--gdpr-text, #1a1a1a) !important;
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-btn-settings {
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: var(--gdpr-text, #1a1a1a) !important;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none !important;
  opacity: 0.7 !important;
  padding: 10px 16px !important;
}

/* Settings panel inside magazine — match editorial aesthetic */
.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-panel {
  grid-column: 1 / -1;
  border-radius: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.12) !important;
  margin-top: 0 !important;
  padding: 24px 32px !important;
  font-family: 'DM Sans', sans-serif !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-header h4 {
  font-family: 'Fraunces', 'DM Serif Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-close {
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 0 !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-close:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-category {
  border-radius: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  padding: 14px 16px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-category-name {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-required {
  font-family: 'DM Sans', sans-serif !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-category-description {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-category-label input[type="checkbox"] {
  accent-color: var(--gdpr-text, #1a1a1a) !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding-top: 16px !important;
  margin-top: 16px !important;
}

.swift-commerce-gdpr-magazine .swift-commerce-gdpr-settings-actions .swift-commerce-gdpr-btn {
  border-radius: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  padding: 12px 24px !important;
  background: var(--gdpr-text, #1a1a1a) !important;
  background-color: var(--gdpr-text, #1a1a1a) !important;
  color: var(--gdpr-bg, #ffffff) !important;
}

/* Magazine stats row */
.swift-commerce-gdpr-magazine-stats {
  display: flex !important;
  gap: 20px !important;
  margin: 16px 0 12px 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.swift-commerce-gdpr-magazine-stat {
  display: flex !important;
  flex-direction: column !important;
}

.swift-commerce-gdpr-magazine-stat-number {
  font-family: 'Fraunces', 'DM Serif Display', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--gdpr-text, #1a1a1a) !important;
}

.swift-commerce-gdpr-magazine-stat-label {
  font-size: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  opacity: 0.5 !important;
  color: var(--gdpr-text, #1a1a1a) !important;
  margin-top: 2px !important;
}

/* Magazine detail link */
.swift-commerce-gdpr-magazine-detail-link {
  display: inline-block !important;
  font-size: 12px !important;
  color: var(--gdpr-text, #1a1a1a) !important;
  opacity: 0.6 !important;
  text-decoration: underline !important;
  margin-top: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
}

.swift-commerce-gdpr-magazine-detail-link:hover {
  opacity: 1 !important;
  color: var(--gdpr-text, #1a1a1a) !important;
}

/* Magazine footer text */
.swift-commerce-gdpr-magazine-footer {
  font-size: 10px !important;
  line-height: 1.4 !important;
  opacity: 0.4 !important;
  margin-top: 4px !important;
  color: var(--gdpr-text, #1a1a1a) !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ── Magazine position overrides ── */

/* Center — remove padding so overlay fills edge-to-edge, no "border" gap */
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-center {
  max-width: 620px;
  padding: 0 !important;
}

/* Bottom / Top — full-width editorial banner */
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom,
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-top {
  left: 0;
  right: 0;
}

.swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom .swift-commerce-gdpr-container,
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-top .swift-commerce-gdpr-container {
  display: grid !important;
  grid-template-columns: 1fr 240px;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}

.swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom .swift-commerce-gdpr-actions,
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-top .swift-commerce-gdpr-actions {
  margin-top: 0 !important;
  flex-shrink: unset;
}

/* Bottom-left / Bottom-right — keep two-column but widen the container */
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-left .swift-commerce-gdpr-container,
.swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-right .swift-commerce-gdpr-container {
  max-width: 540px;
  grid-template-columns: 1fr 180px;
}

/* Magazine responsive — stack on mobile */
@media (max-width: 540px) {
  .swift-commerce-gdpr-magazine .swift-commerce-gdpr-container {
    grid-template-columns: 1fr !important;
  }
  .swift-commerce-gdpr-magazine .swift-commerce-gdpr-actions {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 24px !important;
  }
  .swift-commerce-gdpr-magazine.swift-commerce-gdpr-center {
    max-width: 400px;
  }
  .swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-left,
  .swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-right {
    left: var(--sc-space-2-5);
    right: var(--sc-space-2-5);
  }
  .swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-left .swift-commerce-gdpr-container,
  .swift-commerce-gdpr-magazine.swift-commerce-gdpr-bottom-right .swift-commerce-gdpr-container {
    max-width: 100%;
  }
}\n\n/* ==========================================================================
   11. Theme: Dark
   ========================================================================== */

.swift-commerce-gdpr-dark {
  --gdpr-bg: var(--sc-gray-800);
  --gdpr-text: var(--sc-gray-50);
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-category {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-btn-decline {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--sc-gray-50);
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-settings-close {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-settings-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.swift-commerce-gdpr-dark .swift-commerce-gdpr-settings-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   12. Reopen Button
   ========================================================================== */

.swift-commerce-gdpr-reopen {
  position: fixed !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: var(--sc-radius-full) !important;
  background: var(--gdpr-primary, var(--sc-primary)) !important;
  background-color: var(--gdpr-primary, var(--sc-primary)) !important;
  color: var(--sc-white) !important;
  border: none !important;
  cursor: pointer !important;
  z-index: calc(var(--sc-z-modal) - 1) !important;
  box-shadow: var(--sc-shadow-lg) !important;
  transition: transform var(--sc-transition-normal) var(--sc-ease-out), 
              box-shadow var(--sc-transition-normal) var(--sc-ease-out) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  text-decoration: none !important;
  background-image: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.swift-commerce-gdpr-reopen:hover,
.swift-commerce-gdpr-reopen:focus {
  transform: scale(1.1) !important;
  box-shadow: var(--sc-shadow-xl) !important;
  background: var(--gdpr-primary, var(--sc-primary)) !important;
  background-color: var(--gdpr-primary, var(--sc-primary)) !important;
  color: var(--sc-white) !important;
}

.swift-commerce-gdpr-reopen svg {
  width: 24px !important;
  height: 24px !important;
  color: var(--sc-white) !important;
  fill: none !important;
  stroke: currentColor !important;
}

.swift-commerce-gdpr-reopen-bottom-left {
  bottom: var(--sc-space-5);
  left: var(--sc-space-5);
}

.swift-commerce-gdpr-reopen-bottom-right {
  bottom: var(--sc-space-5);
  right: var(--sc-space-5);
}

/* ==========================================================================
   13. Animations
   ========================================================================== */

@keyframes swift-commerce-gdpr-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes swift-commerce-gdpr-slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes swift-commerce-gdpr-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.swift-commerce-gdpr-notice.swift-commerce-gdpr-animate-slide.swift-commerce-gdpr-bottom,
.swift-commerce-gdpr-notice.swift-commerce-gdpr-animate-slide.swift-commerce-gdpr-bottom-left,
.swift-commerce-gdpr-notice.swift-commerce-gdpr-animate-slide.swift-commerce-gdpr-bottom-right {
  animation: swift-commerce-gdpr-slide-up var(--sc-transition-slow) var(--sc-ease-out);
}

.swift-commerce-gdpr-notice.swift-commerce-gdpr-animate-slide.swift-commerce-gdpr-top {
  animation: swift-commerce-gdpr-slide-down var(--sc-transition-slow) var(--sc-ease-out);
}

.swift-commerce-gdpr-notice.swift-commerce-gdpr-animate-fade {
  animation: swift-commerce-gdpr-fade-in var(--sc-transition-slow) var(--sc-ease-out);
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .swift-commerce-gdpr-bottom .swift-commerce-gdpr-container,
  .swift-commerce-gdpr-top .swift-commerce-gdpr-container {
    flex-direction: column;
    padding: var(--sc-space-4) var(--sc-space-5);
  }
  
  .swift-commerce-gdpr-bottom .swift-commerce-gdpr-icon,
  .swift-commerce-gdpr-top .swift-commerce-gdpr-icon {
    display: none;
  }
  
  .swift-commerce-gdpr-bottom-left,
  .swift-commerce-gdpr-bottom-right {
    left: var(--sc-space-2-5);
    right: var(--sc-space-2-5);
    bottom: var(--sc-space-2-5);
  }
  
  .swift-commerce-gdpr-bottom-left .swift-commerce-gdpr-container,
  .swift-commerce-gdpr-bottom-right .swift-commerce-gdpr-container {
    max-width: 100%;
  }
  
  .swift-commerce-gdpr-actions {
    flex-direction: column;
  }
  
  .swift-commerce-gdpr-btn {
    width: 100%;
    text-align: center;
  }

  /* Boxed: go full-width on mobile */
  .swift-commerce-gdpr-boxed .swift-commerce-gdpr-container {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
  }

  .swift-commerce-gdpr-boxed.swift-commerce-gdpr-bottom {
    bottom: 0;
  }

  .swift-commerce-gdpr-boxed.swift-commerce-gdpr-top {
    top: 0;
  }
}

/* ==========================================================================
   15. Utility Effects
   ========================================================================== */

/* Blur effect when popup is active */
body.swift-commerce-gdpr-blur > *:not(.swift-commerce-gdpr-notice):not(.swift-commerce-gdpr-reopen) {
  filter: blur(4px);
  pointer-events: none;
}

/* Block scroll */
body.swift-commerce-gdpr-no-scroll {
  overflow: hidden !important;
}

