/**
 * Modern Checkout Page Styles
 * Creative, animated, and responsive design for WooCommerce checkout
 *
 * @package Albarq
 * @version 1.0.0
 */

/* ============================================
   Checkout Wrapper & Container
   ============================================ */

/* Force full width for checkout page - Remove all container restrictions */
body.woocommerce-checkout,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout #primary {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Remove container padding from checkout page */
body.woocommerce-checkout .container {
  max-width: 100% !important;
  padding: 0 !important;
}

.olympic-checkout-wrapper {
  min-height: 100vh;
  padding: 40px 0;
  background: var(--color-bg) !important;
  width: 100% !important;
  margin: 0 !important;
  position: relative;
}

.olympic-checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Ensure WooCommerce notices are visible */
.woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

/* ============================================
   Checkout Header - Animated
   ============================================ */
.checkout-header {
  margin-bottom: 40px;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.checkout-icon-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff8ec7 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.checkout-icon {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.checkout-header-text {
  flex: 1;
}

.checkout-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checkout-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

/* ============================================
   Progress Steps
   ============================================ */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
}

.step-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-muted);
  transition: all 0.3s ease;
}

.step-check {
  position: absolute;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  color: white;
}

.progress-step.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.3);
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.progress-step.active .step-number {
  color: white;
}

.progress-step.completed .step-circle {
  background: var(--color-success);
  border-color: var(--color-success);
}

.progress-step.completed .step-number {
  opacity: 0;
  transform: scale(0);
}

.progress-step.completed .step-check {
  opacity: 1;
  transform: scale(1);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--color-text);
}

.progress-line {
  flex: 1;
  height: 3px;
  background: var(--color-border);
  position: relative;
  margin: 0 -8px;
  margin-bottom: 32px;
  transition: background 0.4s ease;
}

.progress-step.completed + .progress-line {
  background: var(--color-success);
}

/* ============================================
   Checkout Grid Layout
   ============================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  animation: fadeInUp 0.6s ease-out;
}

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

@media (min-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr 420px;
  }
}

/* ============================================
   Checkout Form Column
   ============================================ */
.checkout-form-column {
  order: 2;
}

@media (min-width: 1024px) {
  .checkout-form-column {
    order: 1;
  }
}

/* ============================================
   Checkout Section
   ============================================ */
.checkout-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  animation: slideInRight 0.5s ease-out;
  transition: all 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkout-section:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.section-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff8ec7 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.section-icon svg {
  color: white;
}

.section-title-wrapper {
  flex: 1;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--color-text);
}

.section-description {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.section-content {
  /* Form fields styling */
}

/* ============================================
   Form Fields Styling
   ============================================ */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-row {
  margin: 0 !important;
}

.form-row.form-row-wide {
  grid-column: 1 / -1;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-row label .required {
  color: var(--color-primary);
  font-weight: 700;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
  transform: translateY(-1px);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row .select2-container {
  width: 100% !important;
}

.form-row .select2-container .select2-selection--single {
  height: 50px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.form-row .select2-container--focus .select2-selection--single {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
}

/* Checkbox & Radio Styling */
.form-row input[type="checkbox"],
.form-row input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

/* Ship to different address */
.shipping_address {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--color-border);
  animation: slideDown 0.3s ease-out;
}

/* ============================================
   Checkout Summary Column
   ============================================ */
.checkout-summary-column {
  order: 1;
}

@media (min-width: 1024px) {
  .checkout-summary-column {
    order: 2;
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }
}

/* ============================================
   Order Summary Card
   ============================================ */
.checkout-summary-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--color-text);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.summary-title svg {
  color: var(--color-primary);
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.woocommerce-checkout-review-order-table thead {
  display: none;
}

.woocommerce-checkout-review-order-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.woocommerce-checkout-review-order-table tbody tr:last-child {
  border-bottom: none;
}

.woocommerce-checkout-review-order-table td {
  padding: 16px 0;
  vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 15px;
}

.woocommerce-checkout-review-order-table .product-total {
  text-align: left;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 14px;
}

/* Cart Subtotal, Shipping, Total */
.woocommerce-checkout-review-order-table tfoot tr {
  border-top: 2px solid var(--color-border);
}

.woocommerce-checkout-review-order-table tfoot th {
  padding: 16px 0;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.woocommerce-checkout-review-order-table tfoot td {
  padding: 16px 0;
  text-align: left;
  font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.woocommerce-checkout-review-order-table .order-total td {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ============================================
   Payment Card
   ============================================ */
.checkout-payment-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  animation: slideInLeft 0.6s ease-out;
}

.payment-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--color-text);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.payment-title svg {
  color: var(--color-primary);
}

/* Payment Methods */
.woocommerce-checkout-payment {
  background: transparent;
  border: none;
  padding: 0;
}

.wc_payment_methods {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.wc_payment_method {
  margin-bottom: 12px;
}

.wc_payment_method label {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--color-text);
}

.wc_payment_method label:hover {
  border-color: var(--color-primary);
  background: rgba(255, 105, 180, 0.05);
  transform: translateX(-2px);
}

.wc_payment_method input[type="radio"] {
  margin-left: 12px;
  margin-right: 0;
}

.wc_payment_method.active label,
.wc_payment_method input[type="radio"]:checked + label {
  border-color: var(--color-primary);
  background: rgba(255, 105, 180, 0.1);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
}

.payment_box {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted);
  animation: slideDown 0.3s ease-out;
}

.payment_box p {
  margin: 0;
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
  margin: 20px 0;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-border);
}

.woocommerce-terms-and-conditions {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.woocommerce-form__label-for-checkbox.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Place Order Button */
#place_order {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #003d7a 0%, #0052a3 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: none;
  box-shadow: 0 12px 32px rgba(0, 61, 122, 0.3);
  position: relative;
  overflow: hidden;
}

#place_order::before {
  display: none;
}

#place_order:hover::before {
  display: none;
}

#place_order:hover {
  transform: none;
  box-shadow: 0 12px 32px rgba(0, 61, 122, 0.3);
}

#place_order:active {
  transform: none;
}

#place_order.loading {
  pointer-events: none;
  opacity: 0.7;
}

#place_order.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.05) 0%, rgba(255, 142, 199, 0.05) 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255, 105, 180, 0.2);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trust-badge svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ============================================
   Toast Notification
   ============================================ */
.checkout-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-text);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  font-weight: 600;
  max-width: 400px;
}

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

.checkout-toast.success {
  background: var(--color-success);
}

.checkout-toast.error {
  background: #ef4444;
}

/* ============================================
   WooCommerce Notices
   ============================================ */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  animation: slideDown 0.3s ease-out;
}

.woocommerce-error {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.woocommerce-message {
  background: #f0fdf4;
  border-color: var(--color-success);
  color: #166534;
}

.woocommerce-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

/* ============================================
   Loading States
   ============================================ */
.processing {
  pointer-events: none;
  opacity: 0.6;
}

.blockUI.blockOverlay {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(4px);
}

.blockUI.blockMsg {
  border: none !important;
  background: var(--color-primary) !important;
  color: white !important;
  padding: 20px 32px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.3) !important;
  font-weight: 600 !important;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1023px) {
  .checkout-summary-column {
    position: static;
  }

  .checkout-grid {
    gap: 20px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 767px) {
  .olympic-checkout-wrapper {
    padding: 20px 0;
  }

  .olympic-checkout-container {
    padding: 0 16px;
  }

  /* Header */
  .checkout-header {
    margin-bottom: 24px;
  }

  .checkout-header-content {
    gap: 16px;
  }

  .checkout-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .checkout-title {
    font-size: 24px;
  }

  .checkout-subtitle {
    font-size: 14px;
  }

  /* Progress Steps */
  .checkout-progress {
    padding: 16px;
    flex-wrap: wrap;
  }

  .progress-step {
    flex: 1;
    min-width: 80px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
  }

  .step-number {
    font-size: 16px;
  }

  .step-label {
    font-size: 11px;
  }

  .progress-line {
    display: none;
  }

  /* Sections */
  .checkout-section {
    padding: 20px;
    margin-bottom: 16px;
  }

  .section-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-icon {
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 18px;
  }

  .section-description {
    font-size: 13px;
  }

  /* Form Fields */
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-row input,
  .form-row textarea,
  .form-row select {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Summary Cards */
  .checkout-summary-card,
  .checkout-payment-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .summary-title,
  .payment-title {
    font-size: 18px;
  }

  .woocommerce-checkout-review-order-table .order-total td {
    font-size: 20px;
  }

  /* Place Order Button */
  #place_order {
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Trust Badges */
  .trust-badges {
    padding: 16px;
  }

  .trust-badge {
    font-size: 13px;
    padding: 10px;
  }

  /* Toast */
  .checkout-toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

/* ============================================
   RTL Support
   ============================================ */
[dir="rtl"] .checkout-header-content,
[dir="rtl"] .section-header,
[dir="rtl"] .summary-title,
[dir="rtl"] .payment-title,
[dir="rtl"] .trust-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .form-row input[type="checkbox"],
[dir="rtl"] .form-row input[type="radio"] {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .wc_payment_method input[type="radio"] {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .wc_payment_method label:hover,
[dir="rtl"] .trust-badge:hover {
  transform: translateX(2px);
}

[dir="rtl"] .checkout-toast {
  right: auto;
  left: 30px;
}

[dir="rtl"] .woocommerce-error,
[dir="rtl"] .woocommerce-message,
[dir="rtl"] .woocommerce-info {
  border-left: none;
  border-right: 4px solid;
}

@media (max-width: 767px) {
  [dir="rtl"] .checkout-toast {
    left: 20px;
    right: 20px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .checkout-header,
  .checkout-progress,
  .trust-badges,
  .checkout-toast,
  #place_order {
    display: none;
  }

  .checkout-section,
  .checkout-summary-card,
  .checkout-payment-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */
.form-row input:focus-visible,
.form-row textarea:focus-visible,
.form-row select:focus-visible,
#place_order:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-checkout:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
}

/* ============================================
   Coupon Form Styling
   ============================================ */
.woocommerce-form-coupon-toggle {
  margin-bottom: 20px;
}

.woocommerce-form-coupon {
  background: var(--color-surface);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  animation: slideDown 0.3s ease-out;
}

.woocommerce-form-coupon p {
  margin: 0 0 16px 0;
}

.woocommerce-form-coupon .form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.woocommerce-form-coupon input[type="text"] {
  flex: 1;
}

.woocommerce-form-coupon button {
  padding: 14px 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.woocommerce-form-coupon button:hover {
  background: #ff8ec7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* ============================================
   Shipping Methods
   ============================================ */
#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
}

#shipping_method li {
  margin-bottom: 12px;
}

#shipping_method label {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

#shipping_method label:hover {
  border-color: var(--color-primary);
  background: rgba(255, 105, 180, 0.05);
}

#shipping_method input[type="radio"]:checked + label {
  border-color: var(--color-primary);
  background: rgba(255, 105, 180, 0.1);
}

#shipping_method input[type="radio"] {
  margin-left: 12px;
}

/* ============================================
   Additional Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger animations for form sections */
.checkout-section:nth-child(1) {
  animation-delay: 0s;
}

.checkout-section:nth-child(2) {
  animation-delay: 0.1s;
}

.checkout-section:nth-child(3) {
  animation-delay: 0.2s;
}



/* ============================================
   Disable all animations & transitions on Checkout page
   ============================================ */
body.woocommerce-checkout *,
body.woocommerce-checkout *::before,
body.woocommerce-checkout *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
