
/* =========================================================
   Ashby Jewellers premium checkout
   ========================================================= */

.woocommerce-checkout .site-content,
.woocommerce-checkout .content-area {
  overflow: visible;
}

.ashby-checkout-intro {
  display: flex;
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.ashby-checkout-eyebrow {
  margin: 0 0 7px;
  color: #2ea8d5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ashby-checkout-intro h1 {
  margin: 0;
  color: #191919;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.ashby-checkout-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: #555;
  font-size: 13px;
}

.ashby-checkout-reassurance span {
  position: relative;
  padding-left: 18px;
}

.ashby-checkout-reassurance span::before {
  content: "?";
  position: absolute;
  left: 0;
  color: #2ea8d5;
  font-weight: 700;
}

.ashby-checkout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.ashby-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.85fr);
  align-items: start;
  gap: 32px;
}

.ashby-checkout-card {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.055);
}

.ashby-checkout-customer {
  padding: 34px;
}

.ashby-order-card {
  padding: 30px;
}

.ashby-checkout-sidebar {
  position: sticky;
  top: 24px;
}

.ashby-section-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
  gap: 14px;
}

.ashby-section-heading > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2ea8d5;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ashby-section-heading h2 {
  margin: 0 0 4px;
  color: #161616;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.ashby-section-heading p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
}

/* Remove old WooCommerce headings duplicated inside the cards */
.ashby-checkout .woocommerce-billing-fields > h3 {
  display: none;
}

/* Billing layout */
.ashby-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.ashby-checkout .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ashby-checkout .form-row-wide,
.ashby-checkout #billing_company_field,
.ashby-checkout #billing_country_field,
.ashby-checkout #billing_address_1_field,
.ashby-checkout #billing_address_2_field,
.ashby-checkout #billing_city_field,
.ashby-checkout #billing_state_field,
.ashby-checkout #billing_postcode_field {
  grid-column: 1 / -1;
}

/* Keep phone and email as two balanced fields */
.ashby-checkout #billing_phone_field,
.ashby-checkout #billing_email_field {
  grid-column: auto;
}

.ashby-checkout .form-row label {
  display: block;
  margin: 0 0 8px;
  color: #292929;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left !important;
}

.ashby-checkout .required {
  color: #b33a3a;
}

/* Inputs: less pill-shaped */
.ashby-checkout input.input-text,
.ashby-checkout input[type="email"],
.ashby-checkout input[type="tel"],
.ashby-checkout input[type="text"],
.ashby-checkout textarea,
.ashby-checkout select,
.ashby-checkout .select2-container .select2-selection--single {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cfcfcf !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #202020;
  font-size: 15px;
  text-align: left !important;
  box-shadow: none !important;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.ashby-checkout textarea {
  min-height: 120px;
  resize: vertical;
}

.ashby-checkout input:focus,
.ashby-checkout textarea:focus,
.ashby-checkout select:focus,
.ashby-checkout .select2-container--focus .select2-selection--single {
  border-color: #2ea8d5 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 168, 213, 0.12) !important;
}

.ashby-checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

.ashby-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  padding: 0;
  color: #202020;
  line-height: normal;
}

.ashby-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 11px;
  right: 8px;
}

/* Shipping section */
.ashby-shipping-details {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
}

.ashby-checkout .woocommerce-shipping-fields h3 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.ashby-checkout
  .woocommerce-shipping-fields
  #ship-to-different-address {
  margin: 0;
}

.ashby-checkout
  .woocommerce-shipping-fields
  #ship-to-different-address
  label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ashby-checkout .woocommerce-additional-fields {
  margin-top: 22px;
}

.ashby-checkout .woocommerce-additional-fields h3 {
  display: none;
}

/* Order table */
.ashby-order-card #order_review_heading {
  display: none;
}

.ashby-order-card .woocommerce-checkout-review-order-table {
  width: 100%;
  margin: 0 0 24px;
  border: 0;
  border-collapse: collapse;
}

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

.ashby-order-card
  .woocommerce-checkout-review-order-table
  th,
.ashby-order-card
  .woocommerce-checkout-review-order-table
  td {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #ededed;
  color: #303030;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.ashby-order-card
  .woocommerce-checkout-review-order-table
  td.product-total,
.ashby-order-card
  .woocommerce-checkout-review-order-table
  tfoot
  td {
  text-align: right;
}

.ashby-order-card
  .woocommerce-checkout-review-order-table
  .product-name {
  padding-right: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.ashby-order-card
  .woocommerce-checkout-review-order-table
  tfoot
  th {
  font-weight: 500;
}

.ashby-order-card
  .woocommerce-checkout-review-order-table
  .order-total
  th,
.ashby-order-card
  .woocommerce-checkout-review-order-table
  .order-total
  td {
  padding-top: 18px;
  border-bottom: 0;
  color: #151515;
  font-size: 19px;
  font-weight: 700;
}

/* Payments */
.ashby-order-card #payment {
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.ashby-order-card #payment ul.payment_methods {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.ashby-order-card #payment ul.payment_methods li {
  margin: 0 0 10px;
  padding: 14px 15px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff;
  list-style: none;
}

.ashby-order-card #payment ul.payment_methods li:has(input:checked) {
  border-color: #2ea8d5;
  box-shadow: 0 0 0 2px rgba(46, 168, 213, 0.1);
}

.ashby-order-card #payment .payment_method-inner,
.ashby-order-card #payment ul.payment_methods li > label {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ashby-order-card #payment ul.payment_methods li img {
  width: auto;
  max-height: 25px;
  margin-left: auto;
}

.ashby-order-card #payment div.payment_box {
  margin: 13px 0 0;
  padding: 14px;
  border-radius: 3px;
  background: #f7f7f7;
  color: #555;
  font-size: 13px;
}

.ashby-order-card #payment div.payment_box::before {
  display: none;
}

.ashby-order-card #payment .place-order {
  margin: 0;
  padding: 0;
}

.ashby-order-card #payment .woocommerce-privacy-policy-text {
  margin: 18px 0;
  color: #666;
  font-size: 12px;
  line-height: 1.55;
}

.ashby-order-card #payment .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 18px;
}

.ashby-order-card #payment #place_order,
.ashby-order-card #payment button[type="submit"] {
  width: 100% !important;
  min-height: 54px;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #2ea8d5 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ashby-order-card #payment #place_order:hover,
.ashby-order-card #payment button[type="submit"]:hover {
  background: #218eb8 !important;
}

.ashby-checkout-trust {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  background: #fafafa;
}

.ashby-checkout-trust strong {
  display: block;
  margin-bottom: 5px;
  color: #222;
  font-size: 14px;
}

.ashby-checkout-trust p {
  margin: 0;
  color: #707070;
  font-size: 13px;
  line-height: 1.55;
}

/* Coupon */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle {
  padding: 0 24px;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0 0 20px;
  padding: 14px 17px;
  border: 1px solid #e4e4e4;
  border-top: 0;
  border-radius: 3px;
  background: #fafafa;
  color: #555;
}

.woocommerce-checkout form.checkout_coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 24px 24px;
  border: 0;
}

.woocommerce-checkout form.checkout_coupon .form-row {
  width: auto;
  margin: 0;
}

.woocommerce-checkout form.checkout_coupon input {
  min-height: 48px;
  border-radius: 3px !important;
}

.woocommerce-checkout form.checkout_coupon button {
  min-height: 48px;
  padding: 12px 22px !important;
  border-radius: 3px !important;
  background: #2ea8d5 !important;
  color: #fff !important;
}

/* Responsive */
@media (max-width: 991px) {
  .ashby-checkout-grid {
    grid-template-columns: 1fr;
  }

  .ashby-checkout-sidebar {
    position: static;
  }

  .ashby-checkout-reassurance {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .ashby-checkout-intro {
    display: block;
    padding: 0 18px;
  }

  .ashby-checkout-reassurance {
    margin-top: 18px;
  }

  .ashby-checkout {
    padding: 0 14px 50px;
  }

  .ashby-checkout-customer,
  .ashby-order-card {
    padding: 22px 18px;
  }

  .ashby-checkout .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .ashby-checkout .form-row,
  .ashby-checkout #billing_phone_field,
  .ashby-checkout #billing_email_field {
    grid-column: 1 / -1;
  }

  .woocommerce-checkout form.checkout_coupon {
    grid-template-columns: 1fr;
    padding-right: 18px;
    padding-left: 18px;
  }
}




.ashby-checkout-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ashby-checkout-product-image {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px;
  border: 1px solid #ededed;
  border-radius: 3px;
  object-fit: contain;
  background: #fff;
}

.ashby-checkout-product-title {
  display: block;
}


/* Payment area cleanup */
.ashby-order-card #payment {
  background: transparent;
  border: 0;
  padding: 0;
}

.ashby-order-card #payment ul.payment_methods {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.ashby-order-card #payment ul.payment_methods > li {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  margin: 0 0 12px;
}

.ashby-order-card #payment ul.payment_methods > li > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  cursor: pointer;
}

.ashby-order-card #payment ul.payment_methods > li > input[type="radio"] {
  margin-right: 8px;
  transform: scale(0.95);
}

.ashby-order-card #payment ul.payment_methods > li img {
  max-height: 22px !important;
  width: auto !important;
}

.ashby-order-card #payment .payment_box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.ashby-order-card #payment .payment_box p {
  margin: 0 0 8px;
}

.ashby-order-card #payment .payment_box p:last-child {
  margin-bottom: 0;
}

/* Tighten the long PayPal block */
.ashby-order-card #payment .payment_method_ppcp .payment_box,
.ashby-order-card #payment .payment_method_paypal .payment_box,
.ashby-order-card #payment .payment_method_ppec_paypal .payment_box {
  padding: 10px 12px;
  min-height: auto !important;
}

/* Buttons */
.ashby-order-card #place_order,
.ashby-order-card .payment_box button,
.ashby-order-card .payment_box .button {
  width: 100%;
  border-radius: 6px !important;
}

/* T&Cs row */
.ashby-order-card .woocommerce-terms-and-conditions-wrapper {
  margin-top: 14px;
  font-size: 13px;
}

.ashby-payment-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
}

.ashby-payment-badges__label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ashby-klarna-badge {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.ashby-klarna-badge img {
  width: 100%;
  height: 100%
  object-fit: contain;
}
