/*
Theme Name: Kingdom Dynamic Sports Creative Theme
Theme URI: https://kingdomdynamicsports.com/
Author: Kingdom Dynamic Sports Creative Team
Author URI: https://kingdomdynamicsports.com/
Description: A premium, high-performance, plug-and-play custom WordPress theme representing Kingdom Dynamic Sports (KDS). Features bold, custom-engineered styling parameters with high-contrast Cardinal Red and Ocean Navy accents, fully functional classes systems, real-time schedule databases, and an integrated live design compiler. 
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: sports, custom-colors, custom-compiler, full-site-editing, custom-menu, e-commerce, fluid-layout, translation-ready, block-patterns, block-styles, wide-blocks
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;950&family=Space+Grotesk:wght@400;500;600;750;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --wp-primary: #dc2626;
  --wp-accent: #1e3a8a;
  --wp-background: #ffffff;
  --wp-text: #0f172a;
  --wp-card-bg: #dc2626;
  --wp-border: #cbd5e1;
}

body {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

#wp_builder_core h1,
#wp_builder_core h2,
#wp_builder_core h3,
#wp_builder_core h4,
#wp_builder_core h5,
#wp_builder_core h6 {
  color: inherit;
}

#wp_builder_core a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   WOOCOMMERCE PAGES (CHECKOUT, CART, MY ACCOUNT) CUSTOM STYLING
   ========================================================================== */

/* Overall Page Layout Wrapper & Containers */
.kds-standard-checkout-container {
  font-family: 'Inter', sans-serif !important;
  color: #1e293b !important;
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   1. WOOCOMMERCE CHECKOUT PAGE (GRID LAYOUT & POLISH)
   ========================================================================== */

/* Desktop layout with traditional floats for robustness */
@media (min-width: 992px) {
  form.checkout {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  form.checkout::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
  }

  form.checkout > * {
    box-sizing: border-box !important;
  }

  form.checkout #customer_details,
  form.checkout .col2-set,
  form.checkout > .col-1 {
    width: 50% !important;
    float: left !important;
    clear: left !important;
    margin-right: 0 !important;
  }

  form.checkout #order_review_heading,
  form.checkout .woocommerce-checkout-review-order-heading {
    width: 45% !important;
    min-width: 380px !important;
    float: right !important;
    clear: right !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: #1e3a8a !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 12px !important;
  }

  form.checkout #order_review,
  form.checkout .woocommerce-checkout-review-order {
    width: 45% !important;
    min-width: 380px !important;
    float: right !important;
    clear: right !important;
    display: block !important;
  }
  
  form.checkout #order_review .woocommerce-checkout-review-order-table,
  form.checkout .woocommerce-checkout-review-order .woocommerce-checkout-review-order-table {
    display: table !important;
    width: 100% !important;
  }
  
  form.checkout #order_review #payment,
  form.checkout .woocommerce-checkout-review-order #payment,
  form.checkout .woocommerce-checkout-review-order .woocommerce-checkout-payment {
    display: block !important;
    width: 100% !important;
  }
}

/* Tablet & Mobile stacked layout */
@media (max-width: 991px) {
  form.checkout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 32px !important;
  }

  form.checkout #customer_details,
  form.checkout .col2-set,
  form.checkout > .col-1,
  form.checkout #order_review_heading,
  form.checkout .woocommerce-checkout-review-order-heading,
  form.checkout #order_review,
  form.checkout .woocommerce-checkout-review-order {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  form.checkout #order_review_heading {
    margin-top: 24px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    color: #1e3a8a !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
  }
}

/* Header & Section Typography */
.woocommerce-checkout h3 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  text-transform: uppercase !important;
  color: #1e3a8a !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  padding-bottom: 12px !important;
  letter-spacing: -0.01em !important;
}

/* Billing & Shipping field wrapper stacked setup */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  box-sizing: border-box !important;
}

/* Row-level structure of checkout fields */
.woocommerce-checkout .form-row {
  margin-bottom: 20px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout .form-row::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.woocommerce-checkout .form-row-first {
  width: 48% !important;
  float: left !important;
  clear: none !important;
}

.woocommerce-checkout .form-row-last {
  width: 48% !important;
  float: right !important;
  clear: none !important;
}

.woocommerce-checkout .form-row-wide {
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

@media (max-width: 767px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 20px !important;
  }
}

/* Standardized Input Fields, Selects & Textareas */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select:not([class*="wc-block-components-select"]),
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100% !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease-in-out !important;
  outline: none !important;
  font-family: 'Inter', sans-serif !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

/* Standard Labels (Exclude WooCommerce Blocks to avoid floating label overlapping) */
.woocommerce-checkout label:not([class*="wc-block"]):not(.wc-block-components-floating-label):not(.wc-block-components-text-input__label):not([class*="floating-label"]) {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.woocommerce-checkout .required {
  color: #dc2626 !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 24px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 14px !important;
  text-align: left !important;
}

.woocommerce-checkout-review-order-table thead th {
  background-color: #f8fafc !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #475569 !important;
  font-size: 11px !important;
}

.woocommerce-checkout-review-order-table .cart_item td {
  color: #334155 !important;
  font-weight: 500 !important;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600 !important;
  width: 60% !important;
}

.woocommerce-checkout-review-order-table .product-total {
  text-align: right !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  width: 40% !important;
}

.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600 !important;
  color: #475569 !important;
}

.woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
  font-weight: 700 !important;
}

.woocommerce-checkout-review-order-table .order-total th {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  color: #1e3a8a !important;
  text-transform: uppercase !important;
  font-size: 15px !important;
}

.woocommerce-checkout-review-order-table .order-total td {
  font-size: 18px !important;
  color: #dc2626 !important;
}

/* Payment Gateway Section Box */
#payment {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-top: 15px !important;
  box-sizing: border-box !important;
  clear: both !important;
  width: 100% !important;
}

#payment ul.payment_methods {
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#payment ul.payment_methods li {
  margin-bottom: 16px !important;
  line-height: 1.5 !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

#payment ul.payment_methods li label {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  margin-left: 8px !important;
  margin-bottom: 0 !important;
}

#payment ul.payment_methods li label img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 4px !important;
  max-height: 20px !important;
  width: auto !important;
}

#payment ul.payment_methods li input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  accent-color: #dc2626 !important;
  margin: 0 !important;
}

/* Payment box details / Stripe fields wrapper */
#payment .payment_box {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 18px !important;
  margin: 12px 0 16px 0 !important;
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  box-sizing: border-box !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
}

#payment .payment_box input.input-text,
#payment .payment_box input[type="text"],
#payment .payment_box input[type="tel"] {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Inter', sans-serif !important;
  margin-bottom: 12px !important;
}

/* Prevent reCAPTCHA overlapping */
.g-recaptcha,
#recaptcha-container {
  display: block !important;
  margin: 16px 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.g-recaptcha div {
  margin: 0 auto !important;
}

/* Privacy & Terms labels */
.woocommerce-checkout .woocommerce-privacy-policy-text {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 18px !important;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  cursor: pointer !important;
}

.woocommerce-checkout .woocommerce-form__input-checkbox {
  margin-top: 3px !important;
  margin-right: 8px !important;
  width: 16px !important;
  height: 16px !important;
  accent-color: #dc2626 !important;
  flex-shrink: 0 !important;
}

/* Place Order CTA Button */
.woocommerce-checkout #place_order {
  display: block !important;
  width: 100% !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 16px 32px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06) !important;
  transition: all 0.25s ease-in-out !important;
  text-align: center !important;
}

.woocommerce-checkout #place_order:hover {
  background-color: #b91c1c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3), 0 4px 6px -2px rgba(220, 38, 38, 0.15) !important;
}

.woocommerce-checkout #place_order:active {
  transform: translateY(1px) !important;
  background-color: #991b1b !important;
}

/* ==========================================================================
   2. WOOCOMMERCE CART PAGE (GRID LAYOUT & POLISH)
   ========================================================================== */

@media (min-width: 992px) {
  .woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    column-gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .woocommerce-cart .woocommerce-cart-form {
    grid-column: 1 !important;
    width: 100% !important;
  }
  
  .woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
}

.woocommerce-cart .shop_table.cart {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .shop_table.cart th,
.woocommerce-cart .shop_table.cart td {
  padding: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 14px !important;
  text-align: left !important;
}

.woocommerce-cart .shop_table.cart thead th {
  background-color: #f8fafc !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #475569 !important;
  font-size: 11px !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  text-transform: uppercase !important;
  color: #1e3a8a !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding-bottom: 10px !important;
}

/* ==========================================================================
   3. WOOCOMMERCE MY ACCOUNT DASHBOARD (GRID LAYOUT & POLISH)
   ========================================================================== */

@media (min-width: 992px) {
  .woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 0.6fr 1.4fr !important;
    column-gap: 48px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .woocommerce-account .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    width: 100% !important;
  }
  
  .woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    width: 100% !important;
  }
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
}

.woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #f1f5f9 !important;
  margin: 0 !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background-color: #f8fafc !important;
  color: #dc2626 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
  border-left: 4px solid #dc2626 !important;
}

/* ==========================================================================
   4. COMMON WOOCOMMERCE COMPONENT STYLING (NOTICES, BUTTONS, CARDS)
   ========================================================================== */

/* Notices (Errors, Messages, Infos) */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 10px !important;
  padding: 16px 20px 16px 52px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 24px !important;
  position: relative !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
  border-left: 5px solid #dc2626 !important;
}

.woocommerce-info {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  border-left: 5px solid #0284c7 !important;
}

.woocommerce-message {
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 5px solid #16a34a !important;
}

.woocommerce-error::before {
  content: "⚠️" !important;
  position: absolute !important;
  left: 18px !important;
  top: 16px !important;
  font-size: 16px !important;
}

/* Coupon Sections */
.woocommerce-form-coupon-toggle {
  background-color: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.woocommerce-form-coupon-toggle a {
  color: #dc2626 !important;
  text-decoration: underline !important;
}

.woocommerce-form-coupon {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
}

/* Color Scheme Override for all Default WooCommerce Purple Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce #respond input#submit,
.woocommerce-page #respond input#submit {
  background-color: #1e3a8a !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page #respond input#submit:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page #respond input#submit.alt {
  background-color: #dc2626 !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce-page #respond input#submit.alt:hover {
  background-color: #1e3a8a !important;
}

/* Override custom buttons or purple badge indicators */
.woocommerce-checkout [style*="background-color: rgb(81, 45, 168)"],
.woocommerce-checkout [style*="background-color:#512da8"],
.woocommerce-checkout [style*="background-color: #512da8"],
.woocommerce-checkout [style*="background-color:purple"],
.woocommerce-checkout [style*="background-color: purple"] {
  background-color: #1e3a8a !important;
}

.billing-details,
.shipping-details,
.woocommerce-checkout .billing-details-title {
  color: #1e3a8a !important;
}

/* ==========================================================================
   5. WOOCOMMERCE BLOCKS CHECKOUT & LOGIN PAGE REFINEMENTS
   ========================================================================= */

/* Spacing between checkout fields and label groups */
.wc-block-checkout .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-select,
.wc-block-checkout .wc-block-components-text-input__input,
.wc-block-checkout .woocommerce-billing-fields__field-wrapper > p,
.wc-block-checkout .woocommerce-shipping-fields__field-wrapper > p,
.wc-block-checkout .woocommerce-additional-fields__field-wrapper > p,
.wc-block-components-checkout-step,
.wc-block-components-checkout-step__container {
  margin-bottom: 24px !important;
}

/* Fix floating labels overlap in WooCommerce blocks (e.g. Country, State, Name fields) */
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-select {
  position: relative !important;
  height: 60px !important;
}

/* Add generous vertical padding inside the input/select wrapper to prevent text overlapping */
.wc-block-components-text-input__input,
.wc-block-components-combobox .wc-block-components-text-input__input,
.wc-block-components-select__select,
.wc-block-components-select select,
select.wc-block-components-select__select {
  padding-top: 28px !important;
  padding-bottom: 6px !important;
  height: 60px !important;
  line-height: 1.4 !important;
}

/* Ensure the floating labels are positioned beautifully and do not touch the active value */
.wc-block-components-text-input__label,
.wc-block-components-combobox .wc-block-components-text-input__label,
.wc-block-components-select .wc-block-components-text-input__label {
  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  pointer-events: none !important;
  transition: transform 0.15s ease-out, font-size 0.15s ease-out, color 0.15s ease-out !important;
  transform: translateY(0) scale(1) !important;
  transform-origin: left top !important;
  line-height: 1 !important;
}

/* Force floating state upwards with scaling when the input has content, is focused, or is active */
.wc-block-components-text-input.is-active .wc-block-components-text-input__label,
.wc-block-components-text-input:focus-within .wc-block-components-text-input__label,
.wc-block-components-combobox.is-active .wc-block-components-text-input__label,
.wc-block-components-combobox:focus-within .wc-block-components-text-input__label,
.wc-block-components-select.is-active .wc-block-components-text-input__label,
.wc-block-components-select:focus-within .wc-block-components-text-input__label,
.wc-block-components-text-input--has-content .wc-block-components-text-input__label,
.wc-block-components-select--has-value .wc-block-components-text-input__label {
  transform: translateY(-12px) scale(0.75) !important;
  color: #dc2626 !important; /* Theme high-contrast red */
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* Elegant responsive styling for product name and details in checkout order summary to fix large font issue */
.wc-block-components-totals-product-list-item__name,
.wc-block-components-product-name,
.wc-block-components-totals-product-list-item .wc-block-components-product-name,
.wc-block-components-totals-product-list-item__name a,
.wc-block-components-product-name a {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e3a8a !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

.wc-block-components-totals-product-list-item {
  padding: 16px 0 !important;
  align-items: flex-start !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Fix product thumbnail in order summary to show KDS custom course thumbnail beautifully */
.wc-block-components-totals-product-list-item__image {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  overflow: hidden !important;
  margin-right: 16px !important;
  object-fit: cover !important;
  position: relative !important;
}

.wc-block-components-totals-product-list-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

/* Specific spacing for WooCommerce block form elements */
.wc-block-components-form .wc-block-components-text-input,
.wc-block-components-form .wc-block-components-combobox,
.wc-block-components-form .wc-block-components-select {
  margin-top: 10px !important;
  margin-bottom: 24px !important;
}

/* Ensure billing and shipping section titles have spacious headers */
.wc-block-components-checkout-step__title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 850 !important;
  font-size: 1.25rem !important;
  color: #1e3a8a !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 20px !important;
  text-transform: uppercase !important;
}

/* Professional design for WooCommerce login page */
.woocommerce-account .kds-standard-checkout-container {
  max-width: 600px !important;
  margin: 80px auto !important;
}

.woocommerce-account .woocommerce {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 40px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-account .woocommerce-form-login {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.woocommerce-account .woocommerce-form-login__submit {
  width: 100% !important;
  padding: 14px 24px !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 12px !important;
  border: none !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  margin-top: 12px !important;
}

.woocommerce-account .woocommerce-form-login__submit:hover {
  background-color: #1e3a8a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.25) !important;
}

/* Spacing out the login form elements beautifully */
.woocommerce-account .woocommerce-form-row {
  margin-bottom: 24px !important;
}

.woocommerce-account .woocommerce-form-row label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.woocommerce-account .woocommerce-form-row input.input-text {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce-account .woocommerce-form-row input.input-text:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.woocommerce-account .woocommerce-form-login__rememberme {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer !important;
}

.woocommerce-account .woocommerce-LostPassword {
  text-align: center !important;
  margin-top: 20px !important;
  font-size: 13px !important;
}

.woocommerce-account .woocommerce-LostPassword a {
  color: #dc2626 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.15s ease-in-out !important;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
  color: #1e3a8a !important;
  text-decoration: underline !important;
}


