/* wp-content/plugins/nl-gp-checkout-bundle/assets/css/common-checkout.css */

/* =========================================================
   COMMON VARIABLES (Checkout-3 se inspired)
========================================================= */
:root {
  --gp-bg: #f8f9fa;
  --gp-card: #fff;
  --gp-primary: #41009f;
  --gp-primary-hover: #2d0070;
  --gp-secondary: #ea006f;
  --gp-secondary-hover: #c9005c;
  --gp-text: #1f2937;
  --gp-sub: #6b7280;
  --gp-border: #e5e7eb;
  --gp-radius: 12px;
  --gp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --gp-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --gp-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --gp-success: #10b981;
  --gp-error: #ef4444;
  --gp-warning: #f59e0b;
}

/* =========================================================
   COMMON BASE STYLES
========================================================= */
body.gp-scope.woocommerce-checkout.woocommerce-page {
  background: var(--gp-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide default WooCommerce elements */
body.gp-scope .col2-set,
body.gp-scope .col-1 {
  display: none !important;
}

/* Main checkout container */
body.gp-scope .woocommerce .checkout.checkout.woocommerce-checkout {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  width: 100% !important;
}

/* =========================================================
   COMMON CONTAINER LAYOUT - FIX ALIGNMENT
========================================================= */
.gp-checkout-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
  width: 100% !important;
  align-items: flex-start !important;
}

/* Left side: Steps - FIXED ALIGNMENT */
.gp-checkout-steps {
  flex: 1 1 65% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}

/* Right side: Basket - FIXED ALIGNMENT */
.gp-checkout-container .gp-basket-sidebar {
  flex: 1 1 30% !important;
  max-width: 380px !important;
  background: var(--gp-card) !important;
  border-radius: var(--gp-radius) !important;
  padding: 25px !important;
  border: 1px solid var(--gp-border) !important;
  box-shadow: var(--gp-shadow-md) !important;
  position: sticky !important;
  top: 40px !important;
  margin: 0 !important;
  align-self: stretch !important;
  height: fit-content !important;
  min-height: 300px !important;
}

/* =========================================================
   CHECKOUT-2 SPECIFIC FORM STYLES - FIXED
========================================================= */

/* Step 1 form container - CHECKOUT-2 SPECIFIC */
.gp-step-1 .gpc-billing-fields {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Override WooCommerce default styles for Checkout-2 */
.gp-step-1 .woocommerce-billing-fields__field-wrapper {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.gp-step-1 .woocommerce-billing-fields__field-wrapper .form-row,
.gp-step-1 .woocommerce-form-row {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}

/* Remove WooCommerce default styles for Checkout-2 */
.gp-step-1 .gpc-billing-fields .form-row label,
.gp-step-1 .gpc-billing-fields .woocommerce-input-wrapper,
.gp-step-1 .gpc-billing-fields input.input-text,
.gp-step-1 .gpc-billing-fields select {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* Custom form layout for Checkout-2 */
.gp-step-1 .gpc-form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.gp-step-1 .gpc-form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Title field specific - CHECKOUT-2 */
.gp-step-1 .gpc-field-title {
    width: 100% !important;
    min-width: 100% !important;
}

.gp-step-1 .gpc-field-title select {
    width: 100% !important;
}

/* Form field styling - CHECKOUT-2 */
.gp-step-1 .gpc-form-field {
    margin-bottom: 0 !important;
    width: 100% !important;
    display: block !important;
}

.gp-step-1 .gpc-form-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 14px !important;
    width: 100% !important;
}

.gp-step-1 .gpc-form-field input,
.gp-step-1 .gpc-form-field select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    height: 46px !important;
    min-height: 46px !important;
}

.gp-step-1 .gpc-form-field input:focus,
.gp-step-1 .gpc-form-field select:focus {
    outline: none !important;
    border-color: #41009f !important;
    box-shadow: 0 0 0 3px rgba(65, 0, 159, 0.1) !important;
}

/* Phone note styling */
.gp-step-1 .gpc-phone-note {
    display: block !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 4px !important;
    font-style: italic !important;
    width: 100% !important;
}

/* Manual address section - CHECKOUT-2 */
.gp-step-1 #gp-manual-address-fields {
    display: none !important;
    margin-top: 20px !important;
    background: #f9fafb !important;
    border-radius: 10px !important;
    padding: 20px !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
}

.gp-step-1 #gp-manual-address-fields.active {
    display: block !important;
    animation: fadeIn 0.3s ease !important;
}

/* Manual toggle button - CHECKOUT-2 */
.gp-step-1 .gpc-manual-toggle {
    text-align: right !important;
    margin: 15px 0 !important;
    width: 100% !important;
}

.gp-step-1 .gpc-manual-toggle-btn {
    background: none !important;
    border: none !important;
    color: #41009f !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-size: 15px !important;
    padding: 5px 0 !important;
    display: inline-block !important;
}

.gp-step-1 .gpc-manual-toggle-btn:hover {
    color: #2d0070 !important;
    text-decoration: none !important;
}

/* Address line groups - CHECKOUT-2 */
.gp-step-1 .gpc-address-line-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.gp-step-1 .gpc-city-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Error states - CHECKOUT-2 */
.gp-step-1 .gpc-form-field.error input,
.gp-step-1 .gpc-form-field.error select {
    border-color: #e74c3c !important;
}

.gp-step-1 .gpc-form-field.error label {
    color: #e74c3c !important;
}

/* Ensure proper spacing in Checkout-2 */
.gp-step-1 .gp-card-body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Clear floats in Checkout-2 */
.gp-step-1 .gpc-billing-fields:after {
    content: "";
    display: table;
    clear: both;
}

/* STEP 3 SPECIFIC FIXES - BANK TRANSFER TAB */
/* Ensure step 3 bottom bar is always visible */
.gp-step-3 .gp-bottom-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  padding: 20px !important;
  margin-top: 25px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Make sure place order section is visible in step 3 */
.gp-step-3 .gp-place-order-right {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 !important;
}

/* Force place order button to be visible */
.gp-step-3 #place_order,
.gp-step-3 .place-order {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

/* Bank transfer panel specific fixes */
#gp-bank-transfer-panel {
  display: none !important;
}

#gp-bank-transfer-panel.active {
  display: block !important;
}

/* Ensure form panels don't hide the bottom bar */
.gp-pay-panels {
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
}

/* Fix for step 3 payment wrap height */
.gp-step-3 .gp-payment-wrap {
  min-height: 200px !important;
  position: relative !important;
}

/* Make sure WC payment section doesn't overflow */
.gp-step-3 .gp-wc-payment-left {
  min-height: 50px !important;
  position: relative !important;
}

/* =========================================================
   STEP VISIBILITY FIXES
========================================================= */
/* Make sure all steps are properly positioned */
.gp-step {
  display: none !important;
  margin-bottom: 25px !important;
  width: 100% !important;
  position: relative !important;
}

.gp-step.gp-visible {
  display: block !important;
  animation: gp-fadeIn 0.3s ease !important;
}

/* Step 3 specific visibility */
.gp-step-3.gp-visible {
  display: flex !important;
  flex-direction: column !important;
  min-height: 600px !important;
}

/* =========================================================
   BOTTOM BAR FIXES - NO GAP VERSION
========================================================= */
.gp-bottom-bar {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin-top: 25px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  width: 100% !important;
}

/* Back button alignment - TOP aligned */
.gp-bottom-bar .gp-btn-ghost {
  align-self: flex-start !important;
  margin-top: 0 !important;
  order: 1 !important;
  flex: 0 0 auto !important;
}

/* Place order section alignment - NO GAP */
.gp-bottom-bar .gp-place-order-right {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0 !important; /* GAP REMOVED */
  order: 2 !important;
  margin-top: 0 !important;
}

/* Terms checkbox container - NO GAP */
#gpc-3-terms-wrap {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  gap: 8px !important; /* Only checkbox and label gap */
}

/* Terms checkbox label */
#gpc-3-terms-wrap label[for="gpc-3_terms_confirm"] {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #495057 !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* Place order button wrapper - NO GAP */
.gp-bottom-bar .gp-place-order-right .place-order {
  width: 100% !important;
  max-width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important; /* NO GAP */
  margin: 0 !important;
  padding: 0 !important;
}

/* Place order button - NO GAP */
.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block !important;
  float: none !important;
  height: 50px !important;
  border-radius: 100px !important;
  color: #fff !important;
  background-color: var(--gp-primary) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 16px !important;
}

.woocommerce-checkout #payment #place_order:hover {
  background-color: #ea006f !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.woocommerce-checkout #payment #place_order[disabled] {
  background: #cccccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7 !important;
}

/* =========================================================
   RESPONSIVE FIXES - CHECKOUT-2 SPECIFIC
========================================================= */
@media (max-width: 992px) {
  /* Mobile: One column layout with proper alignment */
  .gp-checkout-container {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .gp-checkout-steps,
  .gp-checkout-container .gp-basket-sidebar {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    position: relative !important;
    top: 0 !important;
    margin-bottom: 20px !important;
    align-self: stretch !important;
  }

  .gp-checkout-container .gp-basket-sidebar {
    order: 2 !important;
  }

  .gp-step > .gp-card {
    padding: 20px !important;
    margin-bottom: 15px !important;
  }
  
  /* Step 3 mobile fixes */
  .gp-step-3.gp-visible {
    min-height: auto !important;
  }
  
  .gp-bottom-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  
  /* Mobile: Stack items vertically */
  .gp-bottom-bar .gp-btn-ghost {
    width: 100% !important;
    order: 1 !important;
  }
  
  .gp-bottom-bar .gp-place-order-right {
    width: 100% !important;
    align-items: stretch !important;
    order: 2 !important;
    gap: 0 !important;
  }
  
  .gp-bottom-bar .gp-place-order-right .place-order {
    max-width: 100% !important;
    gap: 0 !important;
  }
  
  /* Mobile: Center align terms checkbox */
  #gpc-3-terms-wrap {
    justify-content: center !important;
  }
  
  /* Checkout-2 mobile fixes */
  .gp-step-1 .gpc-form-row-2,
  .gp-step-1 .gpc-address-line-group,
  .gp-step-1 .gpc-city-group {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .gp-step-1 .gpc-field-title {
    width: 100% !important;
  }
  
  .gp-step-1 .gpc-manual-toggle {
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  /* Smaller screens */
  .gp-step-3 .gp-bottom-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }
  
  .gp-step-3 .gp-place-order-right {
    width: 100% !important;
  }
  
  .woocommerce-checkout #payment #place_order {
    font-size: 16px !important;
    padding: 14px !important;
  }
  
  /* Checkout-2 smaller screens */
  .gp-step-1 .gpc-form-field input,
  .gp-step-1 .gpc-form-field select {
    padding: 10px 12px !important;
    font-size: 14px !important;
    height: 44px !important;
  }
}

@media (max-width: 576px) {
  /* Mobile small screens */
  .gp-checkout-container .gp-basket-sidebar {
    padding: 15px !important;
  }
  
  /* Adjust terms checkbox for small screens */
  #gpc-3-terms-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
  
  #gpc-3-terms-wrap label[for="gpc-3_terms_confirm"] {
    text-align: center !important;
    font-size: 14px !important;
  }
  
  /* Checkout-2 small screens */
  .gp-step-1 .gp-card {
    padding: 15px !important;
  }
  
  .gp-step-1 #gp-manual-address-fields {
    padding: 15px !important;
  }
}

/* =========================================================
   COMMON STEP STYLES
========================================================= */
.gp-step {
  display: none !important;
  margin-bottom: 25px !important;
  width: 100% !important;
}

.gp-step.gp-visible {
  display: block !important;
}

.gp-step > .gp-card {
  background: var(--gp-card) !important;
  border-radius: var(--gp-radius) !important;
  padding: 25px !important;
  border: 1px solid var(--gp-border) !important;
  box-shadow: var(--gp-shadow-sm) !important;
  margin-bottom: 20px !important;
  transition: box-shadow 0.3s ease !important;
}

.gp-step > .gp-card:hover {
  box-shadow: var(--gp-shadow-md) !important;
}

.gp-step-header {
  display: flex;
  align-items: center;
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
}

.gp-step-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gp-text);
  margin: 0 !important;
  padding: 0 !important;
}

.gp-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.gp-step-summary {
  background: var(--gp-card);
  border-radius: var(--gp-radius);
  padding: 18px;
  box-shadow: var(--gp-shadow-sm);
  margin-bottom: 15px;
  border: 1px solid var(--gp-border);
  font-size: 14px;
}

.gp-step.gp-done .gp-card {
  display: none !important;
}

.gp-step.gp-done .gp-actions {
  display: none !important;
}

/* Hide headings in step 1 */
.gp-step-1 .gp-card h1,
.gp-step-1 .gp-card h2,
.gp-step-1 .gp-card h3,
.gp-step-1 .gp-card h4,
.gp-step-1 .gp-card h5,
.gp-step-1 .gp-card h6,
.gp-step-1 .woocommerce-billing-fields h3,
.gp-step-1 .woocommerce-billing-fields__field-wrapper h3 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  opacity: 0 !important;
}

/* =========================================================
   COMMON SUMMARY STYLES
========================================================= */
.gp-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-summary-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--gp-text);
}

.gp-summary-sub {
  color: var(--gp-sub);
  font-size: 13px;
  margin-top: 3px;
}

.gp-summary-block {
  margin-top: 12px;
}

.gp-summary-block-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.gp-summary-line {
  color: var(--gp-sub);
  margin: 4px 0;
  font-size: 13px;
}

.gp-summary-edit {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  color: var(--gp-primary);
  padding: 0;
  white-space: nowrap;
  font-size: 13px;
}

/* =========================================================
   COMMON FORM STYLES (for Checkout-3 and others)
========================================================= */
.woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.woocommerce-billing-fields__field-wrapper .form-row {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

/* Form inputs - COMMON */
.woocommerce .checkout .input-text,
.woocommerce .checkout input[type="text"],
.woocommerce .checkout input[type="email"],
.woocommerce .checkout input[type="tel"],
.woocommerce .checkout select,
.woocommerce .checkout textarea {
  border: 1px solid var(--gp-border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  background: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  height: 46px !important;
  line-height: 1.4 !important;
}

.woocommerce .checkout textarea {
  height: auto !important;
  min-height: 100px !important;
  resize: vertical !important;
}

.woocommerce .checkout .input-text:focus,
.woocommerce .checkout input[type="text"]:focus,
.woocommerce .checkout input[type="email"]:focus,
.woocommerce .checkout input[type="tel"]:focus,
.woocommerce .checkout select:focus,
.woocommerce .checkout textarea:focus {
  border-color: var(--gp-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(65, 0, 159, 0.1) !important;
}

.woocommerce form .form-row label {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: var(--gp-text) !important;
  display: block !important;
}

/* Form validation */
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
  border-color: var(--gp-success) !important;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--gp-error) !important;
}

/* =========================================================
   COMMON BUTTON STYLES
========================================================= */
.gp-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px !important;
  padding: 0 !important;
}

.gp-actions-right {
  justify-content: flex-end;
}

.gp-actions-split {
  justify-content: space-between;
  align-items: center;
}

.gp-btn {
  border: none !important;
  outline: none !important;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
}

.gp-btn-primary {
  background: var(--gp-primary) !important;
  color: #fff !important;
  box-shadow: var(--gp-shadow-sm);
}

.gp-btn-primary:hover {
  background: var(--gp-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--gp-shadow-md);
}

.gp-btn-primary[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.gp-btn-ghost {
  background: transparent !important;
  color: var(--gp-text) !important;
  padding: 14px 20px !important;
  border: 1px solid var(--gp-border) !important;
  align-self: flex-start !important;
  margin-top: 0 !important;
}

.gp-btn-ghost:hover {
  background: #f9fafb !important;
  border-color: var(--gp-primary) !important;
  color: var(--gp-primary) !important;
}

.gp-arr {
  margin-right: 6px;
  font-size: 16px;
}

/* =========================================================
   COMMON TABS STYLES
========================================================= */
.gp-choice-wrap h3 {
  margin: 0 0 16px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--gp-text) !important;
  padding: 0 !important;
}

.gp-choice-grid {
  display: grid;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

.gp-choice-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gp-choice-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gp-choice-btn {
  border: 1px solid var(--gp-border);
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.gp-choice-btn:hover {
  border-color: var(--gp-primary);
  box-shadow: var(--gp-shadow-sm);
}

.gp-choice-btn.is-active {
  border-color: var(--gp-primary);
  background: rgba(65, 0, 159, 0.05);
  box-shadow: 0 0 0 1px var(--gp-primary);
}

.gp-choice-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.gp-choice-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.3s ease;
}

.gp-choice-btn.is-active .gp-choice-dot {
  border-color: var(--gp-primary);
}

.gp-choice-btn.is-active .gp-choice-dot:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gp-primary);
}

.gp-choice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.gp-choice-title {
  font-weight: 600;
  color: var(--gp-text);
  font-size: 15px;
}

.gp-choice-sub {
  font-size: 12px;
  color: var(--gp-sub);
  line-height: 1.3;
}

.gp-choice-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gp-primary);
  opacity: 0.9;
}

/* Payment panels */
.gp-pay-panels {
  margin-top: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--gp-border);
}

.gp-pay-panel .form-row {
  margin: 0 0 16px 0 !important;
}

.gp-pay-panel .form-row label {
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  font-size: 13px !important;
}

.gp-pay-panel .input-text {
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  border: 1px solid var(--gp-border) !important;
  font-size: 14px !important;
  height: 44px !important;
}

/* =========================================================
   COMMON ORDER REVIEW TABLE STYLES
========================================================= */
#order_review {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

#order_review table.shop_table {
  width: 100% !important;
  border: none !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  display: table !important;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
  border: none !important;
  padding: 10px 0 !important;
  vertical-align: top !important;
  line-height: 1.4 !important;
}

#order_review table.shop_table tr:not(:last-child) {
  border-bottom: 1px solid var(--gp-border) !important;
}

#order_review table.shop_table tr.order-total {
  border-top: 2px solid var(--gp-border) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-top: 10px !important;
}

#order_review table.shop_table tr.order-total td {
  padding-top: 15px !important;
  padding-bottom: 5px !important;
}

#order_review table.shop_table .product-name {
  font-weight: 600 !important;
  color: var(--gp-text) !important;
  font-size: 14px !important;
}

#order_review table.shop_table .product-total {
  text-align: right !important;
  font-weight: 600 !important;
  color: var(--gp-text) !important;
  font-size: 14px !important;
}

#order_review tr.shipping,
#order_review .woocommerce-shipping-totals,
#order_review tr.woocommerce-shipping-totals,
#order_review .cart-subtotal,
#order_review tr.cart-subtotal {
  display: none !important;
}

/* Bold and Big Total Price */
#order_review table.shop_table tr.order-total {
  border-top: 2px solid var(--gp-primary) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin-top: 15px !important;
  background: #f8f5ff;
  border-radius: 8px;
  padding: 5px 0;
}

#order_review table.shop_table tr.order-total td {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  color: var(--gp-primary) !important;
  font-size: 20px !important;
  letter-spacing: -0.5px;
}

#order_review table.shop_table tr.order-total .woocommerce-Price-amount {
  font-size: 24px !important;
  font-weight: 800 !important;
}

/* Price Alignment Improvements */
#order_review table.shop_table td.product-total,
#order_review table.shop_table td:last-child {
  text-align: right !important;
  vertical-align: middle !important;
  padding-right: 0 !important;
}

#order_review table.shop_table th:last-child {
  text-align: right !important;
}

/* =========================================================
   COMMON CLEANUP STYLES
========================================================= */
.gp-scope .woocommerce-form-coupon-toggle,
.gp-scope #checkout_coupon,
.gp-scope #order_review_heading,
.gp-scope #billing_country_field,
.gp-scope .woocommerce-additional-fields,
.gp-scope .col2-set .col-2 .woocommerce-shipping-fields,
.gp-scope #ship-to-different-address,
.gp-scope .shipping_address,
.gp-scope .shopengine-checkout-order-review,
.gp-scope .shopengine-checkout__order-review,
.gp-scope .shopengine-coupon,
.gp-scope .shopengine-checkout-coupon {
  display: none !important;
  visibility: hidden !important;
}

.gp-scope .gp-total-quantity {
  display: none !important;
}

/* Table overrides */
.gp-scope .woocommerce table.shop_table {
  width: 100% !important;
  border: none !important;
  table-layout: fixed !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.gp-scope .woocommerce table.shop_table th,
.gp-scope .woocommerce table.shop_table td {
  border: none !important;
  padding: 10px 0 !important;
  vertical-align: top !important;
  line-height: 1.4 !important;
}

.gp-scope .woocommerce table.shop_table,
.gp-scope .woocommerce table.shop_table tbody tr,
.gp-scope .woocommerce table.shop_table tfoot th,
.gp-scope .woocommerce table.shop_table tfoot td {
  border-top: none !important;
}

.gp-scope .woocommerce table.shop_table .product-name {
  font-weight: 600 !important;
  color: #111827 !important;
  font-size: 14px !important;
}

.gp-scope .woocommerce table.shop_table .product-total {
  text-align: right !important;
  font-weight: 600 !important;
  color: #111827 !important;
  font-size: 14px !important;
}

.gp-scope .woocommerce table.shop_table tr:not(:last-child) {
  border-bottom: 1px solid #e5e7eb !important;
}

/* =========================================================
   COMMON RESPONSIVE STYLES
========================================================= */
@media (max-width: 992px) {
  /* Mobile: One column layout */
  .gp-checkout-container {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .gp-checkout-steps,
  .gp-checkout-container .gp-basket-sidebar {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin-bottom: 20px !important;
  }

  .gp-checkout-container .gp-basket-sidebar {
    order: 2 !important;
  }

  .gp-step > .gp-card {
    padding: 20px !important;
    margin-bottom: 15px !important;
  }
}

@media (max-width: 768px) {
  /* Smaller screens */
  .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .gp-choice-grid-2,
  .gp-choice-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .gp-step-title-wrap {
    font-size: 18px !important;
  }

  .gp-step-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .gp-btn {
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  /* Mobile small screens */
  .gp-checkout-container .gp-basket-sidebar {
    padding: 15px !important;
  }
}

/* =========================================================
   COMMON ANIMATIONS
========================================================= */
@keyframes gp-fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   COMMON QSM STYLES (if needed for all checkout pages)
========================================================= */
.gp-qsm-container {
  animation: gp-fadeIn 0.3s ease;
  padding: 20px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--gp-border);
  margin-top: 20px;
}

.gp-qsm-container .form-row {
  margin-bottom: 20px !important;
}

.gp-qsm-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gp-text);
}

.gp-qsm-container input,
.gp-qsm-container select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gp-border);
  border-radius: 8px;
  font-size: 15px;
}

.gp-qsm-container input:focus,
.gp-qsm-container select:focus {
  border-color: var(--gp-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 0, 159, 0.1);
}

/* =========================================================
   Checkout-3 Custom Fields Styling - Common CSS
========================================================= */

/* Find Address aur Manual Entry Sections */
.gpc-3-address-sections {
    margin-bottom: 25px;
}

/* Find Address Section */
.gpc-3-find-address {
    margin-bottom: 25px;
}

.gpc-3-postcode-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.gpc-3-postcode-field {
    flex: 1;
    min-width: 250px;
}

.gpc-3-find-btn {
    padding: 12px 24px;
    background-color: #41009f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.gpc-3-find-btn:hover {
    background-color: #2d0070;
}

/* Enter Address Manually Section */
.gpc-3-manual-address-toggle {
    margin-bottom: 20px;
}

.gpc-3-manual-toggle-btn {
    background: none;
    border: none;
    color: #41009f;
    text-decoration: underline;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
}

.gpc-3-manual-toggle-btn:hover {
    color: #2d0070;
}

/* Manual Address Form */
.gpc-3-manual-address-form {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 15px;
    display: none;
}

.gpc-3-manual-address-form.active {
    display: block;
    animation: gpc-3-fadeIn 0.3s ease;
}

/* Address Line 1 & 2 Group */
.gpc-3-address-line-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Town/City & County/State Group */
.gpc-3-town-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Address Lookup Results */
.gpc-3-address-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    display: none;
}

.gpc-3-address-results.active {
    display: block;
}

.gpc-3-address-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gpc-3-address-result-item:hover {
    background-color: #f8f9fa;
}

.gpc-3-address-result-item:last-child {
    border-bottom: none;
}

/* Required field indicators */
.gpc-3-required-field label:after {
    content: " *";
    color: #e74c3c;
}

/* Form field spacing */
.gpc-3-form-group {
    margin-bottom: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gpc-3-address-line-group,
    .gpc-3-town-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gpc-3-postcode-wrapper {
        flex-direction: column;
    }
    
    .gpc-3-postcode-field {
        min-width: 100%;
    }
    
    .gpc-3-find-btn {
        width: 100%;
    }
}

/* =========================================================
   Checkout-3 Common Form Fields Styling
========================================================= */

/* Form Layout Grid */
.gpc-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.gpc-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gpc-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Form Fields Styling */
.gpc-form-field {
    margin-bottom: 0;
}

.gpc-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.gpc-form-field label span.required {
    color: #e74c3c;
    margin-left: 2px;
}

.gpc-form-field input,
.gpc-form-field select,
.gpc-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.gpc-form-field input:focus,
.gpc-form-field select:focus,
.gpc-form-field textarea:focus {
    outline: none;
    border-color: #41009f;
    box-shadow: 0 0 0 3px rgba(65, 0, 159, 0.1);
}

.gpc-form-field input::placeholder,
.gpc-form-field textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Title field specific - small width */
.gpc-field-title {
    width: 120px;
}

/* Manual Address Section */
.gpc-manual-address-section { 
    padding: 20px;
    margin-top: 20px;
    display: none;
    animation: gpc-fadeIn 0.3s ease;
}

.gpc-manual-address-section.active {
    display: block;
}

/* Manual Address Toggle Button */
.gpc-manual-toggle {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.gpc-manual-toggle-btn {
    background: none;
    border: none;
    color: #41009f;
    text-decoration: underline;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 0;
    transition: color 0.2s;
}

.gpc-manual-toggle-btn:hover {
    color: #2d0070;
    text-decoration: none;
}

/* Address Line Groups */
.gpc-address-line-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* City/Town and County/State Group */
.gpc-city-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Phone field with note */
.gpc-phone-note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gpc-form-row-2,
    .gpc-form-row-3,
    .gpc-address-line-group,
    .gpc-city-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gpc-field-title {
        width: 100%;
    }
    
    .gpc-manual-toggle {
        text-align: center;
    }
}

/* Animation */
@keyframes gpc-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gpc-3-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error State */
.gpc-form-field.error input,
.gpc-form-field.error select,
.gpc-form-field.error textarea {
    border-color: #e74c3c;
}

.gpc-form-field.error .gpc-error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

.gpc-form-field .gpc-error-message {
    display: none;
}

/* Success State */
.gpc-form-field.success input,
.gpc-form-field.success select,
.gpc-form-field.success textarea {
    border-color: #28a745;
}

/* Hide original WooCommerce labels */
.gpc-billing-fields .woocommerce-input-wrapper {
    width: 100%;
}

/* Remove default WooCommerce spacing */
.gpc-billing-fields .form-row {
    margin-bottom: 0;
    padding: 0;
}

/* Checkout-3 specific overrides */
.gpc-3-step-1 .gpc-billing-fields {
    padding: 0;
    margin: 0;
}

.gpc-3-step-1 .gpc-billing-fields .gpc-form-row {
    margin-bottom: 20px;
}

.gpc-3-step-1 .gpc-billing-fields .gpc-form-field {
    margin-bottom: 0;
}

.gpc-3-step-1 .gpc-billing-fields label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.gpc-3-step-1 .gpc-billing-fields input,
.gpc-3-step-1 .gpc-billing-fields select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.gpc-3-step-1 .gpc-billing-fields input:focus,
.gpc-3-step-1 .gpc-billing-fields select:focus {
    outline: none;
    border-color: #41009f;
    box-shadow: 0 0 0 3px rgba(65, 0, 159, 0.1);
}

.gpc-3-step-1 .gpc-field-title {
    width: 120px;
}

.gpc-3-step-1 .gpc-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gpc-3-step-1 .gpc-phone-note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.gpc-3-step-1 .gpc-manual-toggle {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.gpc-3-step-1 .gpc-manual-toggle-btn {
    background: none;
    border: none;
    color: #41009f;
    text-decoration: underline;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 0;
    transition: color 0.2s;
}

.gpc-3-step-1 .gpc-manual-toggle-btn:hover {
    color: #2d0070;
    text-decoration: none;
}

.gpc-3-step-1 .gpc-manual-address-section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
    display: none;
    animation: gpc-fadeIn 0.3s ease;
}

.gpc-3-step-1 .gpc-manual-address-section.active {
    display: block;
}

.gpc-3-step-1 .gpc-manual-address-section h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.gpc-3-step-1 .gpc-address-line-group,
.gpc-3-step-1 .gpc-city-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}/* Checkout-3: Force hide PayPal smart/express buttons/widgets */
.woocommerce-checkout .ppcp-button,
.woocommerce-checkout .ppcp-button-container,
.woocommerce-checkout #ppcp-messages,
.woocommerce-checkout .woocommerce-PayPalCommerce,
.woocommerce-checkout .paypal-buttons,
.woocommerce-checkout .paypal-button,
.woocommerce-checkout .ppec-checkout-buttons,
.woocommerce-checkout #woo_pp_ec_button,
.woocommerce-checkout .wc-ppcp-checkout-container,
.woocommerce-checkout .wc-ppcp-checkout-buttons,
.woocommerce-checkout .ppcp-smart-button,
.woocommerce-checkout .ppcp-credit-card-button {
  display: none !important;
  visibility: hidden !important;
}
