/*
Theme Name: Edvana Custom Theme
Theme URI: https://edvana.academy
Author: Edvana Engineering Team
Description: Premier Funky & Professional Tutoring Institute Theme
Version: 1.0.0
Text Domain: edvana-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base Styles & Site-Wide Typography Fixes */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin-top: 0px !important;
  padding-top: 0px !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hide WordPress Top Black Admin Bar for Non-Admin Portal Roles */
body:not(.administrator) #wpadminbar {
  display: none !important;
}

body.administrator #wpadminbar {
  display: block !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  letter-spacing: -0.035em;
}

/* Site-Wide Form & Table Typography Regularization */
input, select, textarea, button {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

table {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Light Theme Funky Gradient Mesh Background */
.bg-mesh-light {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(216, 180, 254, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(165, 243, 252, 0.25) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(254, 215, 170, 0.2) 0px, transparent 50%);
}

/* Funky Light Glassmorphism Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  border-color: #cbd5e1;
}

/* Funky Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
  color: #ffffff;
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.8rem 1.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px -4px rgba(109, 40, 217, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.btn-primary:hover {
  transform: translate3d(0, -2px, 0) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(109, 40, 217, 0.45);
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 50%, #7c3aed 100%);
}

.btn-primary:active {
  transform: translate3d(0, 0, 0) scale(0.98);
}

.btn-secondary {
  background: #ffffff;
  color: #1e1b4b;
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.8rem 1.85rem;
  border: 2px solid #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.btn-secondary:hover {
  border-color: #7c3aed;
  color: #6d28d9;
  transform: translate3d(0, -2px, 0) scale(1.02);
  background: #fbfbfe;
  box-shadow: 0 8px 20px -8px rgba(109, 40, 217, 0.2);
}

.btn-secondary:active {
  transform: translate3d(0, 0, 0) scale(0.98);
}

/* Crisp 3D Badges & Icons */
.stage-3d-badge {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.stage-3d-badge i {
  display: inline-block;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
}

/* Gradient Text Effect */
.text-gradient-purple {
  background: linear-gradient(135deg, #6b21a8 0%, #9333ea 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-pink-orange {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 40%, #f43f5e 75%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badge System */
.badge-funky {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Modern Toast System Styles */
#edvana-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 24rem;
  width: 100%;
}

.edvana-toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edvana-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.edvana-toast.hide {
  transform: translateY(-20px);
  opacity: 0;
}

.edvana-toast-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.edvana-toast-success .edvana-toast-icon {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.edvana-toast-error .edvana-toast-icon {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.edvana-toast-info .edvana-toast-icon {
  background: #f3e8ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

/* Sleek Modern Status Select Styling */
.sleek-status-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sleek-status-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.45rem 2.25rem 0.45rem 0.85rem;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
  outline: none;
}

.sleek-status-select:hover {
  border-color: #9333ea;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12);
  transform: translateY(-1px);
}

.sleek-status-select:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

/* Status variants based on data-status */
.sleek-status-select[data-status="PENDING"] {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.sleek-status-select[data-status="CONFIRMED"] {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.sleek-status-select[data-status="COMPLETED"] {
  background-color: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}
.sleek-status-select[data-status="RESCHEDULED"] {
  background-color: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
.sleek-status-select[data-status="NO_SHOW"] {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #ffedd5;
}
.sleek-status-select[data-status="CANCELLED"] {
  background-color: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.sleek-status-icon-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

/* Custom Reference Sidebar Styling Matching Spec */
.sidebar-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-avatar-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: radial-gradient(circle, #fecdd3 0%, #fda4af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #881337;
  flex-shrink: 0;
}

.sidebar-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #ffe4e6;
  color: #f43f5e;
  display: inline-block;
  margin-top: 0.125rem;
}

.sidebar-collapse-btn {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.sidebar-group-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.75rem 0.5rem 0.25rem 0.5rem;
  display: block;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.sidebar-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sidebar-nav-item.active {
  background: #fff1f2;
  color: #f43f5e;
}

.sidebar-nav-item.active-purple {
  background: #faf5ff;
  color: #9333ea;
}

.sidebar-nav-item.active-cyan {
  background: #ecfeff;
  color: #0891b2;
}

.sidebar-item-icon {
  font-size: 1rem;
  width: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-count-bubble {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.125rem 0.45rem;
  border-radius: 9999px;
  background: #ffe4e6;
  color: #f43f5e;
}

/* Explicit 1351px Desktop Container Width & Grid System */
.max-w-\[1351px\],
.portal-shell-container {
  max-width: 1351px !important;
  width: 100% !important;
}

.portal-grid-container {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (min-width: 1024px) {
  .portal-grid-container {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
}

.portal-sidebar-area {
  grid-column: span 3 / span 3 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.portal-main-area {
  grid-column: span 9 / span 9 !important;
  width: 100% !important;
  min-width: 0 !important;
}

.tab-content-panel {
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}

.tab-content-panel:not(.hidden) {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
}

.tab-content-panel > div,
.tab-content-panel > form,
.tab-content-panel .glass-card {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Full Responsive Mobile Utilities */
.table-responsive-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-radius: 1rem;
}

.table-responsive-container table {
  min-width: 680px;
}

@media (max-width: 640px) {
  .glass-card {
    padding: 1.25rem !important;
    border-radius: 1.25rem !important;
  }

  .sleek-status-select {
    font-size: 0.68rem;
    padding: 0.35rem 1.65rem 0.35rem 0.65rem;
  }

  #edvana-toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }

  .modal-responsive-card {
    max-height: 88vh;
    overflow-y: auto;
    margin: 1rem;
    width: calc(100% - 2rem);
  }
}

/* Edvana Academy WooCommerce Checkout Custom Styling */
.edvana-custom-wc-checkout form.checkout.woocommerce-checkout {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
}

.edvana-custom-wc-checkout form.checkout_coupon,
.edvana-custom-wc-checkout form.login,
.edvana-custom-wc-checkout form.register {
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background-color: #f8fafc;
  margin-bottom: 1.5rem;
}

.edvana-custom-wc-checkout .form-row input.input-text,
.edvana-custom-wc-checkout .form-row textarea,
.edvana-custom-wc-checkout select {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

.edvana-custom-wc-checkout .form-row input.input-text:focus,
.edvana-custom-wc-checkout select:focus {
  outline: 2px solid #9333ea;
  border-color: #9333ea;
}

.edvana-custom-wc-checkout #payment {
  background: #f8fafc;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
}

.edvana-custom-wc-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  list-style: none;
}

.edvana-custom-wc-checkout #payment ul.payment_methods li {
  margin-bottom: 0.75rem;
}

.edvana-custom-wc-checkout #payment #place_order,
.edvana-custom-wc-checkout .button {
  background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 1rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  border: none;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.3);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.edvana-custom-wc-checkout #payment #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(147, 51, 234, 0.4);
}

/* Sidebar Collapse & Expand Styles */
.portal-sidebar-area {
  transition: all 0.3s ease-in-out !important;
}
.portal-main-area {
  transition: all 0.3s ease-in-out !important;
}

body .portal-sidebar-area.collapsed {
  grid-column: span 1 / span 1 !important;
}
body .portal-main-area.expanded {
  grid-column: span 11 / span 11 !important;
}

/* Collapsed state display rules */
.portal-sidebar-area.collapsed .sidebar-profile-header h4,
.portal-sidebar-area.collapsed .sidebar-profile-header .sidebar-role-badge,
.portal-sidebar-area.collapsed .sidebar-group-label,
.portal-sidebar-area.collapsed .sidebar-count-bubble,
.portal-sidebar-area.collapsed .sidebar-tab-btn i.fa-chevron-right {
  display: none !important;
}

.portal-sidebar-area.collapsed .sidebar-tab-btn,
.portal-sidebar-area.collapsed .sidebar-nav-item,
.portal-sidebar-area.collapsed .sidebar-tab-btn span,
.portal-sidebar-area.collapsed .sidebar-nav-item span {
  font-size: 0 !important;
  gap: 0 !important;
}

body .portal-sidebar-area.collapsed .glass-card {
  padding: 1.25rem 0.5rem !important;
}

.portal-sidebar-area.collapsed .sidebar-profile-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: none !important;
}

.portal-sidebar-area.collapsed .flex.items-center.gap-3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
}

.portal-sidebar-area.collapsed .sidebar-avatar-circle {
  width: 2.5rem !important;
  height: 2.5rem !important;
  font-size: 0.9rem !important;
  margin: 0 auto !important;
}

.portal-sidebar-area.collapsed .sidebar-collapse-btn {
  position: static !important;
  margin: 0.25rem auto 0 auto !important;
  width: 1.65rem !important;
  height: 1.65rem !important;
}

.portal-sidebar-area.collapsed .sidebar-tab-btn,
.portal-sidebar-area.collapsed .sidebar-nav-item {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  margin: 0.15rem auto !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease-in-out !important;
}

.portal-sidebar-area.collapsed .sidebar-tab-btn span,
.portal-sidebar-area.collapsed .sidebar-nav-item span {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  width: auto !important;
}

.portal-sidebar-area.collapsed .sidebar-item-icon {
  font-size: 1.35rem !important;
  margin: 0 !important;
  width: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Premium Single Product Page Styling Override */
.single-product .product {
  max-width: 1200px;
  margin: 3rem auto !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2rem !important;
  padding: 2.5rem !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

.single-product .entry-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 2rem !important;
  line-height: 1.25 !important;
}

.single-product p.price, .single-product span.price {
  color: #7e22ce !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
}

.single-product table.variations {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  border: none !important;
}

.single-product table.variations tbody,
.single-product table.variations tr {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.25rem !important;
}

.single-product table.variations td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
}

.single-product table.variations td.label {
  margin-bottom: 0.35rem !important;
}

.single-product table.variations td.label label {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #334155 !important;
  letter-spacing: 0.05em !important;
}

.single-product .variations select {
  width: 100% !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.single-product .variations select:focus {
  border-color: #9333ea !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15) !important;
}

.single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, #9333ea, #db2777) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 9999px !important;
  padding: 14px 28px !important;
  border: none !important;
  box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.2), 0 4px 6px -2px rgba(147, 51, 234, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  text-align: center !important;
}

.single-product .single_add_to_cart_button:hover {
  opacity: 0.95 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.35), 0 4px 6px -2px rgba(147, 51, 234, 0.15) !important;
}

.single-product .woocommerce-product-gallery__image img {
  border-radius: 1.5rem !important;
  border: 1px solid #f1f5f9 !important;
}

.single-product .wc-tabs-wrapper {
  margin-top: 3rem !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 2rem !important;
}

.single-product ul.wc-tabs {
  border: none !important;
  background: none !important;
  display: flex !important;
  gap: 1.5rem !important;
  padding-left: 0 !important;
}

.single-product ul.wc-tabs li {
  background: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 0.5rem 0 !important;
}

.single-product ul.wc-tabs li.active {
  border-bottom-color: #9333ea !important;
}

.single-product ul.wc-tabs li a {
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  color: #64748b !important;
}

.single-product ul.wc-tabs li.active a {
  color: #9333ea !important;
}

/* Style dynamic WooCommerce variation price box */
.single-product .woocommerce-variation {
  background-color: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
}

.single-product .woocommerce-variation-price span.price,
.single-product .woocommerce-variation-price span.price span.amount {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #7c3aed !important;
}

.single-product .woocommerce-variation-description {
  font-size: 0.75rem !important;
  color: #475569 !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.4 !important;
}

/* Override WooCommerce payment block styling when inside the Tuition Summary card */
.glass-card #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.glass-card #payment ul.payment_methods {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 1.25rem !important;
  padding-left: 0 !important;
}
.glass-card #payment #place_order {
  margin-top: 0.5rem !important;
}
.glass-card #payment .payment_box {
  background-color: rgba(147, 51, 234, 0.05) !important;
  border: 1px solid rgba(147, 51, 234, 0.1) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  color: #475569 !important;
  font-size: 0.75rem !important;
  margin: 0.5rem 0 !important;
}
.glass-card #payment .payment_box::before {
  border-bottom-color: rgba(147, 51, 234, 0.1) !important;
}

/* Shopify-Style Sleek Grid Layout for Checkout Fields */
.edvana-custom-wc-checkout .woocommerce-billing-fields__field-wrapper,
.edvana-custom-wc-checkout .woocommerce-shipping-fields__field-wrapper,
.edvana-custom-wc-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}

/* Unified Typography for Checkout Card Headings using Theme Native Fonts (Space Grotesk / Outfit) */
.edvana-custom-wc-checkout h3,
.edvana-custom-wc-checkout .woocommerce-billing-fields h3,
.edvana-custom-wc-checkout .woocommerce-additional-fields h3 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
  font-size: 1.25rem !important; /* text-xl */
  font-weight: 800 !important; /* font-extrabold */
  color: #0f172a !important; /* text-slate-900 */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Form Row Spans in Grid */
.edvana-custom-wc-checkout p.form-row {
  grid-column: span 1 !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
.edvana-custom-wc-checkout p.form-row-wide {
  grid-column: span 2 !important;
}

/* Complete Mobile Responsiveness for Intact Checkout Fields */
@media (max-width: 768px) {
  .edvana-custom-wc-checkout .woocommerce-billing-fields__field-wrapper,
  .edvana-custom-wc-checkout .woocommerce-shipping-fields__field-wrapper,
  .edvana-custom-wc-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .edvana-custom-wc-checkout p.form-row,
  .edvana-custom-wc-checkout p.form-row-first,
  .edvana-custom-wc-checkout p.form-row-last,
  .edvana-custom-wc-checkout p.form-row-wide {
    grid-column: span 1 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 0 0.85rem 0 !important;
    display: block !important;
  }
  .edvana-custom-wc-checkout .form-row input.input-text,
  .edvana-custom-wc-checkout .form-row textarea,
  .edvana-custom-wc-checkout select {
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* Hide default WooCommerce alerts that are irrelevant (e.g. coupon info toggles) */
.woocommerce-NoticeGroup-checkout,
.woocommerce-info,
.woocommerce-message {
  display: none !important;
}

/* Allow actual critical validation error notices to display properly but styled nicely */
.woocommerce-error {
  display: block !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #991b1b !important;
  border-radius: 1rem !important;
  padding: 1rem !important;
  list-style: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Match Checkout Field Typography & Style using Website's Native Body Font (Plus Jakarta Sans) */
.edvana-custom-wc-checkout .woocommerce-billing-fields label,
.edvana-custom-wc-checkout .woocommerce-additional-fields label {
  display: block !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.4rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.edvana-custom-wc-checkout .form-row input.input-text,
.edvana-custom-wc-checkout .form-row textarea,
.edvana-custom-wc-checkout select {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.85rem !important;
  padding: 0.65rem 0.95rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  transition: all 0.2s ease-in-out !important;
}
.edvana-custom-wc-checkout .form-row input.input-text:focus,
.edvana-custom-wc-checkout .form-row textarea:focus,
.edvana-custom-wc-checkout select:focus {
  background-color: #ffffff !important;
  border-color: #9333ea !important;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15) !important;
  outline: none !important;
}
.edvana-custom-wc-checkout .form-row input.input-text::placeholder,
.edvana-custom-wc-checkout .form-row textarea::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Payment Gateway Selector Sleek Styling */
.glass-card #payment ul.payment_methods li {
  margin-bottom: 0.5rem !important;
  padding: 0.65rem 0.9rem !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.85rem !important;
  transition: all 0.2s ease !important;
}
.glass-card #payment ul.payment_methods li:hover {
  border-color: #c084fc !important;
  background: #faf5ff !important;
}
.glass-card #payment ul.payment_methods label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
}
.glass-card #payment #place_order {
  width: 100% !important;
  background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 0.85rem !important;
  border: none !important;
  box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.4) !important;
  transition: all 0.2s ease !important;
}
.glass-card #payment #place_order:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 15px 30px -5px rgba(126, 34, 206, 0.5) !important;
  background: linear-gradient(135deg, #6b21a8 0%, #581c87 100%) !important;
}

/* ==========================================================================
   Payoneer Payment Gateway Custom Design Overrides (Edvana Enterprise UI)
   ========================================================================== */

/* Payment Methods List Container */
.edvana-custom-wc-checkout ul.wc_payment_methods,
.woocommerce-checkout ul.wc_payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.25rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}

/* Payment Method Card Item */
.edvana-custom-wc-checkout ul.wc_payment_methods li.wc_payment_method,
.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  padding: 1rem 1.25rem !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 0 !important;
}

.edvana-custom-wc-checkout ul.wc_payment_methods li.wc_payment_method:hover,
.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
  border-color: #c084fc !important;
  background: #faf5ff !important;
}

/* Active Selected Payment Method */
.edvana-custom-wc-checkout ul.wc_payment_methods li.wc_payment_method.payment_method_ccd_payoneer,
.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method.payment_method_ccd_payoneer {
  border: 2px solid #9333ea !important;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(147, 51, 234, 0.12) !important;
}

/* Radio Button Input */
.edvana-custom-wc-checkout ul.wc_payment_methods li input[type="radio"],
.woocommerce-checkout ul.wc_payment_methods li input[type="radio"] {
  accent-color: #9333ea !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-right: 0.65rem !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}

/* Gateway Title Label */
.edvana-custom-wc-checkout ul.wc_payment_methods li label,
.woocommerce-checkout ul.wc_payment_methods li label {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Payment Box / Active Payoneer Form Dropdown Container */
.edvana-custom-wc-checkout div.payment_box.payment_method_ccd_payoneer,
.woocommerce-checkout div.payment_box.payment_method_ccd_payoneer {
  position: relative !important;
  margin-top: 1rem !important;
  padding: 1.25rem 1.35rem !important;
  background: linear-gradient(135deg, #fcf8ff 0%, #f3e8ff 50%, #faf5ff 100%) !important;
  border: 1.5px solid #d8b4fe !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 20px -4px rgba(147, 51, 234, 0.08) !important;
}

/* Top Arrow Triangle for Payment Box */
.edvana-custom-wc-checkout div.payment_box.payment_method_ccd_payoneer::before,
.woocommerce-checkout div.payment_box.payment_method_ccd_payoneer::before {
  content: '' !important;
  position: absolute !important;
  top: -8px !important;
  left: 24px !important;
  width: 14px !important;
  height: 14px !important;
  background: #fcf8ff !important;
  border-top: 1.5px solid #d8b4fe !important;
  border-left: 1.5px solid #d8b4fe !important;
  transform: rotate(45deg) !important;
  border-radius: 2px !important;
}

/* Payoneer Recipient Email Alert Pill */
.edvana-custom-wc-checkout div.payment_box.payment_method_ccd_payoneer > p,
.woocommerce-checkout div.payment_box.payment_method_ccd_payoneer > p {
  background: #ffffff !important;
  border: 1px solid #e9d5ff !important;
  border-left: 4px solid #9333ea !important;
  border-radius: 0.85rem !important;
  padding: 0.75rem 1rem !important;
  margin: 0 0 1rem 0 !important;
  color: #4c1d95 !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.04) !important;
  word-break: break-all !important;
}

/* Input Fields Table -> Responsive Flex Block Layout */
.edvana-custom-wc-checkout div.payment_box_ccd_child table,
.woocommerce-checkout div.payment_box_ccd_child table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 0.85rem !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
}

.edvana-custom-wc-checkout div.payment_box_ccd_child tbody,
.woocommerce-checkout div.payment_box_ccd_child tbody {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  width: 100% !important;
}

.edvana-custom-wc-checkout div.payment_box_ccd_child tr,
.woocommerce-checkout div.payment_box_ccd_child tr {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  width: 100% !important;
}

.edvana-custom-wc-checkout div.payment_box_ccd_child td,
.woocommerce-checkout div.payment_box_ccd_child td {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Payoneer Input Labels */
.edvana-custom-wc-checkout div.payment_box_ccd_child label,
.woocommerce-checkout div.payment_box_ccd_child label {
  display: block !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #1e1b4b !important;
  margin-bottom: 0.25rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Payoneer Input Fields */
.edvana-custom-wc-checkout div.payment_box_ccd_child input[type="email"],
.edvana-custom-wc-checkout div.payment_box_ccd_child input[type="text"],
.woocommerce-checkout div.payment_box_ccd_child input[type="email"],
.woocommerce-checkout div.payment_box_ccd_child input[type="text"] {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.85rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease-in-out !important;
}

.edvana-custom-wc-checkout div.payment_box_ccd_child input[type="email"]:focus,
.edvana-custom-wc-checkout div.payment_box_ccd_child input[type="text"]:focus,
.woocommerce-checkout div.payment_box_ccd_child input[type="email"]:focus,
.woocommerce-checkout div.payment_box_ccd_child input[type="text"]:focus {
  background-color: #ffffff !important;
  border-color: #9333ea !important;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15) !important;
  outline: none !important;
}

.edvana-custom-wc-checkout div.payment_box_ccd_child input::placeholder,
.woocommerce-checkout div.payment_box_ccd_child input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

