/* =========================================
   DFL Checkout (3-card layout)
   Matches dashboard styling
   ========================================= */

.dfl-checkout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
}

.dfl-checkout__card {
  margin-bottom: 14px;
}

.dfl-checkout__card-inner {
  padding: clamp(16px, 2vw, 24px);
}

.dfl-checkout__card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dfl-dark, #1C1917);
}

.dfl-checkout__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dfl-checkout__fields--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dfl-checkout__field--full {
  grid-column: 1 / -1;
}

.dfl-checkout__fields--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.dfl-checkout__field label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.dfl-checkout__input,
.dfl-checkout__select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #fff;
}

.dfl-checkout__input:focus,
.dfl-checkout__select:focus {
  outline: none;
  border-color: rgba(41, 128, 185, 0.45);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.12);
}

.dfl-checkout__inline-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dfl-checkout__inline-group .dfl-checkout__select {
  width: auto;
  min-width: 70px;
}

.dfl-checkout__login-link {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}

.dfl-checkout__login-link a {
  color: var(--dfl-link, #2980B9);
  text-decoration: none;
}

.dfl-checkout__login-link a:hover {
  text-decoration: underline;
}

.dfl-checkout__message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.dfl-checkout__message.pmpro_error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #c0392b;
}

.dfl-checkout__message.pmpro_success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #27ae60;
}

/* Remove bottom border from last card so no line appears above submit area */
.dfl-checkout__plan-details,
.dfl-checkout__billing-card {
  border-bottom: none;
}

.dfl-checkout__submit {
  margin-top: 20px;
  padding-top: 20px;
  border-top: none !important;
}

.dfl-checkout__stripe-badge {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.4;
}

.dfl-checkout__btn-submit {
  min-width: 200px;
  padding: 12px 24px;
  font-size: 15px;
}

.dfl-checkout__fieldset {
  border: none;
  border-top: none;
  margin: 0;
  padding: 0;
}

/* Prevent PMPro/Stripe from adding separator lines between Billing and Payment sections */
#pmpro_payment_information_fields {
  border-top: none !important;
}

.dfl-checkout__fieldset legend.dfl-checkout__card-title {
  margin-bottom: 16px;
}

/* Plan Details card – matches dashboard Your Benefits styling */
.dfl-checkout__plan-details-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dfl-checkout__plan-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--dfl-dark, #1C1917);
}

.dfl-checkout__plan-perks {
  margin: 0 0 4px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.dfl-checkout__plan-perks li {
  margin-bottom: 4px;
}

.dfl-checkout__plan-perks li:last-child {
  margin-bottom: 0;
}

.dfl-checkout__plan-note {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.4;
}

.dfl-checkout__plan-badge {
  align-self: flex-start;
  padding: 8px 16px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

/* Tablet: 1024 */
@media (max-width: 1024px) {
  .dfl-checkout {
    padding: 20px 0;
  }

  .dfl-checkout__card-inner {
    padding: clamp(14px, 2vw, 20px);
  }
}

/* Mobile: 768 – single column, full width */
@media (max-width: 768px) {
  .entry-header .entry-title,
  .entry-header .page-title {
    text-align: center;
  }

  .dfl-checkout {
    padding: 16px;
  }

  .dfl-checkout__fields--grid {
    grid-template-columns: 1fr;
  }

  .dfl-checkout__fields--inline {
    flex-direction: column;
  }

  .dfl-checkout__btn-submit {
    width: 100%;
    min-width: 0;
  }

  .dfl-checkout__card-inner {
    padding: 16px;
  }

  .dfl-checkout__card-title {
    font-size: 17px;
  }
}
