/**
 * Оформление заказа: единый современный UI (контейнер #checkout-checkout.checkout-ui-modern)
 */

#checkout-checkout.checkout-ui-modern {
  padding-bottom: 32px;
}

#checkout-checkout.checkout-ui-modern h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

#checkout-checkout.checkout-ui-modern .breadcrumb {
  background: transparent;
  padding: 10px 0;
  margin-bottom: 8px;
  font-size: 14px;
}

#checkout-checkout.checkout-ui-modern .panel {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  margin-bottom: 16px;
  overflow: hidden;
}

#checkout-checkout.checkout-ui-modern .panel-heading {
  padding: 16px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

#checkout-checkout.checkout-ui-modern .panel-title {
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 600;
  margin: 0;
}

#checkout-checkout.checkout-ui-modern .panel-title a {
  color: #1e293b;
  display: block;
  text-decoration: none;
}

#checkout-checkout.checkout-ui-modern .panel-title a:hover,
#checkout-checkout.checkout-ui-modern .panel-title a:focus {
  color: #0b7fd4;
}

#checkout-checkout.checkout-ui-modern .panel-body {
  padding: 22px 20px 26px;
}

@media (max-width: 767px) {
  #checkout-checkout.checkout-ui-modern .panel-body {
    padding: 18px 14px 22px;
  }
}

#checkout-checkout.checkout-ui-modern .panel-body .form-control {
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d1dae6;
  padding: 12px 16px;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#checkout-checkout.checkout-ui-modern .panel-body .form-control:focus {
  border-color: #0b7fd4;
  box-shadow: 0 0 0 3px rgba(11, 127, 212, 0.15);
}

#checkout-checkout.checkout-ui-modern .lem-checkout-section-title {
  margin: 20px 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-divider + .lem-checkout-section-title {
  margin-top: 8px;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-section-title--small {
  font-size: 15px;
  margin-top: 18px;
  margin-bottom: 10px;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-section-title--muted {
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 0;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-method-heading {
  margin: 16px 0 10px;
  font-size: 15px;
  color: #475569;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-divider {
  height: 1px;
  margin: 22px 0 8px;
  background: linear-gradient(90deg, transparent, #e2e8f0 12%, #e2e8f0 88%, transparent);
  border: 0;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card {
  margin: 0 0 12px;
  padding: 0;
  border: 2px solid #e8edf3;
  border-radius: 14px;
  background: #fafbfc;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card:hover {
  border-color: #c5d9ed;
  background: #fff;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card:has(input:checked) {
  border-color: #0b7fd4;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px rgba(11, 127, 212, 0.2);
}

#checkout-checkout.checkout-ui-modern .lem-choice-card label {
  padding: 18px 18px 18px 52px !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  min-height: 54px !important;
  display: flex !important;
  align-items: center;
  border-radius: 12px;
  color: #1e293b !important;
  font-weight: 500;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card label:before {
  top: 50% !important;
  transform: translateY(-50%);
  left: 18px !important;
  width: 22px !important;
  height: 22px !important;
  background: #fff !important;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card label:after {
  top: 50% !important;
  left: 29px !important;
  margin-top: -5px;
  margin-left: -5px;
  width: 10px !important;
  height: 10px !important;
  background: #0b7fd4 !important;
  border-radius: 50% !important;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card input:checked + label:before {
  border-color: #0b7fd4 !important;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-comment-fieldwrap .form-control,
#checkout-checkout.checkout-ui-modern #shipping-comment-group textarea {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #d1dae6;
}

#checkout-checkout.checkout-ui-modern #shipping-comment-group textarea[name="comment"] {
  height: 52px;
  min-height: 52px;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-actions {
  margin-top: 28px;
  padding-top: 8px;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-actions .lem-checkout-actions-inner {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  float: none !important;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-actions-inner--agree {
  max-width: 100%;
}

/* CTA: мягкий голубой в духе переключателя доставки (светлее, без кислотного зелёного) */
#checkout-checkout.checkout-ui-modern .lem-checkout-cta,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm button.btn-primary,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="button"],
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="submit"] {
  width: 100%;
  padding: 16px 24px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  border-radius: 14px !important;
  border: 2px solid #5eb3f0 !important;
  background: linear-gradient(180deg, #8ed4ff 0%, #62bdf9 42%, #4aadf2 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(15, 80, 130, 0.18);
  box-shadow: 0 4px 16px rgba(74, 173, 242, 0.22);
  transition: background 0.2s ease, background-image 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-cta:hover,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm button.btn-primary:hover,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="button"]:hover,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="submit"]:hover {
  background: #fff !important;
  background-image: none !important;
  color: #0b7fd4 !important;
  text-shadow: none !important;
  border-color: #5eb3f0 !important;
  box-shadow: 0 4px 18px rgba(74, 173, 242, 0.18);
}

#checkout-checkout.checkout-ui-modern .lem-checkout-cta:active,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm button.btn-primary:active,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="button"]:active,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm input.btn-primary[type="submit"]:active {
  transform: scale(0.98);
  background: #eef6fc !important;
  background-image: none !important;
  color: #0b7fd4 !important;
  border-color: #4aadf2 !important;
}

#checkout-checkout.checkout-ui-modern .lem-checkout-cta:focus,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .btn-primary:focus {
  outline: 2px solid #5eb3f0;
  outline-offset: 3px;
}

#checkout-checkout.checkout-ui-modern .lem-choice-card input:focus + label {
  outline: 2px solid #0b7fd4;
  outline-offset: 2px;
  border-radius: 12px;
}

#checkout-checkout.checkout-ui-modern .btn-primary.lem-checkout-cta {
  border: 2px solid #5eb3f0 !important;
  background: linear-gradient(180deg, #8ed4ff 0%, #62bdf9 42%, #4aadf2 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(15, 80, 130, 0.18);
  box-shadow: 0 4px 16px rgba(74, 173, 242, 0.22);
}

#checkout-checkout.checkout-ui-modern .btn-primary.lem-checkout-cta:hover {
  background: #fff !important;
  background-image: none !important;
  color: #0b7fd4 !important;
  text-shadow: none !important;
  border-color: #5eb3f0 !important;
  box-shadow: 0 4px 18px rgba(74, 173, 242, 0.18);
}

/* Явно: шаг доставки/оплаты (Bootstrap .btn-default) */
#checkout-checkout.checkout-ui-modern #collapse-shipping-method #button-shipping-method,
#checkout-checkout.checkout-ui-modern #collapse-shipping-method input.btn-default.lem-checkout-cta,
#checkout-checkout.checkout-ui-modern #collapse-payment-method #button-payment-method,
#checkout-checkout.checkout-ui-modern #collapse-payment-method input.btn-default.lem-checkout-cta {
  width: 100%;
  padding: 16px 24px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  border-radius: 14px !important;
  border: 2px solid #5eb3f0 !important;
  background: linear-gradient(180deg, #8ed4ff 0%, #62bdf9 42%, #4aadf2 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(15, 80, 130, 0.18);
  box-shadow: 0 4px 16px rgba(74, 173, 242, 0.22);
  transition: background 0.2s ease, background-image 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease;
}

#checkout-checkout.checkout-ui-modern #collapse-shipping-method #button-shipping-method:hover,
#checkout-checkout.checkout-ui-modern #collapse-shipping-method input.btn-default.lem-checkout-cta:hover,
#checkout-checkout.checkout-ui-modern #collapse-payment-method #button-payment-method:hover,
#checkout-checkout.checkout-ui-modern #collapse-payment-method input.btn-default.lem-checkout-cta:hover {
  background: #fff !important;
  background-image: none !important;
  color: #0b7fd4 !important;
  text-shadow: none !important;
  border-color: #5eb3f0 !important;
  box-shadow: 0 4px 18px rgba(74, 173, 242, 0.18);
}

#checkout-checkout.checkout-ui-modern #collapse-shipping-method #button-shipping-method:active,
#checkout-checkout.checkout-ui-modern #collapse-shipping-method input.btn-default.lem-checkout-cta:active,
#checkout-checkout.checkout-ui-modern #collapse-payment-method #button-payment-method:active,
#checkout-checkout.checkout-ui-modern #collapse-payment-method input.btn-default.lem-checkout-cta:active {
  transform: scale(0.98);
  background: #eef6fc !important;
  background-image: none !important;
  color: #0b7fd4 !important;
  border-color: #4aadf2 !important;
}

@media (max-width: 767px) {
  #checkout-checkout.checkout-ui-modern .lem-checkout-actions .lem-checkout-actions-inner {
    max-width: none;
    margin-left: 0;
  }

  #checkout-checkout.checkout-ui-modern .lem-checkout-actions-inner--agree {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  #checkout-checkout.checkout-ui-modern .lem-checkout-actions-inner--agree .lem-checkout-cta {
    order: 3;
  }
}

#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .table-bordered {
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .table-bordered > thead > tr > td,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .table-bordered > tbody > tr > td,
#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .table-bordered > tfoot > tr > td {
  padding: 12px 14px;
}

#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .table-responsive {
  border-radius: 12px;
}

#checkout-checkout.checkout-ui-modern .pickup-store-info {
  border-radius: 14px;
}

#checkout-checkout.checkout-ui-modern .pickup-route-btn.btn {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
}

#checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .tbank-card-payment .buttons .pull-right {
  float: none !important;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

@media (max-width: 767px) {
  #checkout-checkout.checkout-ui-modern #collapse-checkout-confirm .tbank-card-payment .buttons .pull-right {
    max-width: none;
    margin-left: 0;
  }
}
