/* WooCommerce — WC-specific overrides (layout in pages.css) */

.citybilla-wc-main {
  padding-bottom: 0;
}

.citybilla-wc-main .wc-page-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-inline: var(--container-padding);
  box-sizing: border-box;
}

/* Buttons */
.citybilla-wc-page .woocommerce .button,
.citybilla-wc-page .woocommerce button.button,
.citybilla-wc-page .woocommerce input.button,
.citybilla-wc-page .woocommerce a.button,
.citybilla-wc-page #place_order,
.citybilla-wc-main .button.checkout-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 38px !important;
  padding: 12px 16px !important;
  background: var(--color-black, #0a0a0a) !important;
  color: var(--color-white, #fff) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--font-primary) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 14.4px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.citybilla-wc-page .woocommerce .button:hover,
.citybilla-wc-page #place_order:hover,
.citybilla-wc-main .button.checkout-button:hover {
  background: #cfcfcf !important;
  color: var(--color-black, #0a0a0a) !important;
}

/* ── Checkout form fields (layout + Select2; inputs styled in pages.css) ── */
.checkout-page #customer_details.col2-set {
  display: block;
}

.checkout-page #customer_details .col-1,
.checkout-page #customer_details .col-2 {
  width: 100%;
  float: none;
}

.checkout-page .woocommerce-billing-fields > h3,
.checkout-page .woocommerce-shipping-fields > h3 {
  display: none;
}

.checkout-page .form-row-first,
.checkout-page .form-row-last,
.checkout-page .form-row-wide {
  width: 100%;
  float: none !important;
  clear: none !important;
}

.checkout-page .form-row label.checkbox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-size: 14px;
}

.checkout-page .form-row input.input-text,
.checkout-page .form-row textarea,
.checkout-page .form-row select,
.checkout-page .select2-container {
  width: 100% !important;
  max-width: 100%;
}

.checkout-page .woocommerce-input-wrapper .select2-container {
  display: block;
  margin: 0 !important;
}

.checkout-page .col-1,
.checkout-page .col-2 {
  width: 100%;
  float: none;
}

/* Select2 — match contact-form select styling */
.checkout-page .select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center;
  height: auto !important;
  min-height: 44px;
  border: 1px solid #cfcfcf !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
  transition: border-color 0.2s ease;
}

.checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  padding: 12px 44px 12px 16px !important;
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 19.2px !important;
  color: var(--color-black) !important;
}

.checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100% !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='square' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.checkout-page .select2-container--default.select2-container--focus .select2-selection--single,
.checkout-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--color-black) !important;
}

.checkout-page .select2-dropdown {
  border: 1px solid #cfcfcf;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 14px;
}

.checkout-page .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--color-black);
}

/* Payment section */
.checkout-page #payment {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.checkout-page #payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-page #payment ul.payment_methods::before,
.checkout-page #payment ul.payment_methods::after {
  display: none;
}

.checkout-page #payment div.payment_box {
  margin: 0;
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-page #payment div.payment_box::before {
  display: none;
}

/* Terms + submit in sidebar */
.checkout-page__submit .woocommerce-terms-and-conditions-wrapper {
  margin: 0;
}

.checkout-page__submit .woocommerce-privacy-policy-text,
.checkout-page__submit .woocommerce-terms-and-conditions-checkbox-text {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-gray-muted);
}

.checkout-page__submit .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkout-page__submit .woocommerce-form__input-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-black);
}

.checkout-page__submit .validate-required {
  margin: 0 0 8px;
}

/* Login prompt */
.citybilla-wc-main .woocommerce-form-login-toggle {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #eeeeee;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
}

.citybilla-wc-main .woocommerce-form-login-toggle a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.citybilla-wc-main .woocommerce-form-login {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid #cfcfcf;
}

.citybilla-wc-main .woocommerce-form-login .form-row {
  margin-bottom: 16px !important;
}

/* Notices */
.citybilla-wc-main .woocommerce-message,
.citybilla-wc-main .woocommerce-info,
.citybilla-wc-main .woocommerce-error {
  border-radius: 0;
  border-left-width: 3px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  margin: 0 0 24px;
  padding: 14px 16px;
  box-shadow: none;
}

.citybilla-wc-page .woocommerce-Price-amount,
.citybilla-wc-main .woocommerce-Price-amount {
  font-weight: 500;
}

/* Account Select2 */
.account-page .select2-container {
  width: 100% !important;
  margin: 0 !important;
}

.account-page .select2-container--default .select2-selection--single {
  display: flex !important;
  align-items: center;
  height: auto !important;
  min-height: 44px;
  border: 1px solid #cfcfcf !important;
  border-radius: 0 !important;
  background: var(--color-white) !important;
}

.account-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  padding: 12px 44px 12px 16px !important;
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 19.2px !important;
  color: var(--color-black) !important;
}

.account-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100% !important;
}

.account-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

/* Thank you */
.citybilla-wc-main .order-complete-page {
  width: 100%;
}

.citybilla-wc-main .order-complete-page .woocommerce-order-details,
.citybilla-wc-main .order-complete-page .woocommerce-customer-details {
  margin: 0;
  padding: 0;
}

.citybilla-wc-main .order-complete-page .woocommerce-table--order-details {
  display: none;
}

.citybilla-wc-main .order-complete-page .woocommerce-thankyou-order-received {
  display: none;
}

.citybilla-wc-main .order-complete-page .woocommerce-order-overview {
  display: none;
}

.cart-modal__view-cart {
  width: 100%;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 809px) {
  .citybilla-wc-page .page-inner {
    padding-top: 0;
  }

  .citybilla-wc-main .info-hero,
  .citybilla-wc-main .info-hero--bag,
  .citybilla-wc-main .info-hero--compact {
    padding-top: 0;
    padding-bottom: 0;
  }

  .citybilla-wc-main .breadcrumb {
    margin-bottom: 12px;
  }

  .citybilla-wc-main .info-hero__lead {
    margin-top: 12px;
  }

  .citybilla-wc-main .bag-progress {
    margin-top: 16px;
  }

  .citybilla-wc-main .bag-ship-wrap {
    margin-top: 16px;
  }

  .citybilla-wc-main .bag-page,
  .citybilla-wc-main .checkout-page,
  .citybilla-wc-main .order-complete-page,
  .citybilla-wc-main .bag-empty,
  .citybilla-wc-main .account-page,
  .citybilla-wc-main .auth-page {
    margin-top: 20px;
    padding-bottom: 64px;
  }

  .citybilla-wc-main .account-page__tabs {
    margin-bottom: 20px;
  }
}
