.ldcsc-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.95fr);
  grid-template-areas: "checkout-main checkout-sidebar";
  gap: 14px;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 14px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Inter", Arial, sans-serif;
  box-sizing: border-box;
}

.ldcsc-left {
  grid-area: checkout-main;
  min-width: 0;
}

.ldcsc-right {
  grid-area: checkout-sidebar;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 20px;
}

.ldcsc-left,
.ldcsc-right {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  padding: 14px;
  box-sizing: border-box;
}

.ldcsc-left h2 {
  margin: 12px 0 8px;
  color: #0d2d47;
  font-size: clamp(24px, 2.8vw, 36px) !important;
  font-weight: 800;
  line-height: 1.2 !important;
}

.ldcsc-left h2:first-child {
  margin-top: 0;
}

.ldcsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.ldcsc-field.cusfull,
.ldcsc-toggle.cusfull {
  grid-column: 1 / -1;
}

.ldcsc-field label {
  display: block;
  font-size: 11px;
  color: #344a5f;
  margin: 0 0 4px;
  font-weight: 600;
}

.ldcsc-field--error > label,
.ldcsc-field--error label:first-child,
.ldcsc-toggle--error > span,
.ldcsc-consent-heading--error {
  color: #c62828 !important;
}

.ldcsc-field--error input,
.ldcsc-field--error select,
.ldcsc-field--error textarea,
.ldcsc-toggle--error input {
  border-color: #c62828 !important;
  background: #fff5f5;
}

.ldcsc-check--error {
  color: #c62828;
}

.ldcsc-check__error {
  margin-top: 6px;
  margin-bottom: 0;
}

.ldcsc-field__error {
  color: #c62828;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.35;
}

.ldcsc-grid input,
.ldcsc-grid select,
.ldcsc-card-element,
.ldcsc-payment-element {
  border: 1px solid #e0e6ec;
  border-radius: 4px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  background: #fbfcfd;
}

.ldcsc-grid select {
  appearance: none;
}

.ldcsc-card-box {
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
}

.ldcsc-card-errors {
  color: #cc0000;
  margin-top: 8px;
  font-size: 13px;
}

.ldcsc-card-errors--visible {
  margin-top: 0;
}

.ldcsc-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  color: #1f2b37;
  font-size: 11px;
  line-height: 1.35;
}

.ldcsc-submit {
  width: 100%;
  margin-top: 10px;
  background: #003b6f;
  color: #fff;
  border: 0;
  border-radius: 5px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ldcsc-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.ldcsc-status {
  margin-top: 10px;
  font-size: 14px;
  color: #0b2a44;
}

.ldcsc-mini {
  font-size: 10px;
  text-transform: uppercase;
  color: #8798aa;
  letter-spacing: 0.4px;
  margin: 0;
  font-weight: 700;
}

.ldcsc-right h3 {
  margin: 2px 0 8px;
  color: #0d2d47;
  font-size: 24px;
  line-height: 1.1;
}

.ldcsc-benefits,
.ldcsc-security {
  margin: 12px 0;
  padding-left: 18px;
  color: #1f2b37;
  font-size: 11px;
  line-height: 1.45;
}

.ldcsc-benefits-line {
  margin: 12px 0;
  padding: 0;
  color: #1f2b37;
  font-size: 11px;
  line-height: 1.45;
}

.ldcsc-totals {
  margin-top: 10px;
}

.ldcsc-totals div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e8edf2;
  padding-top: 8px;
  font-size: 12px;
  color: #20374c;
  font-weight: 600;
}

.ldcsc-totals div + div {
  margin-top: 2px;
}

.ldcsc-payment-methods {
  margin-top: 10px;
}

.ldcsc-pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 12px;
}

.ldcsc-pay-row--muted {
  opacity: 0.65;
}

.ldcsc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  margin-bottom: 8px;
}

.ldcsc-toggle-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ldcsc-toggle-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #20374c;
  cursor: pointer;
}

.ldcsc-toggle-options input[type="radio"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: #003b6f;
  flex: 0 0 auto;
}

.ldcsc-section--participant .ldcsc-field label,
.ldcsc-section--participant .ldcsc-toggle {
  width: 100%;
}

.ldcsc-participant-fields {
  display: none;
  margin-bottom: 8px;
}

.ldcsc-participant-fields.is-visible {
  display: block;
}

.ldcsc-participant-fields .ldcsc-grid {
  margin-top: 0;
}

.ldcsc-wrapper--free .ldcsc-left,
.ldcsc-wrapper--free .ldcsc-right {
  min-height: 0;
}

@media (max-width: 768px) {
  .ldcsc-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    grid-template-areas: none;
  }

  .ldcsc-left,
  .ldcsc-right {
    width: 100%;
    max-width: 100%;
    position: static;
    grid-area: auto;
  }

  .ldcsc-right {
    order: -1;
  }

  .ldcsc-grid {
    grid-template-columns: 1fr;
  }

  .ldcsc-field.cusfull,
  .ldcsc-toggle.cusfull {
    grid-column: auto;
  }
}

.ldcsc-totals h4 {
  margin: 0 0 8px;
  color: #0d2d47;
  font-size: 14px;
  font-weight: 700;
}

.ldcsc-totals--free .ldcsc-totals__free-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e8edf2;
  padding-top: 8px;
  font-size: 14px;
  color: #20374c;
  font-weight: 600;
}

.ldcsc-totals--free .ldcsc-totals__free-row strong {
  color: #166534;
  font-size: 16px;
}

.ldcsc-promo {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ldcsc-promo input {
  border: 1px solid #d6dde5;
  border-radius: 2px;
  min-height: 32px;
  padding: 8px 10px;
  width: 100%;
  font-size: 12px;
}

.ldcsc-promo button {
  border: 1px solid #e2b8c8;
  border-radius: 2px;
  background: #fff;
  color: #ce7a95;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

.ldcsc-coupon-status {
  font-size: 11px;
  color: #36546f;
  margin-top: 4px;
}

.ldcsc-method-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #617487;
}

.elementor .ldcsc-wrapper,
.elementor-1747 .ldcsc-wrapper,
.elementor-widget-shortcode .ldcsc-wrapper,
.elementor-element .ldcsc-wrapper {
  display: grid !important;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ldcsc-config-notice {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.ldcsc-config-notice p {
  margin: 0;
}

.ldcsc-success-panel {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #c6e7d4;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(11, 42, 68, 0.08);
}

.ldcsc-success-panel__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}

.ldcsc-success-panel__title {
  margin: 0 0 12px;
  color: #0b2a44;
  font-size: 28px;
  line-height: 1.25;
}

.ldcsc-success-panel__message {
  margin: 0 0 10px;
  color: #0b2a44;
  font-size: 17px;
  font-weight: 600;
}

.ldcsc-success-panel__instructions {
  margin: 0 auto 20px;
  max-width: 640px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.ldcsc-success-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ldcsc-success-panel__action {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: #0b2a44;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}

.ldcsc-success-panel__action:hover {
  background: #12385a;
  color: #fff !important;
}
