/* Discount-code box under the plan list (Create Account + Overview plan
   picker) - see components/PlanCouponBox.tsx. Colours/sizes follow the
   Formelle App Figma mobile screen (node 14658:61619). */
.coupon-box {
  margin: 0 0 28px;
}

.coupon-box__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #202020;
  margin: 0 0 7px;
}

.coupon-box__row {
  display: flex;
  gap: 10px;
}

.coupon-box__input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d9d6d2;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #202020;
  text-transform: uppercase;
}

.coupon-box__input::placeholder {
  color: #696663;
  text-transform: none;
}

.coupon-box__input:focus {
  outline: none;
  border-color: #202020;
}

.coupon-box__input[aria-invalid="true"] {
  border-color: #b3261e;
}

.coupon-box__apply {
  flex: 0 0 90px;
  height: 48px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d9d6d2;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #202020;
  cursor: pointer;
}

.coupon-box__apply:hover:not(:disabled) {
  background: #f5f3f1;
}

.coupon-box__apply:disabled {
  cursor: default;
}

/* Applied state: light-green button, exactly as in the design. */
.coupon-box__apply.is-applied {
  background: #e8efe9;
  opacity: 1;
}

.coupon-box__status {
  min-height: 15px;
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
  color: #696663;
}

.coupon-box__status:empty {
  display: none;
}

.coupon-box__status.is-success {
  color: #356447;
}

.coupon-box__status.is-error {
  color: #b3261e;
}

.coupon-box__remove {
  margin-left: 6px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: #696663;
  text-decoration: underline;
  cursor: pointer;
}

.coupon-box__special {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0 4px;
}

.coupon-box__special-label {
  font-size: 14px;
  font-weight: 600;
  color: #202020;
}

.coupon-box__special-price {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #202020;
}

/* Mobile: the three plan cards become the list rows from the design
   (name + period on the left, price on the right, selected row dark). */
@media (max-width: 480px) {
  .account-plan-grid {
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
  }

  .account-plan-grid .account-plan-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top price"
      "period price";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    flex: 0 0 auto;
    min-height: 64px;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d9d6d2;
    border-radius: 0;
    cursor: pointer;
  }

  .account-plan-grid .account-plan-card:last-of-type {
    border-bottom-color: transparent;
  }

  .account-plan-grid .account-plan-card.is-selected {
    background: #202020;
    border-color: transparent;
    border-radius: 10px;
    color: #fff;
  }

  .account-plan-grid .account-plan-card__top {
    grid-area: top;
    margin: 0;
    justify-content: flex-start;
  }

  .account-plan-grid .account-plan-card__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: inherit;
  }

  .account-plan-grid .account-plan-card__radio,
  .account-plan-grid .account-plan-card__meta {
    display: none;
  }

  .account-plan-grid .account-plan-card__period {
    grid-area: period;
    margin: 0;
    font-size: 10px;
    line-height: 14px;
    color: #696663;
  }

  .account-plan-grid .account-plan-card__price {
    grid-area: price;
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 27px;
    color: inherit;
  }

  .account-plan-grid .account-plan-card.is-selected .account-plan-card__period {
    color: #fff;
  }
}
