/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.learning-path-page {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding: 2.25rem 1.25rem;
}

@media (min-width: 40rem) {
  .learning-path-page {
    padding: 3rem 2rem;
  }
}

.subscription-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .subscription-columns {
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .subscription-columns {
    grid-template-columns: minmax(0, var(--primary-column, 1.75fr)) minmax(0, 1fr);
  }
}

.learning-path-cart-columns {
  --primary-column: 1.667fr;
}

.premium-checkout-choice {
  border: 2px solid #cce1d8;
  border-radius: 1rem;
  cursor: pointer;
}

.premium-checkout-choice:hover {
  border-color: #729e8f;
}

.premium-checkout-choice:has(input:checked) {
  background: #eef7f2;
  border-color: #103c3f;
}

.premium-checkout-choice:has(input:focus-visible) {
  outline: 2px solid #176974;
  outline-offset: 3px;
}

.premium-checkout-radio {
  appearance: none;
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #729e8f;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.premium-checkout-radio:checked {
  border-color: #103c3f;
  background: radial-gradient(circle, #103c3f 0 40%, white 44%);
}

.cart-checkout-methods .premium-checkout-radio {
  position: static;
  flex: none;
  margin-top: 0.1rem;
}

.cart-checkout:has(#cart_gateway_bkash:checked) #cart-quote-whop,
.cart-checkout:has(#cart_gateway_whop:checked) #cart-quote-bkash {
  display: none;
}

.cart-checkout-breakdown dt {
  color: #405957;
}

.cart-checkout-breakdown > :last-child {
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-color: #b7d5c9;
  font-size: 1rem;
}

.cart-checkout-breakdown > :last-child dt {
  color: inherit;
}

.cart-checkout-breakdown > :last-child dd {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.premium-checkout-step,
.premium-checkout-stepper {
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
}

.premium-checkout-step {
  width: 1.85rem;
  height: 1.85rem;
  color: #fff;
  background: #103c3f;
  font-size: 0.95rem;
}

.premium-checkout-stepper {
  width: 2.75rem;
  height: 2.75rem;
  color: #103c3f;
  background: #e2f1eb;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.premium-checkout-stepper:not(:disabled):hover {
  background: #cce8db;
}

.premium-checkout-stepper:disabled {
  cursor: default;
  opacity: 0.45;
}

.premium-checkout-seats {
  appearance: textfield;
}

.premium-checkout-seats::-webkit-inner-spin-button,
.premium-checkout-seats::-webkit-outer-spin-button {
  appearance: none;
}

.premium-checkout-savings {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border-radius: 1rem;
  color: #103c3f;
  background: #ffe4a5;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 800;
}

[data-premium-checkout-target][hidden] {
  display: none;
}
