/* Dedicated checkout polish for Dripped Vault multi-step checkout.
   This file intentionally sits after the older WooCommerce pass so checkout can be redeployed independently. */

body.dvt-site.woocommerce-checkout .dvt-woo-main {
  padding-top: 0 !important;
}

body.dvt-site.woocommerce-checkout .woocommerce,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper {
  width: min(100% - 40px, 1320px) !important;
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.dvt-site.woocommerce-checkout .woocommerce-notices-wrapper:empty {
  display: none !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs {
  position: relative !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 clamp(18px, 3vw, 34px) calc(50% - 50vw) !important;
  padding: 26px clamp(20px, 5vw, 74px) 24px !important;
  border-top: 1px solid rgba(202, 167, 255, 0.10) !important;
  border-bottom: 1px solid rgba(202, 167, 255, 0.16) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(146, 74, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(32, 12, 60, 0.98), rgba(14, 8, 25, 0.98)) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: hidden !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs::before {
  content: "" !important;
  position: absolute !important;
  left: clamp(70px, 17vw, 250px) !important;
  right: clamp(70px, 17vw, 250px) !important;
  top: 40px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(158, 88, 255, 0.95), rgba(117, 74, 255, 0.45), rgba(255, 255, 255, 0.12)) !important;
  box-shadow: 0 0 22px rgba(151, 84, 255, 0.28) !important;
  z-index: 0 !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab {
  position: relative !important;
  z-index: 1 !important;
  width: 33.333% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: center !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a {
  position: relative !important;
  min-height: 74px !important;
  padding: 42px 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.74) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  font-size: clamp(13px, 1.25vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62) !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 50% !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 6px solid rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 0 0 1px rgba(202, 167, 255, 0.30),
    0 0 22px rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.38) !important;
  transform: translateX(-50%) !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a.active,
body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a.current {
  color: #ffffff !important;
  background: transparent !important;
}

body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a.active::before,
body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a.current::before {
  background: linear-gradient(135deg, #ffffff, #d7c3ff) !important;
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 4px rgba(151, 84, 255, 0.22),
    0 0 30px rgba(167, 93, 255, 0.52),
    0 16px 34px rgba(0, 0, 0, 0.45) !important;
}

body.dvt-site.woocommerce-checkout .thwmscf-tab-panels,
body.dvt-site.woocommerce-checkout .thwmscf-tab-panel {
  border: 1px solid rgba(202, 167, 255, 0.12) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 64, 214, 0.10), transparent 38%),
    rgba(5, 5, 10, 0.84) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28) !important;
}

body.dvt-site.woocommerce-checkout .thwmscf-tab-panels {
  padding: clamp(18px, 2.7vw, 32px) !important;
  margin-bottom: 26px !important;
}

body.dvt-site.woocommerce-checkout .thwmscf-tab-panel {
  padding: clamp(22px, 3vw, 40px) !important;
}

body.dvt-site.woocommerce-checkout form.checkout,
body.dvt-site.woocommerce-checkout .woocommerce-checkout {
  color: #ffffff !important;
}

body.dvt-site.woocommerce-checkout #customer_details,
body.dvt-site.woocommerce-checkout .woocommerce-billing-fields,
body.dvt-site.woocommerce-checkout .woocommerce-additional-fields,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper .checkout_coupon,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper .woocommerce-checkout-review-order-table,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper #payment {
  width: min(100%, 780px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: clamp(22px, 3vw, 36px) !important;
  border: 1px solid rgba(202, 167, 255, 0.20) !important;
  border-radius: 22px !important;
  background: rgba(17, 16, 24, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 60px rgba(0, 0, 0, 0.18) !important;
}

body.dvt-site.woocommerce-checkout .woocommerce-billing-fields h3,
body.dvt-site.woocommerce-checkout .woocommerce-additional-fields h3,
body.dvt-site.woocommerce-checkout #order_review_heading,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper h3,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper h2 {
  margin: 0 0 22px !important;
  color: #ffffff !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

body.dvt-site.woocommerce-checkout .woocommerce form .form-row,
body.dvt-site.woocommerce-checkout form.checkout .form-row {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

body.dvt-site.woocommerce-checkout .woocommerce form .form-row label,
body.dvt-site.woocommerce-checkout form.checkout .form-row label,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper label {
  margin-bottom: 9px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.35 !important;
}

body.dvt-site.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.dvt-site.woocommerce-checkout .woocommerce form .form-row textarea,
body.dvt-site.woocommerce-checkout .woocommerce form .form-row select,
body.dvt-site.woocommerce-checkout .woocommerce .select2-container .select2-selection,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper input[type="text"],
body.dvt-site.woocommerce-checkout .thwmscf-wrapper input[type="email"],
body.dvt-site.woocommerce-checkout .thwmscf-wrapper input[type="tel"],
body.dvt-site.woocommerce-checkout .thwmscf-wrapper input[type="number"],
body.dvt-site.woocommerce-checkout .thwmscf-wrapper textarea,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper select {
  min-height: 58px !important;
  width: 100% !important;
  border: 1px solid rgba(202, 167, 255, 0.24) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.085) !important;
  color: #ffffff !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.dvt-site.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.dvt-site.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.dvt-site.woocommerce-checkout .woocommerce form .form-row select:focus,
body.dvt-site.woocommerce-checkout .woocommerce .select2-container--open .select2-selection,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper input:focus,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper textarea:focus,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper select:focus {
  outline: none !important;
  border-color: rgba(172, 104, 255, 0.90) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 0 0 4px rgba(151, 84, 255, 0.16) !important;
}

body.dvt-site.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
  line-height: 58px !important;
  padding-left: 0 !important;
}

body.dvt-site.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  min-height: 58px !important;
  right: 12px !important;
}

body.dvt-site.woocommerce-checkout input[type="file"] {
  width: 100% !important;
  padding: 14px !important;
  border: 1px dashed rgba(202, 167, 255, 0.36) !important;
  border-radius: 14px !important;
  background: rgba(151, 84, 255, 0.10) !important;
  color: #ffffff !important;
}

body.dvt-site.woocommerce-checkout input[type="file"]::file-selector-button {
  margin-right: 14px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--dvt-purple), var(--dvt-purple-2)) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

body.dvt-site.woocommerce-checkout .thwmscf-wrapper table.shop_table,
body.dvt-site.woocommerce-checkout table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

body.dvt-site.woocommerce-checkout .thwmscf-wrapper table.shop_table th,
body.dvt-site.woocommerce-checkout .thwmscf-wrapper table.shop_table td,
body.dvt-site.woocommerce-checkout table.shop_table th,
body.dvt-site.woocommerce-checkout table.shop_table td {
  padding: 20px 22px !important;
  border-color: rgba(202, 167, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 15px !important;
}

body.dvt-site.woocommerce-checkout table.shop_table thead th {
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

body.dvt-site.woocommerce-checkout table.shop_table .order-total th,
body.dvt-site.woocommerce-checkout table.shop_table .order-total td {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.dvt-site.woocommerce-checkout #payment ul.payment_methods {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.dvt-site.woocommerce-checkout #payment div.payment_box {
  margin: 14px 0 0 !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(202, 167, 255, 0.22) !important;
  border-radius: 14px !important;
  background: rgba(151, 84, 255, 0.16) !important;
  color: #ffffff !important;
}

body.dvt-site.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

body.dvt-site.woocommerce-checkout #payment .payment_method_dvt_gift_card_payment > label,
body.dvt-site.woocommerce-checkout #payment ul.payment_methods li > label {
  font-size: 15px !important;
  font-weight: 950 !important;
  color: #ffffff !important;
}

body.dvt-site.woocommerce-checkout #payment .place-order,
body.dvt-site.woocommerce-checkout .form-row.place-order {
  margin-top: 18px !important;
  padding: 24px 0 0 !important;
  border-top: 1px solid rgba(202, 167, 255, 0.12) !important;
  background: transparent !important;
}

body.dvt-site.woocommerce-checkout #payment .place-order::before,
body.dvt-site.woocommerce-checkout .form-row.place-order::before {
  content: "Secure checkout · Order details are reviewed before delivery" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 520px) !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(55, 220, 148, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(55, 220, 148, 0.08) !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
}

body.dvt-site.woocommerce-checkout #place_order {
  width: min(100%, 520px) !important;
  min-height: 64px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--dvt-purple), var(--dvt-purple-2)) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  box-shadow: 0 18px 42px rgba(151, 84, 255, 0.36) !important;
}

body.dvt-site.woocommerce-checkout #place_order:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 22px 52px rgba(151, 84, 255, 0.46) !important;
}

@media (max-width: 900px) {
  body.dvt-site.woocommerce-checkout .woocommerce,
  body.dvt-site.woocommerce-checkout .thwmscf-wrapper {
    width: min(100% - 28px, 1320px) !important;
  }

  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs {
    padding: 22px 14px 18px !important;
  }

  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs::before {
    left: 18% !important;
    right: 18% !important;
    top: 36px !important;
  }

  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a {
    min-height: 66px !important;
    padding-top: 38px !important;
    font-size: 12px !important;
  }

  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a::before {
    width: 24px !important;
    height: 24px !important;
    border-width: 5px !important;
  }

  body.dvt-site.woocommerce-checkout .thwmscf-tab-panels {
    padding: 12px !important;
  }

  body.dvt-site.woocommerce-checkout .thwmscf-tab-panel,
  body.dvt-site.woocommerce-checkout #customer_details,
  body.dvt-site.woocommerce-checkout .woocommerce-billing-fields,
  body.dvt-site.woocommerce-checkout .woocommerce-additional-fields,
  body.dvt-site.woocommerce-checkout .thwmscf-wrapper .checkout_coupon,
  body.dvt-site.woocommerce-checkout .thwmscf-wrapper .woocommerce-checkout-review-order-table,
  body.dvt-site.woocommerce-checkout .thwmscf-wrapper #payment {
    padding: 18px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 560px) {
  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.dvt-site.woocommerce-checkout ul.thwmscf-tabs li.thwmscf-tab a {
    font-size: 10px !important;
    letter-spacing: -0.01em !important;
  }

  body.dvt-site.woocommerce-checkout .woocommerce form .form-row-first,
  body.dvt-site.woocommerce-checkout .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
  }

  body.dvt-site.woocommerce-checkout .thwmscf-wrapper table.shop_table th,
  body.dvt-site.woocommerce-checkout .thwmscf-wrapper table.shop_table td,
  body.dvt-site.woocommerce-checkout table.shop_table th,
  body.dvt-site.woocommerce-checkout table.shop_table td {
    padding: 14px 12px !important;
    font-size: 13px !important;
  }

  body.dvt-site.woocommerce-checkout #place_order {
    width: 100% !important;
    min-width: 0 !important;
  }
}
