/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ========================================
   CUSTOM CART SHORTCODE STYLES
   ======================================== */

.custom-cart-wrapper {
  font-family: "Inter", sans-serif;
  padding: 0;
}

.custom-cart-title-main {
  font-family: "Libre Baskerville", serif;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0 0 30px 0;
}

.custom-cart-container {
  width: 100%;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.custom-cart-left {
  flex: 1;
}

.custom-cart-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  position: relative;
}

.custom-cart-item-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #f8f8f8;
  border-radius: 6px;
  overflow: hidden;
}

.custom-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-cart-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.custom-cart-item-info {
  flex: 1;
}

.custom-cart-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.custom-cart-item-color {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.custom-cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #ff0000;
  font-size: 20px;
  line-height: 1;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.custom-cart-remove:hover {
  opacity: 1;
}

.custom-cart-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #15803d;
  margin-bottom: 12px;
}

.custom-cart-stock svg {
  flex-shrink: 0;
}

.custom-cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: white;
}

.custom-cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.custom-cart-qty-btn:hover {
  background: #f5f5f5;
}

.custom-cart-qty-value {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.custom-cart-price {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.custom-cart-continue {
  background: white;
  border: 2px solid #ff7300;
  border-radius: 50px;
  padding: 12px 28px;
  color: #ff7300;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  margin-top: 8px;
}

.custom-cart-continue:hover {
  background: #ff7300;
  color: white;
}

.custom-cart-right {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.custom-checkout-card {
  background: white;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.custom-checkout-title {
  font-family: "Libre Baskerville", serif;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 0 0 20px 0;
}

.custom-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
}

.custom-summary-label {
  color: #333;
  font-weight: 400;
}

.custom-summary-value {
  color: #000;
  font-weight: 400;
}

.custom-summary-value.free {
  color: #15803d;
}

.custom-summary-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 16px 0;
}

.custom-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 20px 0;
  font-size: 15px;
}

.custom-summary-total .custom-summary-label {
  font-weight: 400;
  color: #000;
}

.custom-summary-total .custom-summary-value {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.custom-checkout-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #15803d;
  margin-bottom: 18px;
}

.custom-checkout-stock svg {
  flex-shrink: 0;
}

.custom-checkout-btn {
  width: 100%;
  background: #ff7300;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
  text-align: center;
  display: block;
  text-decoration: none;
}

.custom-checkout-btn:hover {
  background: #e66600;
}

.custom-benefits {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.custom-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.custom-benefit-item:last-child {
  margin-bottom: 0;
}

.custom-benefit-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Responsive Styles */
@media (max-width: 1024px) {
  .custom-cart-container {
    flex-direction: column;
    gap: 30px;
  }

  .custom-cart-left {
    width: 100%;
  }

  .custom-cart-right {
    width: 100%;
    max-width: 100%;
    position: static;
  }

  .custom-checkout-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .custom-cart-wrapper {
    padding: 0;
  }

  .custom-cart-container {
    gap: 20px;
  }

  .custom-cart-item {
    padding: 16px;
  }

  .custom-cart-item-image {
    width: 100px;
    height: 100px;
  }

  .custom-cart-item-title {
    font-size: 15px;
  }

  .custom-cart-item-color {
    font-size: 13px;
  }

  .custom-cart-stock {
    font-size: 12px;
  }

  .custom-cart-price {
    font-size: 15px;
  }

  .custom-checkout-card {
    padding: 24px;
  }

  .custom-checkout-title {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .custom-cart-item {
    flex-direction: column;
    gap: 12px;
  }

  .custom-cart-item-image {
    width: 100%;
    height: 180px;
  }

  .custom-cart-item-header {
    margin-bottom: 8px;
  }

  .custom-cart-item-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .custom-cart-qty {
    width: 100%;
    max-width: 150px;
  }

  .custom-cart-price {
    align-self: flex-end;
  }

  .custom-cart-continue {
    width: 100%;
    text-align: center;
  }

  .custom-checkout-card {
    padding: 20px;
  }

  .custom-benefit-item {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .custom-cart-item {
    padding: 12px;
  }

  .custom-cart-item-title {
    font-size: 14px;
  }

  .custom-checkout-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .custom-summary-row,
  .custom-summary-total {
    font-size: 14px;
  }

  .custom-checkout-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* ========================================
   CUSTOM CHECKOUT SHORTCODE STYLES
   ======================================== */

.custom-checkout-wrapper {
  background-color: #f8f9fa;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  padding: 16px 0;
}

/* Top Trust Bar - Mobile Only */
.checkout-trust-bar {
  display: none;
  background: #f9fafb;
  padding: 12px 16px;
  margin: -20px 0 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 8px;
}

.trust-bar-item:last-child {
  margin-bottom: 0;
}

.trust-bar-item i {
  color: #ea580c;
  font-size: 14px;
}

.trust-bar-rating {
  color: #fbbf24;
}

/* Secure Payment Bar - Mobile Only */
.secure-payment-bar {
  display: none;
  background: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
}

.secure-payment-bar i {
  color: #16a34a;
  font-size: 18px;
}

.secure-payment-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.payment-logos {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-logo {
  height: 20px;
  width: auto;
}

.custom-checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.custom-checkout-main {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-checkout-main > * {
  width: 100%;
}

.custom-checkout-main > form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.custom-checkout-sidebar {
  width: 360px;
  flex-shrink: 0;
}

.checkout-section {
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 16px;
}

.checkout-section-with-connector {
  padding-bottom: 32px;
  margin-bottom: 24px;
}

.checkout-section[data-step="1"] {
  padding-bottom: 32px;
}

.section-connector {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.section-connector i {
  color: #9ca3af;
  font-size: 12px;
}

.checkout-section.collapsed .section-connector {
  display: none;
}

.checkout-section.collapsed {
  opacity: 0.7 !important;
}

.checkout-section.collapsed:hover {
  opacity: 0.85 !important;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  user-select: none;
}

.checkout-section.collapsed .section-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Libre Baskerville", serif;
  color: #1e293b;
  margin: 0;
  padding: 0;
  border: none !important;
  background: none !important;
}

.step-number {
  background: #ff7700 !important;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.step-number.completed {
  background: #22c55e !important;
}

/* Hide WooCommerce default billing/shipping headings */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  display: none !important;
}

.accordion-chevron {
  transition: transform 0.3s ease;
  color: #9ca3af;
  font-size: 14px;
}

.checkout-section.collapsed .accordion-chevron {
  transform: rotate(180deg);
}

.section-content {
  display: block !important;
  max-height: 3000px;
  overflow: visible !important;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin 0.3s ease;
  opacity: 1 !important;
  visibility: visible !important;
}

.checkout-section.collapsed .section-content {
  display: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  align-items: end;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
  width: 100%;
}

.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
  width: 100%;
  max-width: 100%;
}

.form-row {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #374151;
}

/* Ensure Huisnummer label is always visible */
#billing_address_2_field label,
#shipping_address_2_field label {
  display: block !important;
  visibility: visible !important;
}

.form-row label .required {
  color: #ea580c;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* Lighter placeholder color for better UX */
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-row input::-webkit-input-placeholder,
.form-row textarea::-webkit-input-placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-row input::-moz-placeholder,
.form-row textarea::-moz-placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-row input:-ms-input-placeholder,
.form-row textarea:-ms-input-placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1e293b;
  box-shadow: 0 0 0 1px #1e293b;
}

/* Remove default validated styling - only apply after actual validation */
.form-row input,
.form-row select {
  background-color: white;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
}

.shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.shipping-method-option:hover {
  border-color: #d1d5db;
}

.shipping-method-option.selected {
  border: 2px solid #ea580c;
  background-color: #fff7ed;
  padding: 11px;
}

.shipping-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-method-info {
  display: flex;
  flex-direction: column;
}

.shipping-method-name {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.shipping-method-desc {
  font-size: 12px;
  color: #6b7280;
}

.shipping-method-price {
  text-align: right;
}

.shipping-method-cost {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.shipping-method-time {
  font-size: 12px;
  color: #16a34a;
  font-weight: 500;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method-option:hover {
  border-color: #d1d5db;
}

.payment-method-option.selected {
  border: 2px solid #ea580c;
  background-color: #fff7ed;
  padding: 11px;
}

.payment-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method-logo {
  height: 24px;
  width: auto;
}

.payment-method-info {
  display: flex;
  flex-direction: column;
}

.payment-method-name {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.payment-method-desc {
  font-size: 12px;
  color: #6b7280;
}

/* Payment method icons */
.payment-method-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
}

.payment-method-icon svg {
  display: inline-block;
  vertical-align: middle;
}

/* Apple Pay and Google Pay styling */
.payment_method_mollie_wc_gateway_applepay .payment-method-logo,
.payment_method_mollie_wc_gateway_googlepay .payment-method-logo {
  height: 24px;
  width: auto;
}

/* Ensure all Mollie payment methods display properly */
.wc_payment_methods .payment_method_mollie_wc_gateway_ideal,
.wc_payment_methods .payment_method_mollie_wc_gateway_creditcard,
.wc_payment_methods .payment_method_mollie_wc_gateway_bancontact,
.wc_payment_methods .payment_method_mollie_wc_gateway_applepay,
.wc_payment_methods .payment_method_mollie_wc_gateway_googlepay,
.wc_payment_methods .payment_method_mollie_wc_gateway_paypal {
  display: block !important;
  margin-bottom: 12px;
}

.wc_payment_methods .payment_method_mollie_wc_gateway_ideal label,
.wc_payment_methods .payment_method_mollie_wc_gateway_creditcard label,
.wc_payment_methods .payment_method_mollie_wc_gateway_bancontact label,
.wc_payment_methods .payment_method_mollie_wc_gateway_applepay label,
.wc_payment_methods .payment_method_mollie_wc_gateway_googlepay label,
.wc_payment_methods .payment_method_mollie_wc_gateway_paypal label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.wc_payment_methods .payment_method_mollie_wc_gateway_ideal label:hover,
.wc_payment_methods .payment_method_mollie_wc_gateway_creditcard label:hover,
.wc_payment_methods .payment_method_mollie_wc_gateway_bancontact label:hover,
.wc_payment_methods .payment_method_mollie_wc_gateway_applepay label:hover,
.wc_payment_methods .payment_method_mollie_wc_gateway_googlepay label:hover,
.wc_payment_methods .payment_method_mollie_wc_gateway_paypal label:hover {
  border-color: #d1d5db;
}

.wc_payment_methods input[type="radio"]:checked + label {
  border: 2px solid #ea580c !important;
  background-color: #fff7ed !important;
  padding: 11px !important;
}

.terms-checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

.terms-checkbox label {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.terms-checkbox a {
  color: #ea580c;
  text-decoration: underline;
}

.place-order-button {
  width: 100%;
  background: #ea580c;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-transform: none;
}

.place-order-button:hover {
  background: #c2410c;
}

.ssl-note {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.order-summary-card {
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: sticky;
  top: 20px;
}

.order-summary-title {
  font-size: 18px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #1e293b;
  margin: 0 0 16px 0;
}

.order-summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: white;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.cart-item-qty {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px 0;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-label {
  color: #374151;
  font-weight: 700;
}

.summary-value {
  color: #1e293b;
  font-weight: 700;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 4px 0;
  font-size: 16px;
}

.summary-total .summary-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 20px;
}

.summary-total .summary-value {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.trust-badges {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
}

.trust-badge:last-child {
  margin-bottom: 0;
}

.trust-badge i {
  color: #9ca3af;
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hide WooCommerce default loader and notices in payment section */
.woocommerce-checkout-payment .blockUI.blockOverlay {
  display: none !important;
}

.woocommerce-checkout-payment .woocommerce-NoticeGroup {
  margin-bottom: 1rem;
}

/* Hide duplicate place order buttons from WooCommerce */
#payment-methods-wrapper #place_order,
#payment-methods-wrapper .form-row.place-order {
  display: none !important;
}

.woocommerce-checkout-payment #place_order {
  display: none !important;
}

/* Ensure all checkout sections are visible */
.custom-checkout-main > .checkout-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure WooCommerce doesn't hide sections */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-checkout-review-order-table,
#order_review {
  display: block !important;
  visibility: visible !important;
}

/* Style WooCommerce shipping table */
.woocommerce-shipping-methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-shipping-methods li {
  margin-bottom: 0;
}

/* Style WooCommerce payment methods */
.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wc_payment_methods li {
  margin-bottom: 0;
}

.wc_payment_methods .payment_box {
  display: none;
}

/* Radio button styling */
input[type="radio"] {
  accent-color: #ea580c;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Checkout Responsive Styles */
@media (max-width: 1024px) {
  .custom-checkout-container {
    flex-direction: column;
  }

  .custom-checkout-sidebar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .order-summary-card {
    position: static;
  }
}

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

  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row-last {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }

  .form-row {
    width: 100%;
    max-width: 100%;
  }

  .form-row input[type="text"],
  .form-row input[type="email"],
  .form-row input[type="tel"],
  .form-row input[type="password"],
  .form-row select,
  .form-row textarea {
    width: 100%;
    max-width: 100%;
  }

  .custom-checkout-wrapper {
    padding: 8px 0;
  }

  .custom-checkout-container {
    padding: 0 8px;
  }

  .checkout-section {
    padding: 16px;
  }
}

/* ========================================
   THANK YOU PAGE STYLES
   ======================================== */

.custom-thankyou-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.thankyou-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: #f0fdf4;
  border-radius: 10px;
}

.thankyou-header h2 {
  color: #15803d;
  margin-bottom: 10px;
}

.order-summary {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
  margin-bottom: 15px;
}

.order-summary p {
  margin-bottom: 8px;
}

.order-items {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-items h3 {
  margin-bottom: 20px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.order-items-table th {
  text-align: left;
  padding: 12px;
  background: #f5f5f5;
  font-weight: 600;
}

.order-items-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.order-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.billing-address,
.shipping-address {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.billing-address h3,
.shipping-address h3 {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .custom-thankyou-wrapper {
    padding: 0 15px;
  }

  .order-items-table {
    font-size: 14px;
  }

  .order-items-table th,
  .order-items-table td {
    padding: 8px;
  }
}

/* Additional Form Improvements */
.woocommerce-checkout .custom-checkout-main form.checkout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Override any conflicting styles */
form.checkout.woocommerce-checkout.custom-checkout-main {
  flex-direction: row !important;
  gap: 10px !important;
  display: flex !important;
}

/* Ensure proper field spacing */
.woocommerce-checkout .form-row {
  margin-bottom: 0 !important;
}

/* Better visual feedback for focused fields */
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  outline: none;
  border-color: #1e293b !important;
  box-shadow: 0 0 0 1px #1e293b !important;
}

/* Validation styling - only after WooCommerce validates */
.woocommerce-checkout .form-row.woocommerce-validated input,
.woocommerce-checkout .form-row.woocommerce-validated select {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
}

.woocommerce-checkout .form-row.woocommerce-validated::after {
  content: "\2713";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #22c55e;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
}

/* Error styling */
.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

/* Ensure sections stack properly */
.custom-checkout-main .checkout-section {
  order: 0;
}

.custom-checkout-main .checkout-section[data-step="1"] {
  order: 1;
}

.custom-checkout-main .checkout-section[data-step="2"] {
  order: 2;
}

.custom-checkout-main .checkout-section[data-step="3"] {
  order: 3;
}

.custom-checkout-main .checkout-section[data-step="4"] {
  order: 4;
}

/* Section Divider for Combined Sections */
.section-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 24px 0;
}

/* Add spacing between billing and shipping in combined section */
.checkout-section[data-step="1"] .woocommerce-billing-fields {
  margin-bottom: 0;
}

.checkout-section[data-step="1"] .woocommerce-shipping-fields {
  margin-top: 0;
}

/* ========================================
   PAYMENT LOGOS SECTION
   ======================================== */

.payment-logos-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.payment-logos-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.payment-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-height: 50px;
}

.payment-logo svg {
  max-width: 100%;
  height: auto;
}

.payment-logo span {
  white-space: nowrap;
}

/* ========================================
   DUTCH ADDRESS VALIDATION CHECKMARKS
   ======================================== */

.form-row.validated {
  position: relative;
}

.form-row.validated input,
.form-row.validated select {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
  padding-right: 36px !important;
}

.form-row.validated::after {
  content: "\2713";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #22c55e;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
}

.form-row.validated label {
  color: #22c55e;
}

/* Auto-filled fields get a special indicator */
.form-row.auto-filled::after {
  content: "\2713";
  animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
  0% {
    transform: translateY(-50%) scale(0);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Loading indicator for address lookup */
.form-row.loading {
  position: relative;
}

.form-row.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Responsive payment logos */
@media (max-width: 640px) {
  .payment-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .payment-logo {
    min-height: 36px;
    padding: 6px;
  }

  .payment-logo span {
    font-size: 12px !important;
  }

  .payment-logo i {
    font-size: 24px !important;
  }
}
