/**
 * Mesuullogic LMS - WooCommerce & Checkout Redesign
 * Implements obsidian dark theme, sleek card containers, high-specificity logo lock,
 * total breadcrumb elimination, and premium instant-learning Thank You screen.
 *
 * @package Mesuullogic
 */

/* ==========================================================================
   1. GLOBAL LOGO LOCK & SPECIFICITY ENFORCEMENT
   ========================================================================== */
header#masthead .site-branding .site-logo-img,
header#masthead .brand-logo img,
.site-branding .site-logo-img,
.brand-logo img.site-logo-img,
.brand-logo img,
img.site-logo-img {
  height: 34px !important;
  width: auto !important;
  max-width: 185px !important;
  object-fit: contain !important;
}

.site-branding .site-logo-img.desktop-logo-img {
  display: block !important;
}

.site-branding .site-logo-img.mobile-logo-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .site-branding .site-logo-img.desktop-logo-img {
    display: none !important;
  }
  .site-branding .site-logo-img.mobile-logo-icon {
    display: block !important;
    height: 28px !important;
    width: auto !important;
    max-width: 38px !important;
    object-fit: contain !important;
  }
}

/* ==========================================================================
   2. TOTAL BREADCRUMB ELIMINATION
   ========================================================================== */
.breadcrumb,
.breadcrumbs,
.woocommerce-breadcrumb,
.catalog-breadcrumbs,
.checkout-breadcrumbs,
.subpage-breadcrumbs,
.co-breadcrumbs,
.co-breadcrumb-section,
.mto-breadcrumbs,
[aria-label="Breadcrumb"],
[aria-label="Breadcrumbs"],
nav.breadcrumb,
nav.breadcrumbs {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   3. CART & CHECKOUT PAGE WRAPPERS & HEADERS
   ========================================================================== */
.messulogic-cart-page-wrapper,
.messulogic-checkout-page-wrapper {
  padding: 130px 0 90px;
  min-height: 85vh;
  background-color: #07090e;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
  color: #f1f5f9;
}

.cart-page-container,
.checkout-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Page Header Common */
.cart-page-header,
.checkout-page-header {
  margin-bottom: 40px;
}

.cart-eyebrow-pill,
.checkout-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #fb923c;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-sparkle {
  color: #ea580c;
  font-size: 0.85rem;
}

.cart-main-title,
.checkout-main-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.cart-main-title .highlight-title,
.checkout-main-title .highlight-title {
  color: #ea580c;
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cart-subtitle,
.checkout-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
}

/* Stepper Bar on Checkout */
.checkout-stepper-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.step-pill.step-done {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.step-pill.step-current {
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #fb923c;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.15);
}

.step-pill.step-upcoming {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
}

.step-divider {
  color: #475569;
  font-size: 0.85rem;
}

/* Trust Bar */
.checkout-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
}

.trust-badge-item svg {
  color: #ea580c;
  flex-shrink: 0;
}

/* ==========================================================================
   4. WOOCOMMERCE CART BLOCK CUSTOMIZATION
   ========================================================================== */
.wp-block-woocommerce-cart,
.wc-block-cart {
  color: #f1f5f9 !important;
}

/* Cart Layout Structure */
.wc-block-cart .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 32px !important;
  align-items: start !important;
}

@media (max-width: 991px) {
  .wc-block-cart .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Cart Main Items Card */
.wc-block-cart__main {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.wc-block-cart-items__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 14px !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.wc-block-cart-items__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 22px 0 !important;
}

.wc-block-cart-item__image img {
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  object-fit: cover !important;
  width: 90px !important;
  height: 60px !important;
}

.wc-block-cart-item__product-name,
.wc-block-cart-item__product h2,
.wc-block-cart-item__product a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.wc-block-cart-item__product a:hover {
  color: #ea580c !important;
}

.wc-block-cart-item__total {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: #ffffff !important;
}

.wc-block-components-sale-badge {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #4ade80 !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
}

/* Remove Item Action Button */
.wc-block-cart-item__remove-link,
.wc-block-cart__remove-item {
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
}

.wc-block-cart-item__remove-link:hover,
.wc-block-cart__remove-item:hover {
  color: #ef4444 !important;
}

/* Cart Sidebar (Totals & Proceed Button) */
.wc-block-cart__sidebar {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
  position: sticky !important;
  top: 100px !important;
}

.wc-block-cart__totals-title {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.wc-block-components-totals-item {
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.wc-block-components-totals-footer-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 18px !important;
  margin-top: 10px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

/* Proceed to Checkout CTA Button */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-cart__submit-container .wc-block-components-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 16px 28px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin-top: 20px !important;
}

.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-cart__submit-container .wc-block-components-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.6) !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

/* Coupon Panel in Cart */
.wc-block-components-totals-coupon {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
}

.wc-block-components-panel__button {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.wc-block-components-totals-coupon form input[type="text"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   5. WOOCOMMERCE CHECKOUT BLOCK CUSTOMIZATION
   ========================================================================== */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
  color: #f1f5f9 !important;
}

/* Checkout 2-Column Grid & Layout */
.wc-block-checkout.wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout.wc-block-checkout,
.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: 1fr 420px !important;
  gap: 36px !important;
  align-items: start !important;
}

@media (max-width: 991px) {
  .wc-block-checkout.wc-block-components-sidebar-layout,
  .wc-block-components-sidebar-layout.wc-block-checkout,
  .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
  .wc-block-components-sidebar-layout,
  .wc-block-cart.wc-block-components-sidebar-layout,
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
  }

  .wc-block-checkout__sidebar,
  .wc-block-cart__sidebar,
  .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    box-sizing: border-box !important;
    padding: 20px 16px !important;
    order: 1 !important;
  }

  .wc-block-checkout__main,
  .wc-block-cart__main,
  .wc-block-components-main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 16px !important;
    order: 2 !important;
  }
}

/* Checkout Step Cards */
.wc-block-components-checkout-step,
.wc-block-checkout__contact-fields,
.wc-block-checkout__billing-fields,
.wc-block-checkout__payment-method {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.wc-block-components-checkout-step__title,
.wc-block-components-title {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px !important;
}

/* Dark Mode Inputs Styling */
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-combobox__input,
.wc-block-components-textarea textarea,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"] {
  background: rgba(255, 255, 255, 0.04) !important;
  background-color: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 16px 16px !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
}

/* Fix Country and State dropdowns (Image 1 fix) */
.wc-blocks-components-select__container {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  position: relative !important;
}

.wc-blocks-components-select__select,
.wc-block-checkout select {
  background-color: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  padding: 18px 14px 6px 14px !important;
  height: 52px !important;
  width: 100% !important;
  font-size: 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
}

.wc-blocks-components-select__select option,
.wc-block-checkout select option {
  background-color: #0b0f19 !important;
  color: #ffffff !important;
}

.wc-blocks-components-select__select:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-combobox input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-checkout input:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  outline: none !important;
}

.wc-blocks-components-select__label {
  position: absolute !important;
  top: 7px !important;
  left: 14px !important;
  font-size: 0.72rem !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox label {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

/* Radio & Checkbox Controls */
.wc-block-components-radio-control__label,
.wc-block-components-checkbox-control__label {
  color: #e2e8f0 !important;
}

.wc-block-components-radio-control__input:checked {
  background-color: #ea580c !important;
  border-color: #ea580c !important;
}

/* Payment Method Box */
.wc-block-components-radio-control-accordion__option {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  margin-bottom: 12px !important;
  padding: 16px !important;
}

.wc-block-components-radio-control-accordion__option--checked {
  border-color: rgba(234, 88, 12, 0.5) !important;
  background: rgba(234, 88, 12, 0.04) !important;
}

/* Checkout Sidebar (Order Summary) - Sleek Compact Redesign (Audio 2 & Image 2) */
.wc-block-checkout__sidebar,
.wc-block-components-sidebar {
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
  position: sticky !important;
  top: 100px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-checkout__sidebar .wc-block-components-order-summary__header {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 14px !important;
}

.wc-block-components-order-summary {
  padding: 0 !important;
  margin: 0 !important;
}

/* 1. Eliminate the floating white quantity circle dot on thumbnails */
.wc-block-components-order-summary-item__quantity,
.wc-block-components-order-summary-item .wc-block-components-order-summary-item__quantity {
  display: none !important;
}

/* 2. Eliminate long paragraph metadata text dump */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
  display: none !important;
}

/* 3. Eliminate duplicate individual price stack under product title */
.wc-block-components-order-summary-item__description .wc-block-cart-item__prices,
.wc-block-components-order-summary-item__individual-prices {
  display: none !important;
}

/* 4. Compact, horizontal, sleek line item layout */
.wc-block-components-order-summary-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.wc-block-components-order-summary-item__image {
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 48px !important;
  position: relative !important;
}

.wc-block-components-order-summary-item__image img {
  width: 52px !important;
  height: 48px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: block !important;
}

.wc-block-components-order-summary-item__description {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name,
.wc-block-components-order-summary-item .wc-block-components-product-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto !important;
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wc-block-components-order-summary-item__total-price .wc-block-components-product-price {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
}

.wc-block-components-order-summary-item__total-price .wc-block-components-sale-badge {
  background: rgba(34, 197, 94, 0.14) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #4ade80 !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* Place Order CTA Button */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions .wc-block-components-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  padding: 18px 32px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  margin-top: 24px !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions .wc-block-components-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.7) !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

/* ==========================================================================
   6. ORDER RECEIVED (THANK YOU) CELEBRATION REDESIGN
   ========================================================================== */
.mesuullogic-thankyou-wrapper,
.messulogic-order-received-page-wrapper {
  padding: 130px 0 100px;
  min-height: 85vh;
  background-color: #07090e;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(234, 88, 12, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 40%);
  color: #f1f5f9;
}

.thankyou-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Celebratory Hero Header */
.thankyou-celebration-hero {
  text-align: center;
  margin-bottom: 40px;
}

.celebration-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.celebration-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  line-height: 1.2;
}

.celebration-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* HIGH-IMPACT INSTANT LEARNING PRIMARY CTA CARD */
.instant-learn-cta-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.16) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.45);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  margin-bottom: 44px;
}

.cta-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-card-text {
  flex: 1;
  min-width: 280px;
}

.cta-headline {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.cta-sub {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}

.cta-card-button-wrap {
  flex-shrink: 0;
}

.btn-start-learning-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.btn-start-learning-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(234, 88, 12, 0.7);
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.btn-start-learning-glow svg {
  transition: transform 0.2s ease;
}

.btn-start-learning-glow:hover svg {
  transform: translateX(4px);
}

/* Order Meta Grid */
.thankyou-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

@media (max-width: 768px) {
  .thankyou-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.meta-badge-box {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.meta-val.highlight-val {
  color: #fb923c;
}

.meta-val.status-active {
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #4ade80;
}

/* Enrolled Courses Section */
.thankyou-courses-section {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 44px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.enrolled-courses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enrolled-course-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.enrolled-course-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(234, 88, 12, 0.3);
}

.course-thumb-box .course-thumb {
  width: 90px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.course-info-box {
  flex: 1;
}

.course-access-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.course-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.course-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
}

.btn-launch-course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fb923c !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-launch-course:hover {
  background: #ea580c;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}

/* Onboarding Steps */
.thankyou-steps-container {
  margin-bottom: 44px;
}

.onboarding-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .onboarding-steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.step-num-badge {
  width: 32px;
  height: 32px;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fb923c;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Quick Links Bar */
.thankyou-quick-links-bar {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 24px;
}

.quick-links-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.ql-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8 !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ql-item:hover {
  color: #fb923c !important;
}

.ql-item svg {
  color: #ea580c;
}

/* Single Course Quick Actions Header */
.co-quick-actions-bar {
  padding: 100px 0 10px;
  background: transparent;
}

.co-quick-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ==========================================================================
   7. COMPREHENSIVE GLOBAL MOBILE RESPONSIVENESS (ALL PAGES)
   ========================================================================== */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

@media (max-width: 768px) {
  /* Global Page Containers */
  .cart-page-container,
  .checkout-container,
  .thankyou-container,
  .container,
  .site-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Page Wrapper Heights & Spacing */
  .messulogic-cart-page-wrapper,
  .messulogic-checkout-page-wrapper,
  .mesuullogic-thankyou-wrapper,
  .messulogic-order-received-page-wrapper {
    padding-top: 105px !important;
    padding-bottom: 50px !important;
  }

  /* Typography Fluid Scaling */
  .cart-main-title,
  .checkout-main-title,
  .celebration-title,
  .entry-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .cart-subtitle,
  .checkout-subtitle,
  .celebration-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* Checkout Stepper Horizontal Track with Smooth Swipe */
  .checkout-stepper-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    margin-top: 18px !important;
  }

  .checkout-stepper-row::-webkit-scrollbar {
    display: none !important;
  }

  .step-pill {
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .step-divider {
    flex-shrink: 0 !important;
    font-size: 0.75rem !important;
  }

  /* Trust Bar Mobile Clean Stack */
  .checkout-trust-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 24px !important;
  }

  .trust-badge-item {
    font-size: 0.8rem !important;
  }

  /* Instant Learning Card on Thank You Page */
  .instant-learn-cta-card {
    padding: 24px 20px !important;
    border-radius: 18px !important;
    margin-bottom: 32px !important;
  }

  .cta-card-content {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  .cta-headline {
    font-size: 1.25rem !important;
  }

  .cta-sub {
    font-size: 0.9rem !important;
  }

  .btn-start-learning-glow {
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1.05rem !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Enrolled Course Cards on Thank You Page */
  .thankyou-courses-section {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    margin-bottom: 32px !important;
  }

  .enrolled-course-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px !important;
  }

  .course-thumb-box .course-thumb {
    width: 100% !important;
    height: 160px !important;
  }

  .btn-launch-course {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Quick links bar on mobile */
  .quick-links-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}

/* ==========================================================================
   Header Modern Cart Button & Counter Badge
   ========================================================================== */
.header-cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-cart-icon-btn:hover {
  background: rgba(255, 85, 32, 0.15) !important;
  border-color: rgba(255, 85, 32, 0.5) !important;
  color: #ff5520 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 85, 32, 0.25);
}

.header-cart-icon-svg {
  display: block;
  transition: transform 0.25s ease;
}

.header-cart-icon-btn:hover .header-cart-icon-svg {
  transform: scale(1.08);
}

.header-cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff5520 100%);
  color: #ffffff !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 85, 32, 0.5), 0 0 0 2px #0a0e17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
}

.header-cart-count-badge:not(.has-items),
.header-cart-count-badge[data-count="0"] {
  display: none !important;
}

/* ==========================================================================
   "New in store" / WooCommerce Product Grid Section (Obsidian Dark Theme)
   Matches the Home Page Course Card Design Exactly
   ========================================================================== */
.wp-block-heading.has-text-align-center:has(+ .wc-block-grid),
.wp-block-heading.has-text-align-center:has(+ .wp-block-woocommerce-product-new),
h2.wp-block-heading.has-text-align-center {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  margin-top: clamp(2.5rem, 5vw, 4rem) !important;
  margin-bottom: 1.75rem !important;
  text-align: center !important;
}

.wc-block-grid,
.wp-block-product-new,
.wp-block-woocommerce-product-new {
  margin-bottom: clamp(3rem, 6vw, 5rem) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-block-grid .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1100px) {
  .wc-block-grid .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 640px) {
  .wc-block-grid .wc-block-grid__products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }
}

/* Individual Card (matching .masteriyo-course-card.dark-course-card) */
.wc-block-grid .wc-block-grid__product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #0d0d0d !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease !important;
  position: relative !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.wc-block-grid .wc-block-grid__product:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 85, 32, 0.45) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 85, 32, 0.14) !important;
}

/* Thumbnail Wrap */
.wc-block-grid .wc-block-grid__product-link {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  position: relative !important;
  color: inherit !important;
  padding: 0 !important;
}

.wc-block-grid .wc-block-grid__product-image {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background-color: #050505 !important;
  margin: 0 !important;
}

.wc-block-grid .wc-block-grid__product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wc-block-grid .wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.06) !important;
}

/* Video Play overlay illusion on hover */
.wc-block-grid .wc-block-grid__product-image::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(13, 13, 13, 0.65) 100%) !important;
  transition: background 0.3s ease !important;
  pointer-events: none !important;
}

.wc-block-grid .wc-block-grid__product:hover .wc-block-grid__product-image::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(13, 13, 13, 0.8) 100%) !important;
}

/* Sale Badge (Replacing default plain white box with sleek radiant pill) */
.wc-block-grid .wc-block-grid__product-onsale {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  background-color: #ff5521 !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(255, 85, 33, 0.45) !important;
  border: none !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Product Title */
.wc-block-grid .wc-block-grid__product-title {
  padding: 1.25rem 1.25rem 0.5rem !important;
  margin: 0 !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #ffffff !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.8em !important;
  text-align: left !important;
  transition: color 0.2s ease !important;
}

.wc-block-grid .wc-block-grid__product:hover .wc-block-grid__product-title {
  color: #ff5520 !important;
}

/* Product Price */
.wc-block-grid .wc-block-grid__product-price {
  padding: 0 1.25rem 0.85rem !important;
  margin-top: auto !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  align-items: baseline !important;
  gap: 8px !important;
  text-align: left !important;
}

.wc-block-grid .wc-block-grid__product-price del {
  font-size: 0.76rem !important;
  color: #64748b !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

.wc-block-grid .wc-block-grid__product-price del .woocommerce-Price-amount {
  color: #64748b !important;
}

.wc-block-grid .wc-block-grid__product-price ins {
  text-decoration: none !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

.wc-block-grid .wc-block-grid__product-price ins .woocommerce-Price-amount,
.wc-block-grid .wc-block-grid__product-price > .woocommerce-Price-amount {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.22rem !important;
}

/* Add to Cart Button Row */
.wc-block-grid .wc-block-grid__product-add-to-cart {
  padding: 0 1.25rem 1.25rem !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid .wc-block-grid__product-add-to-cart a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 7px 18px !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: auto !important;
  box-shadow: none !important;
}

.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid .wc-block-grid__product-add-to-cart a:hover {
  background-color: #ff5520 !important;
  color: #ffffff !important;
  border-color: #ff5520 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(255, 85, 32, 0.35) !important;
}

/* ==========================================================================
   Checkout Place Order / Enroll Now Button Styling
   ========================================================================== */
#place_order,
.wc-block-components-checkout-place-order-button,
button#place_order.button.alt,
input#place_order.button.alt {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-color: #ea580c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 28px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  width: 100% !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#place_order:hover,
.wc-block-components-checkout-place-order-button:hover,
button#place_order.button.alt:hover,
input#place_order.button.alt:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.5) !important;
}




