/* Shared CSS for PeThoria - Dark Mode and Cool Features */

/* CSS Variables for Dark Mode */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.95);
  --nav-bg: rgba(255, 255, 255, 0.8);
}

/* Base page styling - ensure html and body use theme colors */
html,
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100%;
}

/* Light mode - explicit rules to ensure light mode works */
[data-theme="light"],
:root:not([data-theme="dark"]) {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.95);
  --nav-bg: rgba(255, 255, 255, 0.8);
}

/* Ensure entire page is light in light mode */
[data-theme="light"] html,
[data-theme="light"] body,
:root:not([data-theme="dark"]) html,
:root:not([data-theme="dark"]) body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9 !important;
  --text-secondary: #cbd5e1 !important;
  --text-tertiary: #94a3b8 !important;
  --border-color: #475569;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg: rgba(30, 41, 59, 0.95);
  --nav-bg: rgba(15, 23, 42, 0.8);
}

/* Ensure entire page is dark in dark mode */
[data-theme="dark"] html,
[data-theme="dark"] body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure dark mode text is readable */
[data-theme="dark"] {
  color: var(--text-primary) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-700,
[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-900 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-400,
[data-theme="dark"] .text-gray-300,
[data-theme="dark"] .text-gray-200 {
  color: var(--text-secondary) !important;
}

/* Info box text - ensure visible in light and dark (override any conflicting rules) */
.promo-info-text {
  color: #4338ca !important; /* indigo-700 light mode */
}
[data-theme="dark"] .promo-info-text {
  color: #a5b4fc !important; /* indigo-300 dark mode - readable on indigo-900/20 bg */
}

/* Mobile Container */
.mobile-container {
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mobile-nav-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-actions button {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Content */
.mobile-content {
  padding: 0 1rem;
}

/* Mobile Grid */
.mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mobile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Responsive Grid */
@media (min-width: 640px) {
  .mobile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .mobile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .mobile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

/* Tap Target */
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card {
  transition: all 0.3s ease;
  transform: translateY(0);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.pulse-heart {
  animation: pulse-heart 2s infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.slide-in {
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.bounce-in {
  animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.gradient-text {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  backdrop-filter: blur(4px);
}

.mobile-menu-slide {
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-menu-item {
  transition: all 0.2s ease;
}

.mobile-menu-item:hover {
  transform: translateX(4px);
}

.pet-emoji {
  font-size: 3rem;
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.app-mockup {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 30px;
  padding: 30px;
  transform: perspective(1000px) rotateY(-15deg);
  box-shadow: 0 20px 40px var(--shadow-color);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
}

.coming-soon {
  background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
  color: #6b7280;
  border: 2px dashed #d1d5db;
}

/* Dark mode adaptations */
[data-theme="dark"] .hero-gradient {
  background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .bg-gradient-to-br {
  background: linear-gradient(to bottom right, #1f2937, #374151, #4b5563) !important;
}

[data-theme="dark"] .text-gray-900 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-700 {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-600 {
  color: var(--text-tertiary) !important;
}

[data-theme="dark"] .feature-card {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .coming-soon {
  background: var(--bg-tertiary) !important;
  color: var(--text-tertiary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-gray-900 {
  background-color: #111827 !important;
}

[data-theme="dark"] .stats-counter {
  color: #a78bfa !important;
}

[data-theme="dark"] .bg-gray-50 {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-gray-100 {
  background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .border-gray-200 {
  border-color: var(--border-color) !important;
}

/* Form pages (care, apply, etc.) - ensure all text and inputs visible in dark mode */
[data-theme="dark"] .bg-white {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-tertiary) !important;
}

[data-theme="dark"] select option {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

/* Signup page toggle button + OR text visible in dark mode */
[data-theme="dark"] #showEmailFormBtn {
  border-color: #a78bfa !important;
  color: #a78bfa !important;
  background-color: transparent !important;
}
[data-theme="dark"] #showEmailFormBtn:hover {
  background-color: rgba(167, 139, 250, 0.1) !important;
}
[data-theme="dark"] .text-gray-500 {
  color: var(--text-tertiary) !important;
}

[data-theme="dark"] .benefit-card,
[data-theme="dark"] .benefit-card.selected {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .benefit-card.selected {
  border-color: #6366f1 !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
}

[data-theme="dark"] .connect-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .connect-card p,
[data-theme="dark"] .connect-card span,
[data-theme="dark"] .connect-card .text-gray-700,
[data-theme="dark"] .connect-card .text-gray-900 {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .connect-card .text-gray-600 {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .bg-red-50 {
  background-color: rgba(127, 29, 29, 0.3) !important;
}

[data-theme="dark"] .text-red-700,
[data-theme="dark"] .text-red-600 {
  color: #fca5a5 !important;
}

[data-theme="dark"] .text-green-800 {
  color: #86efac !important;
}

[data-theme="dark"] .bg-gradient-to-br.from-blue-50.to-indigo-100,
[data-theme="dark"] .bg-gradient-to-br.from-blue-50.via-white.to-blue-100 {
  background: linear-gradient(to bottom right, #1e293b, #334155, #475569) !important;
}

/* Care/apply page - Back to Dashboard, Logout links */
[data-theme="dark"] a.text-blue-600 {
  color: #93c5fd !important;
}

[data-theme="dark"] a.text-blue-600:hover {
  color: #bfdbfe !important;
}

/* White/light cards and sections in dark mode */
[data-theme="dark"] .bg-white\/60 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

/* Login/signup page backgrounds */
[data-theme="dark"] .bg-blue-50 {
  background: linear-gradient(to bottom, #1e293b, #334155) !important;
}

/* Floating theme toggle button - always visible, professional */
.theme-toggle-floating {
  position: fixed !important;
  top: 5rem !important;
  right: 1rem !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
  cursor: pointer !important;
  z-index: 9997 !important;
  transition: all 0.3s ease !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.theme-toggle-floating:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

.theme-toggle-floating i {
  font-size: 1.25rem !important;
}

/* Safe area for pages with fixed nav - avoid overlap */
@media (min-width: 768px) {
  .theme-toggle-floating {
    top: 5rem !important;
    right: 1.25rem !important;
  }
}

[data-theme="dark"] .shadow-lg {
  box-shadow: 0 10px 15px -3px var(--shadow-color) !important;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .pet-emoji {
    font-size: 2.5rem;
  }
  
  .app-mockup {
    transform: none;
    padding: 20px;
    border-radius: 20px;
    min-height: 300px;
  }
  
  .stats-counter {
    font-size: 2rem;
  }
  
  .hero-gradient {
    padding: 2rem 0;
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-nav-actions button {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pet-emoji {
    font-size: 2rem;
  }
  
  .stats-counter {
    font-size: 1.75rem;
  }
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus,
a:focus,
button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 20px var(--shadow-color);
  z-index: 10002 !important; /* Higher than menu buttons */
  padding: 1.5rem;
  animation: slideUp 0.3s ease-out;
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.cookie-consent-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-consent-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.cookie-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.cookie-btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.cookie-btn-text {
  background: transparent;
  color: var(--text-secondary);
  text-decoration: underline;
}

.cookie-btn-text:hover {
  color: var(--text-primary);
}

/* Cookie Consent Modal */
.cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10003 !important; /* Higher than banner */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal-content {
  background: var(--card-bg);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px var(--shadow-color);
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cookie-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-required {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: normal;
}

.cookie-category-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-slider.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cookie-consent-content {
    width: 100%;
    max-width: 100%;
  }

  .cookie-consent-header {
    width: 100%;
  }

  .cookie-consent-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .cookie-consent-header p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    margin: 0;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .cookie-modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    width: calc(100% - 2rem);
  }

  .cookie-category-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-modal-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}

/* Square Payment SDK - Mobile & PWA optimizations */
.square-card-container,
#square-card-container,
#promoSquareCardContainer,
#boostSquareCardContainer {
  min-height: max(120px, env(safe-area-inset-bottom, 0px) + 100px) !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.apple-pay-btn,
[id$="ApplePayBtn"],
[id$="apple-pay-btn"] {
  min-height: 44px !important;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: black;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
[id$="GooglePayBtn"],
[id$="google-pay-btn"] {
  min-height: 44px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pay-card-btn,
[id$="PayCardBtn"],
[id$="pay-card-btn"] {
  min-height: 48px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
