/* ==========================================================================
   CHECKOUT PAGE - MODERN E-COMMERCE OVERRIDE (FULLY RESPONSIVE)
   ========================================================================== */

.checkout-main {
  padding: 40px 0 60px;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

/* Hide Drupal's messy debug elements if any */
.contextual, .contextual-links { display: none !important; }

/* --- Progress Stepper --- */
.checkout-progress-section { margin-bottom: 32px; }
.checkout-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.checkout-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.checkout-progress-step.active { opacity: 1; }
.checkout-progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.checkout-progress-step.active .checkout-progress-circle {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,124,102,0.3);
}
.checkout-progress-title { font-size: 14px; font-weight: 700; color: var(--text-primary); display: block; }
.checkout-progress-sub { font-size: 12px; color: var(--text-muted); display: block; }
.checkout-progress-divider {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 16px;
  border-radius: 2px;
}

/* --- Main Layout Grid --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  max-width: 100%;
}

/* --- Aggressive Fieldset Reset --- */
.checkout-forms fieldset,
.checkout-forms .fieldset-wrapper,
.checkout-pane-wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-width: 0;
  max-width: 100%;
}

.checkout-forms legend,
.checkout-forms .fieldset-legend {
  background: transparent !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--border-light) !important;
  width: 100% !important;
  display: block !important;
}

/* --- Main Form Container --- */
.checkout-forms {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  width: 100%;
  min-width: 0; /* Prevents grid blowout */
}
#shipping-information-wrapper, #edit-payment-information { margin-bottom: 32px; }
#edit-payment-information { margin-bottom: 0; }

/* --- Form Elements Styling --- */
.checkout-forms .form-item { margin-bottom: 16px; max-width: 100%; }
.checkout-forms label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}
.checkout-forms .form-select,
.checkout-forms .form-text,
.checkout-forms .form-tel,
.checkout-forms input[type="tel"],
.checkout-forms input.checkout-phone-input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px; /* 16px prevents iOS auto-zoom on mobile */
  background: var(--bg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.checkout-forms .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' 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");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.checkout-forms .form-select:focus,
.checkout-forms .form-text:focus,
.checkout-forms .form-tel:focus,
.checkout-forms input[type="tel"]:focus,
.checkout-forms input.checkout-phone-input:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(13,124,102,0.1);
}

/* --- Customer Address & Profile Card in Checkout --- */
.profile--type--customer {
  background: var(--bg, #f8fafc) !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  border-radius: var(--radius-md, 12px) !important;
  padding: 16px 20px !important;
  margin: 12px 0 16px 0 !important;
}
.profile--type--customer p.address {
  margin: 0 !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
  color: var(--text-primary, #1e293b) !important;
}
.profile--type--customer .field--name-field-phone {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px dashed var(--border, #e2e8f0) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
}
.profile--type--customer .field--name-field-phone .field__label {
  font-weight: 600 !important;
  color: var(--text-muted, #64748b) !important;
  margin: 0 !important;
}
.profile--type--customer .field--name-field-phone .field__item {
  font-weight: 700 !important;
  color: var(--primary, #0D7C66) !important;
}

/* --- Radio Buttons (Shipping & Payment) --- */
.checkout-forms .js-form-type-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fff;
}
.checkout-forms .js-form-type-radio:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.checkout-forms input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
  background: #fff;
}
.checkout-forms input[type="radio"]:checked {
  border-color: var(--primary);
  background: #fff;
}
.checkout-forms input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.checkout-forms .js-form-type-radio label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  cursor: pointer;
  word-break: break-word;
}
.checkout-forms .description {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 32px;
}

/* --- Checkboxes --- */
.checkout-forms .js-form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkout-forms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  position: relative;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkout-forms input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkout-forms input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.checkout-forms .js-form-type-checkbox label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  word-break: break-word;
}

/* --- Address Profile & Address Book in Checkout --- */
[data-drupal-selector*="shipping-profile"],
[data-drupal-selector*="billing-information"],
.checkout-pane-shipping-information,
.checkout-pane-payment-information {
  position: relative;
  margin-top: 16px;
  margin-bottom: 24px;
}

[data-drupal-selector*="shipping-profile"] > .form-item,
[data-drupal-selector*="billing-information"] > .form-item {
  margin-bottom: 16px;
}

/* Saved Address Selector Dropdown */
.available-profiles,
[data-drupal-selector*="select-address"] {
  background-color: #fff !important;
  font-weight: 500 !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 16px !important;
  cursor: pointer;
}

.profile {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 12px;
  margin-bottom: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.profile:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 124, 102, 0.08);
}

.profile .address {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
}

.profile .address .given-name,
.profile .address .family-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

/* Edit Address Action Button */
.address-book-edit-button,
input.address-book-edit-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border: 1.5px solid var(--primary) !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  margin-top: 10px !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
}

.address-book-edit-button:hover,
input.address-book-edit-button:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(13, 124, 102, 0.22) !important;
}

/* --- Inline Address Form (when Edit clicked or Adding New) --- */
.field--type-address {
  width: 100%;
  margin-top: 12px;
}

.address-container-inline {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

.address-container-inline .form-item {
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.address-container-inline label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  margin-bottom: 6px !important;
}

.address-container-inline .form-text,
.address-container-inline .form-select {
  width: 100% !important;
  height: 46px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  background-color: #fff !important;
  color: var(--text-primary) !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.address-container-inline .form-text:focus,
.address-container-inline .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12) !important;
}

/* Spans across both columns */
.address-container-inline .form-item[class*="country-code"],
.address-container-inline .form-item[class*="address-line1"],
.address-container-inline .form-item[class*="address-line2"] {
  grid-column: 1 / -1 !important;
}

/* Checkbox to copy/save address to address book */
.form-item[class*="copy-to-address-book"] {
  margin-top: 14px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

@media (max-width: 640px) {
  .address-container-inline {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .address-container-inline .form-item[class*="country-code"],
  .address-container-inline .form-item[class*="address-line1"],
  .address-container-inline .form-item[class*="address-line2"] {
    grid-column: 1 !important;
  }
}

/* --- Primary Submit Button --- */
.co-form-actions-wrapper { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.co-form-actions-wrapper .button--primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(242,140,56,0.3);
  transition: all var(--transition);
  text-transform: none;
  box-sizing: border-box;
}
.co-form-actions-wrapper .button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242,140,56,0.4);
}

/* --- Checkout Summary Sidebar --- */
.checkout-summary {
  position: sticky;
  top: 80px;
  width: 100%;
  min-width: 0;
}
.checkout-summary__card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.checkout-pane-order-summary { padding: 24px; }
.checkout-summary-items-header { margin-bottom: 16px; }
.checkout-summary-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.checkout-summary-item-card:last-child { border-bottom: none; }
.checkout-summary-item-title-wrap { min-width: 0; flex: 1; }
.checkout-summary-qty-pill {
  background: var(--primary-50);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}
.checkout-summary-item-title { font-size: 14px; color: var(--text-primary); margin: 0; font-weight: 500; word-break: break-word; }
.checkout-summary-item-price-wrap { font-size: 14px; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-left: 8px; }

.order-total-summary-card { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border-light); }
.checkout-summary__row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); gap: 16px; }
.checkout-summary__total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); gap: 16px; }
.checkout-summary__total .order-total-line-label { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.checkout-summary__total .order-total-line-value { font-size: 20px; font-weight: 800; color: var(--primary); text-align: right; }

/* --- Coupon Area --- */
.checkout-pane-coupon-redemption { padding: 24px; background: var(--bg); border-top: 1px solid var(--border-light); }
.co-coupon-wrap label { display: none; }
.cart-summary__coupon-input { display: flex; flex-wrap: nowrap; gap: 0; width: 100%; }
.cart-summary__coupon-input .form-text {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 16px;
  background: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.cart-summary__coupon-input .form-submit {
  background: var(--text-primary);
  color: #fff;
  padding: 0 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-transform: none;
  transition: background var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.cart-summary__coupon-input .form-submit:hover { background: var(--primary); }

/* --- Trust Badges --- */
.checkout-summary__trust { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cart-summary__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.cart-summary__trust-item svg { color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet & Small Desktop */
@media (max-width: 992px) {
  .checkout-layout { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  .checkout-summary { 
    position: static; 
    margin-top: 0; 
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .checkout-main { padding: 24px 0 40px; }
  
  /* Progress bar becomes vertical */
  .checkout-progress-bar { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 0; 
    padding: 20px; 
  }
  .checkout-progress-step { padding: 10px 0; }
  .checkout-progress-divider { 
    width: 2px; 
    height: 20px; 
    margin: 0 0 0 17px; /* Aligns exactly under the center of the circle */
  }
  .checkout-progress-sub { display: none; } /* Hide subtitle to save space */
  
  /* Reduce padding for main containers */
  .checkout-forms { 
    padding: 20px; 
    border-radius: var(--radius-md);
  }
  .checkout-pane-order-summary, 
  .checkout-pane-coupon-redemption { 
    padding: 20px; 
  }
  
  /* Stack coupon input vertically if screen is too tight */
  .cart-summary__coupon-input { 
    flex-direction: column; 
    gap: 8px; 
  }
  .cart-summary__coupon-input .form-text {
    border-right: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    text-align: center;
  }
  .cart-summary__coupon-input .form-submit {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
  }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .checkout-forms { padding: 16px; }
  .checkout-pane-order-summary, .checkout-pane-coupon-redemption { padding: 16px; }
  .checkout-forms .js-form-type-radio { padding: 12px; }
  
  /* Hide the circle background, just show numbers to save horizontal space if it gets too tight */
  /* Or just make text slightly smaller */
  .checkout-summary__total .order-total-line-label { font-size: 16px; }
  .checkout-summary__total .order-total-line-value { font-size: 18px; }
}

/* ==========================================================================
   CHECKOUT LOGIN & REGISTRATION PANE (MODERN RESPONSIVE DESIGN)
   ========================================================================== */

/* Single-card flow wrapper */
.checkout-single-flow {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 40px;
}

.checkout-single-card {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

.checkout-main--login .container {
  max-width: 1120px;
}

/* Main Checkout Login Card */
.co-login-pane-wrapper {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.9);
  padding: 38px 44px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

/* Header Banner */
.co-login-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.co-login-header__icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.12), rgba(22, 163, 74, 0.15));
  color: #0D7C66;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-login-header__icon-box svg {
  width: 26px;
  height: 26px;
}

.co-login-header__title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.co-login-header__subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Segmented Tabs (Desktop hidden, Mobile visible) */
.co-login-tabs {
  display: none;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 4px;
}

.co-login-tab {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.co-login-tab.active {
  background: #ffffff;
  color: #0D7C66;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Grid Layout: 2 Columns on Desktop */
.co-login-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1.15fr;
  align-items: start;
  gap: 0;
}

/* Panels */
.co-login-panel {
  width: 100%;
  box-sizing: border-box;
}

.co-login-panel--returning {
  padding-right: 16px;
}

.co-login-panel--register {
  padding-left: 16px;
}

.co-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.co-panel-header__badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.co-panel-header__badge--green {
  background: #f0fdf4;
  color: #16a34a;
}

.co-panel-header__badge svg {
  width: 20px;
  height: 20px;
}

.co-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.co-panel-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Quick Perks Pills */
.co-perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.co-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
}

.co-perk-item svg {
  width: 13px;
  height: 13px;
  color: #16a34a;
}

/* Vertical OR Divider (Desktop) */
.co-login-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 360px;
  position: relative;
}

.co-login-divider__line {
  flex: 1;
  width: 1px;
  background: #e2e8f0;
}

.co-login-divider__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  margin: 14px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Aggressive Reset for nested fieldsets inside login pane */
.co-login-pane-wrapper fieldset,
.co-login-pane-wrapper .form-wrapper__login-option {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.co-login-pane-wrapper legend,
.co-login-pane-wrapper .fieldset-legend {
  display: none !important;
}

/* Form Item Styling */
.co-login-pane-wrapper .form-item,
.co-login-pane-wrapper .js-form-item {
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% ;
}

.co-login-pane-wrapper label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 !important;
}

/* Text, Email, Password Inputs */
.co-login-input,
.co-login-pane-wrapper input[type="text"],
.co-login-pane-wrapper input[type="email"],
.co-login-pane-wrapper input[type="password"] {
  width: 100% !important;
  height: 48px !important;
  padding: 10px 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.co-login-input:hover,
.co-login-pane-wrapper input[type="text"]:hover,
.co-login-pane-wrapper input[type="email"]:hover,
.co-login-pane-wrapper input[type="password"]:hover {
  border-color: #94a3b8 !important;
  background-color: #ffffff !important;
}

.co-login-input:focus,
.co-login-pane-wrapper input[type="text"]:focus,
.co-login-pane-wrapper input[type="email"]:focus,
.co-login-pane-wrapper input[type="password"]:focus {
  border-color: #0D7C66 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.12) !important;
}

/* Descriptions */
.co-login-pane-wrapper .description {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin: 2px 0 0 0 !important;
  line-height: 1.4 !important;
}

/* Password strength and confirm match indicators */
.co-login-pane-wrapper .password-strength {
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
}

.co-login-pane-wrapper .password-strength__meter {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}

.co-login-pane-wrapper .password-confirm-message {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

/* Submit Buttons */
.co-login-submit-btn,
.co-login-pane-wrapper input[type="submit"] {
  width: 100% !important;
  height: 50px !important;
  background: linear-gradient(135deg, #0D7C66 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 8px 18px -3px rgba(13, 124, 102, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 14px !important;
  text-transform: none !important;
}

.co-login-submit-btn:hover,
.co-login-pane-wrapper input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px -4px rgba(13, 124, 102, 0.45) !important;
  background: linear-gradient(135deg, #085546 0%, #15803d 100%) !important;
}

.co-login-submit-btn:active,
.co-login-pane-wrapper input[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 10px rgba(13, 124, 102, 0.2) !important;
}

/* Forgot Password Link */
.co-login-forgot-link,
.co-login-pane-wrapper a[id*="forgot-password"] {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0D7C66 !important;
  text-decoration: none !important;
  margin-top: 12px;
  transition: color 0.15s ease;
}

.co-login-forgot-link:hover,
.co-login-pane-wrapper a[id*="forgot-password"]:hover {
  text-decoration: underline !important;
  color: #085546 !important;
}

/* Bottom Trust Strip */
.co-login-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 26px;
  margin-top: 32px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.co-trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.co-trust-pill svg {
  color: #0D7C66;
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   CHECKOUT LOGIN RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet and Smaller (<= 991px) */
@media (max-width: 991px) {
  .co-login-pane-wrapper {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .co-login-tabs {
    display: flex;
  }

  .co-login-grid {
    display: block;
  }

  .co-login-divider {
    display: none;
  }

  .co-login-panel {
    display: none;
    padding: 0;
  }

  .co-login-panel.active {
    display: block;
    animation: coFadeIn 0.25s ease forwards;
  }

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

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .co-login-pane-wrapper {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .co-login-header {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .co-login-header__icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .co-login-header__title {
    font-size: 19px;
  }

  .co-login-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .co-login-trust-strip {
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }
}