/* === CHECKOUT === */

.checkout #billing_country_field{
  display: none;
}

@media (min-width: 1025px){
  .wd-header-overlap.woocommerce-checkout-page .site-content {
    padding-top: 203px;
  }
  .wd-header-overlap.woocommerce-checkout-page .title-size-small {
    padding-top: 0 !important;
  }
}

@media (max-width: 1024px){
  .wd-header-overlap.woocommerce-checkout-page .site-content {
    padding-top: 78px;
  }
  .wd-header-overlap.woocommerce-checkout-page .page-title {
    padding-top: 0 !important;
  }
}

.checkout ::placeholder{
  color:#ccc;
}
.checkout input{
  color: black;
}

/* checkout steps */
.wd-checkout-steps { display: none; }
.reazy-wd-checkout-steps.wd-checkout-steps {
  display: block;
  margin-bottom: 30px;
}
@media screen and (max-width:560px) {
  .reazy-wd-checkout-steps.wd-checkout-steps a{
    font-size: 20px;
  }
}

/* remove required/optional marks */
#billing_city_field .required { display: none; }
#billing_address_1_field .required { display: none; }
#billing_address_1_field .optional { display: none; }
#billing_company_field .optional { display: none; }
#inn_field .optional { display: none; }

#billing_address_1_field label { text-align: left; }

#billing_first_name_field { width: 100%; }

#billing_phone_field, #billing_email_field {
  width: calc(50% - 15px);
  display: inline-block;
}
#billing_phone_field { margin-right: 30px; }

#billing_company_field, #inn_field {
  width: calc(50% - 15px);
  display: none;
}
#billing_company_field { margin-right: 30px; }

#billing_company_field.is-active, #inn_field.is-active {
  display: inline-block;
}

@media (max-width: 1350px) {
  #billing_phone_field, #billing_email_field { width: 100%; }
  #billing_phone_field { margin-right: 0; }

  #billing_company_field, #inn_field { width: 100%; }
  #billing_company_field { margin-right: 0; }
}

@media (max-width: 1024px) {
  #billing_phone_field, #billing_email_field { width: calc(50% - 7px); }
  #billing_phone_field { margin-right: 14px; }

  #billing_company_field, #inn_field { width: calc(50% - 7px); }
  #billing_company_field { margin-right: 14px; }
}

@media (max-width: 560px) {
  #billing_phone_field, #billing_email_field { width: 100%; }
  #billing_phone_field { margin-right: 0; }

  #billing_company_field, #inn_field { width: 100%; }
  #billing_company_field { margin-right: 0; }
}

#billing_city_field label { font-weight: 700; }

#billing_state_field { display: none; }
#billing_postcode_field {
  position: absolute;
  top: -9999px;
}

#reazy_order_comment {
  min-height: 80px;
  border-radius: 20px;
}

/* shipping method grid */
#shipping_method {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width:1350px) {
  #shipping_method { grid-template-columns: auto; }
}
@media (max-width:1024px) {
  #shipping_method { grid-template-columns: repeat(2, 1fr); }
}
#shipping_method li {
  height: 100%;
  display: flex;
  flex-direction: column
}

#shipping_method input[type=radio]{
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
#shipping_method label {
  border: 1px solid #D0D0D0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  padding: 10px 15px;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
  font-weight: 600 !important;
  height: 100%;
  min-height: 80px;
}
#shipping_method input[type=radio]:checked + label {
  border: 2px solid var(--wd-primary-color);
}

@media (max-width:560px) {
  #shipping_method { grid-template-columns: auto; }
  #shipping_method label {
    font-size: 14px;
    padding: 7px 10px;
    min-height: 70px;
  }
}

.suggestions-suggestion { text-align: left; }

/* cart/checkout split layout */
.cart-content-wrapper {
  display: grid;
  grid-template-columns: 50% auto;
  position: relative;
}
@media (max-width:1350px) {
  .cart-content-wrapper { grid-template-columns: 65% auto; }
}
@media (max-width:1024px) {
  .cart-content-wrapper { display: block; }
}

.cart-content-wrapper .checkout-wrap { padding: 0 0 0 50px; }
@media (max-width:1350px) {
  .cart-content-wrapper .checkout-wrap { padding: 0 0 0 30px; }
}
@media (max-width:1024px) {
  .cart-content-wrapper .checkout-wrap { padding: 30px 0 0; }
}

/* payments list */
.woocommerce-checkout .wc_payment_methods {
  list-style: none;
  padding-left: 0;
}
.woocommerce-checkout .wc_payment_methods .wc_payment_method {
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 15px;
}
@media (max-width:375px) {
  .woocommerce-checkout .wc_payment_methods { font-size: 14px; }
  .woocommerce-checkout .wc_payment_methods .wc_payment_method { padding: 8px; }
}

.reazy_order_total {
  margin-top: 20px;
}
.reazy_order_total_row {
  display: flex;
  gap: 25px;
  justify-content: space-between;
}

.reazy_order_total_price { font-size: 25px; }

.reazy_order_total_value {
  color: var(--accent-color);
}
.reazy_order_total_label {
  line-height: 1.2;
  font-family: 'Oswald';
}

.reazy-subtotal-row th {
  padding: 8px 10px;
}
.reazy-subtotal-row td {
  color: var(--accent-color);
  font-weight: 600;
  padding: 8px 10px;
}

.reazy_order_total_row:last-child {
  font-size: 22px;
}

.order-total th, .order-total td {
  padding: 8px 10px;
}

@media (max-width:560px) {
  .reazy_order_total h3 {
    font-size: 16px;
    line-height: 1.2;
  }
  .reazy_order_total_price { font-size: 22px; }
}



.woocommerce-checkout-review-order-table .fee {
  display: none;
}

.payment_method_yookassa_widget img { display: none; }

#customer_details { scroll-margin-top: 150px; }

.cart-ancor-link {
  position: absolute;
  right: 0;
  display: none;
  top: 2px;
}
@media (max-width:1024px) {
  .cart-ancor-link { display: block; }
}
@media (max-width:375px) {
  .cart-ancor-link {
    font-size: 13px;
    top: 7px;
  }
}

/* place order button */
#place_order {
  display: flex;
  padding: 5px 28px;
  min-height: 48px;
  width: 100%;
  font-size: 14px;
  border-radius: var(--btn-accented-brd-radius);
  color: var(--btn-accented-color);
  box-shadow: var(--btn-accented-box-shadow);
  background-color: var(--btn-accented-bgcolor);
  text-transform: var(--btn-accented-transform, var(--btn-transform));
  font-weight: var(--btn-accented-font-weight, var(--btn-font-weight));
  font-family: var(--btn-accented-font-family, var(--btn-font-family));
  font-style: var(--btn-accented-font-style, var(--btn-font-style));
}

/* Тип покупателя */
.reazy-customer-type { margin: 0 0 16px; }
.reazy-customer-type__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1f1f1f;
}
.reazy-customer-type__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.reazy-customer-type__btn {
  appearance: none;
  border: 0;
  background: #f3f3f3;
  color: #2a2a2a;

  border-radius: 999px;
  padding: 14px 18px;
  line-height: 1;
  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
  cursor: pointer;
  user-select: none;
}

.reazy-customer-type__btn:hover {
  background: #efefef;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.reazy-customer-type__btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.reazy-customer-type__btn.is-active {
  background: var(--btn-accented-bgcolor);
  color: #ffffff;
}
.reazy-customer-type__btn.is-active:hover {
  background: #a85b60;
}

.reazy-customer-type__btn:focus-visible {
  outline: 2px solid rgba(181, 101, 106, .45);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .reazy-customer-type__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* radio button */
.woocommerce-checkout-payment input[type=radio]{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.woocommerce-checkout-payment input[type=radio]+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
}
.woocommerce-checkout-payment input[type=radio]+label::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  border-radius: 50%;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}
.woocommerce-checkout-payment input[type=radio]:not(:disabled):not(:checked)+label:hover::before {
  border-color: #b3d7ff;
}
.woocommerce-checkout-payment input[type=radio]:not(:disabled):active+label::before {
  background-color: #b3d7ff;
  border-color: #b3d7ff;
}
.woocommerce-checkout-payment input[type=radio]:focus+label::before {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.woocommerce-checkout-payment input[type=radio]:focus:not(:checked)+label::before {
  border-color: #80bdff;
}
.woocommerce-checkout-payment input[type=radio]:checked+label::before {
  border-color: var(--wd-primary-color);
  background-color: var(--wd-primary-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.woocommerce-checkout-payment input[type=radio]:disabled+label::before {
  background-color: #e9ecef;
}
