/* ==========================================================================
   Checkout Page Redesign
   ========================================================================== */

/* Section cards */
.checkout-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
}

.checkout-section__header {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.checkout-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  font-weight: bold;
  font-size: 15px;
  margin-right: 12px;
}

.checkout-section__title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

/* Form elements within checkout */
.checkout-section .form-group {
  margin-bottom: 15px;
}

.checkout-section .form-group>label {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  margin-bottom: 6px;
  display: block;
}

.checkout-section .form-control {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  height: 46px;
  font-size: 12px;
  color: #999;
  padding: 8px 14px;
  box-shadow: none !important;
  transition: border-color 0.2s;
}

.checkout-section .form-control:focus {
  border-color: #529c45 !important;
  box-shadow: 0 0 0 2px rgba(74, 179, 90, 0.1) !important;
}

.checkout-section .form-control::placeholder {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  opacity: 1;
}

.checkout-section .form-control::-webkit-input-placeholder {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.checkout-section .form-control::-moz-placeholder {
  color: #999;
  font-size: 12px;
  font-weight: 400;
  opacity: 1;
}

.checkout-section .form-control:-ms-input-placeholder {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.checkout-section select.form-control {
  color: #333;
  font-size: 12px;
}

.checkout-section select.form-control:invalid,
.checkout-section select.form-control option[value=""] {
  color: #999;
}

.checkout-section select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 35px;
}

/* Checkbox styling */
.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.checkout-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: white;
  accent-color: #74992e;
  cursor: pointer;
  margin: 0 5px 0 0;
}

/* Payment method tabs */
.checkout-payment-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-payment-tab {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  background: #fff;
  text-align: center;
  position: relative;
}

.checkout-payment-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-payment-tab:hover {
  border-color: #bbb;
}

.checkout-payment-tab.active {
  border-color: #529c45;
  border-width: 2px;
  color: #333;
  background: #f8fdf9;
}

.checkout-payment-tab.active::after {
  content: "\2713";
  position: absolute;
  top: 5px;
  left: 8px;
  font-size: 13px;
  color: #529c45;
  font-weight: bold;
}

.checkout-payment-tab__icon {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-payment-tab__icon img {
  max-height: 28px;
  max-width: 120px;
  object-fit: contain;
}

.checkout-payment-tab__label {
  font-size: 12px;
  line-height: 1.2;
}

.checkout-payment-tab__sublabel {
  font-size: 10px;
  color: #999;
  font-weight: 400;
}

/* Transfer tooltip */
.checkout-transfer-notice {
  display: none;
  margin-top: 15px;
  padding: 12px 15px;
  background: #fff8e6;
  border: 1px solid #ffd966;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}

/* Privacy checkbox */
.checkout-privacy {
  margin-top: 20px;
}

.checkout-privacy .checkout-checkbox {
  align-items: flex-start;
}

.checkout-privacy a {
  color: #019df0;
  text-decoration: underline;
}

/* Order summary sidebar */
.checkout-order-summary {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  position: sticky;
  top: 20px;
}

.checkout-order-summary__title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.checkout-order-summary__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 12px 0;
  color: #019df0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.checkout-order-summary__toggle:hover,
.checkout-order-summary__toggle:focus {
  color: #0184ca;
  outline: none;
}

.checkout-order-summary__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #019df0;
  color: #019df0;
  transition: transform 0.2s ease;
}

.checkout-order-summary__toggle.is-open .checkout-order-summary__toggle-icon {
  transform: rotate(180deg);
}

.checkout-order-summary__products {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 15px;
}

/* Product item in summary */
.checkout-product {
  padding: 8px 0;
  border-bottom: 1px solid #e5e5e5;
}

.checkout-product__name {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
  margin-bottom: 8px;
}

.checkout-product__files {
  font-size: 11px;
  color: #019df0;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.checkout-product__qty {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
}

.checkout-product__price {
  flex: 1;
  text-align: right;
  font-size: 16px;
  font-weight: bold;
  color: #dd0067;
}

.checkout-product__delete {
  color: #dd0067;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 2px 5px;
  text-decoration: none;
  line-height: 1;
}

.checkout-product__delete:hover {
  color: #b3004f;
  text-decoration: none;
}

.checkout-product__qty-static {
  font-size: 14px;
  color: #555;
  min-width: 50px;
  text-align: center;
}

/* Totals */
.checkout-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-totals__label {
  font-size: 14px;
  color: #555;
}

.checkout-totals__value {
  font-size: 16px;
  color: #dd0067;
  font-weight: 600;
}

.checkout-totals__row--total {
  padding-top: 4px;
  margin-top: 15px;
  border-top: 2px solid #e0e0e0;
}

.checkout-totals__row--total .checkout-totals__label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.checkout-totals__row--total .checkout-totals__value {
  font-size: 22px;
  font-weight: bold;
  color: #dd0067;
}

/* Submit button */
.checkout-btn-submit {
  display: block;
  width: 100%;
  padding: 16px 20px;
  margin-top: 20px;
  background: #529c45;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
  font-family: "Open Sans", sans-serif;
}

.checkout-btn-submit:hover {
  background: #3d9c4d;
}

.checkout-btn-submit:disabled,
.checkout-btn-submit.disabled-btn {
  background: #ccc;
  cursor: not-allowed;
}

/* Google rating block */
.checkout-rating {
  padding: 14px 12px 0 12px;
  text-align: center;
}

.checkout-rating__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checkout-rating__stars {
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
  line-height: 1;
  color: #f5a623;
}

.checkout-rating__score {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  font-family: "Open Sans", sans-serif;
}

.checkout-rating__source {
  font-size: 14px;
  color: #555;
}

.checkout-rating__caption {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

/* Features list */
.checkout-features {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  color: #000;
}

.checkout-features .bordered {
  width: 2px;
  height: 20px;
  background-color: #ccc;
}

.checkout-features .feature-icon {
  width: 24px;
  text-align: center;
  font-size: 17px;
}

/* Message cart */
.checkout-message {
  color: #dd0067;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Empty cart */
.checkout-empty-cart {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 15px;
}

/* Billing address block */
.checkout-billing-fields {
  margin-top: 20px;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 991px) {
  .checkout-section {
    padding: 20px;
  }

  .checkout-order-summary {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .checkout-section {
    padding: 18px 15px;
  }

  .checkout-payment-tabs {
    gap: 8px;
  }

  .checkout-payment-tab {
    min-width: calc(50% - 8px);
    flex: none;
  }

  .checkout-order-summary {
    padding: 20px 15px;
  }

  .checkout-btn-submit {
    font-size: 16px;
    padding: 14px 16px;
  }

  .checkout-totals__row--total .checkout-totals__value {
    font-size: 18px;
  }
}