/* ================================
   Checkout Page
   ================================ */

.checkout-page {
  padding-bottom: 60px;
}

.checkout-page .account-breadcrumbs {
  padding: 14px 0;
}

.checkout-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 34px;
  color: #000;
  margin: 0 0 28px 0;
}

/* ================================
   Accordion sections
   ================================ */

.checkout-accordion {
  border-top: 1px solid #e8e8e8;
}

.checkout-section {
  border-bottom: 1px solid #e8e8e8;
}

.checkout-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  user-select: none;
  background: transparent;
}

.checkout-section__head:hover {
  background: transparent;
}

.checkout-section__body .row {
  margin-left: 0px;
  margin-right: 0px;
}

.checkout-section__title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  color: #000;
  line-height: 1.3;
}

/* Chevron icon */
.checkout-section__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 7l6-6 6 6' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}

.checkout-section__head.collapsed .checkout-section__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.checkout-section__body {
  padding: 0 0 24px 0;
}

/* ================================
   Forms inside checkout sections
   ================================ */

.checkout-section__body .form-horizontal {
  margin: 0;
}

/* Overwrite Bootstrap col grid inside checkout */
.checkout-section__body .col-sm-2,
.checkout-section__body .col-sm-10 {
  float: none;
  width: 100%;
  padding: 0;
}

.checkout-section__body .form-group {
  margin-bottom: 12px;
}

.checkout-section__body .control-label {
  display: block;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
  padding: 0;
  text-align: left;
}

.checkout-section__body .form-control {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 14px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.checkout-section__body .form-control:focus {
  border-color: #A2947A;
  outline: none;
  box-shadow: none;
  background: #f5f5f5;
}

.checkout-section__body select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #f5f5f5;
  padding-right: 36px;
}

/* Submit button row in checkout forms */
.checkout-btn-row {
  margin-top: 20px;
}

.checkout-btn-row .reg-submit-btn,
.checkout-btn-row input[type="button"] {
  display: inline-block;
  padding: 14px 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkout-btn-row .reg-submit-btn:hover,
.checkout-btn-row input[type="button"]:hover {
  background: #222;
}

/* Floating label style for checkout fields */
.checkout-section__body .reg-field-group {
  position: relative;
  margin-bottom: 12px;
}

.checkout-section__body .reg-field-label {
  display: block;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  padding: 10px 14px 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.checkout-section select {
  -moz-appearance:none;
  -webkit-appearance:none;
  appearance:none;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzIDRMOCA5TDMgNCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 30px;
}


.checkout-section__body .reg-field-input {
  display: block;
  width: 100%;
  padding: 26px 14px 10px;
  font-size: 16px;
  color: #000;
  background: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

/* Buttons */
.checkout-section__body .buttons {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.checkout-section__body .buttons .pull-right {
  float: none !important;
}

.checkout-section__body .btn-primary,
#button-payment-address,
#button-shipping-address,
#button-shipping-method,
#button-payment-method,
#button-account,
#button-register,
#button-guest,
#button-guest-shipping,
#button-login {
  display: inline-block;
  padding: 14px 40px;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: none !important;
}

.checkout-section__body .btn-primary:hover,
#button-payment-address:hover,
#button-shipping-address:hover,
#button-shipping-method:hover,
#button-payment-method:hover,
#button-account:hover,
#button-register:hover,
#button-guest:hover,
#button-guest-shipping:hover,
#button-login:hover {
  background: #222 !important;
  color: #fff !important;
}

/* Login section (Step 1) */
.checkout-section__body h2 {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  color: #000;
  margin: 0 0 12px 0;
}

.checkout-section__body p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  margin-top: 0px;
}

.checkout-section__body .radio label,
.checkout-section__body .checkbox label {
  font-family: var(--font-family);
  font-size: 15px;
  color: #000;
  padding-left: 24px;
  cursor: pointer;
}

.checkout-section__body .radio input[type="radio"],
.checkout-section__body .checkbox input[type="checkbox"] {
  accent-color: #000;
}

/* Two-column layout for register checkout form */
.checkout-section__body .row > .col-sm-6 {
  padding-left: 0;
  padding-right: 20px;
}

.checkout-section__body .row > .col-sm-6:last-child {
  padding-right: 0;
  padding-left: 0;
}

/* Error messages */
.checkout-section__body .text-danger {
  font-family: var(--font-family);
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}

.checkout-section__body .has-error .form-control {
  border-color: #c0392b;
}

/* Forgotten password link */
.checkout-section__body a {
  color: #A2947A;
  text-decoration: underline;
}

/* Radio inline */
.checkout-section__body .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-family: var(--font-family);
  font-size: 15px;
  color: #000;
  padding-left: 0;
  cursor: pointer;
}

.checkout-section__body .radio-inline input[type="radio"] {
  accent-color: #A2947A;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Shipping method / payment method radio list */
.checkout-section__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.checkout-section__body table td {
  padding: 10px 0;
  font-family: var(--font-family);
  font-size: 15px;
  color: #000;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* Order confirm table */
.checkout-section__body .table-bordered {
  border: 1px solid #e8e8e8;
  border-radius: 0;
}

.checkout-section__body .table-bordered > thead > tr > th,
.checkout-section__body .table-bordered > tbody > tr > td {
  border: 1px solid #e8e8e8;
  font-family: var(--font-family);
  font-size: 14px;
  color: #000;
  padding: 10px 14px;
}

/* Existing address select */
#shipping-existing,
#payment-existing {
  margin-bottom: 16px;
}

#shipping-existing .form-control,
#payment-existing .form-control {
  width: 100%;
  max-width: 500px;
}

/* Confirm button (order submit) */
#button-confirm {
  display: inline-block;
  padding: 14px 40px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#button-confirm:hover {
  background: #222;
}

/* Shipping address checkbox */
.checkout-section__body .checkbox {
  margin: 8px 0;
}

/* Alert inside checkout */
.checkout-section__body .alert {
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ================================
   Responsive
   ================================ */

/* ================================
   Shipping Method Items
   ================================ */

.shipping-method-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  width: 100%;
}

.shipping-method-item__radio {
  flex-shrink: 0;
}

.shipping-method-item__radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #111;
  cursor: pointer;
}

.shipping-method-logo {
  flex-shrink: 0;
  width: 160px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shipping-method-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shipping-address-type {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.shipping-method-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.shipping-method-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.shipping-method-item__title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #000;
}

.shipping-method-item__delivery-time {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
}

.shipping-method-item__price {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #000;
}

/* ================================
   Ukrposhta Delivery Info Blocks
   ================================ */

  .shipping-delivery-info {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 0;
  }

.shipping-block-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  color: #000;
  margin-bottom: 16px;
}

.shipping-pickup-block {
  margin-bottom: 20px;
}

.shipping-pickup-block .reg-field-group {
  margin-bottom: 12px;
}

.shipping-pickup-block .reg-field-group:last-child {
  margin-bottom: 0;
}

.shipping-recipient-block {
  border-top: 1px solid #e8e8e8;
  padding-top: 16px;
}

.shipping-recipient-row {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

.shipping-method-comment {
  margin-top: 16px;
}

.shipping-method-comment p {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.shipping-method-comment .form-control {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
}

@media (max-width: 767px) {
  .checkout-title {
    font-size: 26px;
  }

  .checkout-section__title {
    font-size: 16px;
  }

  .checkout-section__body .row > .col-sm-6 {
    padding-right: 0;
  }

  #button-payment-address,
  #button-shipping-address,
  #button-shipping-method,
  #button-payment-method,
  #button-account,
  #button-register,
  #button-guest,
  #button-guest-shipping,
  #button-login {
    width: 100%;
    text-align: center;
  }
}
