
.subscription-term-selector-wrapper {
  display: flex;
  justify-content: center;
}

.subscription-term-selector {
  display: flex;
  background-color: #f0f0f0;
  padding: 3px;
  border-radius: 1000px;
}

.subscription-term-selector.disabled {
  opacity: 0.6;
}

.subscription-term-button {
  color: #52618e;
  border-radius: 1000px;
  padding: 0.5rem 2rem;
  background-color: transparent;
  cursor: pointer;
  min-width: 150px;
  text-align: center;
}

.subscription-term-button:not(.selected):hover {
  text-decoration: underline;
}

.subscription-term-button.selected {
  color: hsl(225, 45%, 18%);
  background-color: white;
}

.pricing-cards-wrapper {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 1rem 0;
}

.pricing-card {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid lightgray;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 300ms ease-in-out;
  box-shadow: none;
  position: relative;
}

/* .pricing-card.locked {
  opacity: 0.6;
} */

.pricing-card.locked::before {
  content: "\f023"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255, 0.6);
  font-size: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: background-color 100ms ease-in;
  z-index: 1;
}

.pricing-card.locked:hover::before {
  content: "Annual Only"; 
  font-family: Nunito Sans;
  font-size: 18px;
  text-align: center;
  background-color: rgba(255,255,255, 0.95);
}

.pricing-card:hover {
  box-shadow: 0 3px 10px rgb(52 58 64 / 20%);
}

.pricing-card-header {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-card-tag {
  background-color: hsl(225, 45%, 18%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 1000px;
  font-size: 0.6rem;
  font-weight: normal;
}

.pricing-card-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.pricing-card-term {
  font-weight: 700;
}

.pricing-card-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.pricing-card-feature {
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}


.pricing-card-select-button {
  border-radius: 1000px;
  background-color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(225, 45%, 18%);
  color: hsl(225, 45%, 18%);
  text-align: center;
  margin-top: 1rem;
  width: 100%;
}

.pricing-card-view-details-link {
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

.pricing-card-view-details-link:hover {
  text-decoration: underline;
}

.pricing-card-view-details-link i {
  margin-left: 0.25rem;
}

.pricing-card.selected {
  background-color: hsl(225, 45%, 18%);
  color: white;
}

.pricing-card.selected .pricing-card-select-button {
  background-color: white;
  color: hsl(225, 45%, 18%);
}

.pricing-card.selected .pricing-card-tag {
  background-color: white;
  color: hsl(225, 45%, 18%);
}

#monthly-term-warning-banner {
  display: none;
  justify-content: center;
  margin-top: 1rem;
}

#monthly-term-warning-banner .inner {
  padding: 0.5rem 1rem;
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  border-radius: 4px;
}

#monthly-term-warning-banner span {
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

#checkout-preview-section {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 0.5rem;
}

#checkout-preview-card {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid lightgray;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgb(52 58 64 / 20%);
  max-width: 415px;
}

#checkout-preview-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#checkout-preview-header i {
  margin-right: 0.25rem;
}

#checkout-preview-section-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-preview-section-item {
  padding: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}

.checkout-preview-section-plan {
  margin-right: 50px;
}

#checkout-preview-section-prices-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
}

.checkout-preview-section-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-preview-section-price-line > div {
  font-size: 13px;
  opacity: 0.8;
}

.checkout-preview-section-price-line > div:first-of-type {
  margin-right: 50px;
}

.checkout-preview-section-price-line.total {
  font-weight: bold;
}
.checkout-preview-section-price-line.total > div {
  opacity: 1;
}

#checkout-preview-section-terms-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

#checkout-preview-section-terms-wrapper i {
  margin-left: 0.25rem;
  opacity: 0.8;
  font-size: 14px;
}

#checkout-preview-section-tc-checkbox {
  height: 18px;
  width: 18px;
  accent-color: #192443;
}

.input-icon {
  display: none;
  position: absolute;
  top: 28px;
  opacity: 0.8;
}

.input-icon.right {
  right: 10px;
}

#discount-code-message {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
}

#discount-code-message.warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

#discount-code-message.success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

#checkout-preview-section-message {
  display: none;
  padding: 0.5rem;
  border-radius: 4px;
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  max-width: 350px;
}

#checkout-preview-section button,
#checkout-preview-button-upgrade {
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.07), 0 1px 1.5px 0 hsla(0, 0%, 0%, 0.05);
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: all 0.25s ease-out;
  width: 100%;
  background-color: #192342;
  margin-bottom: 0.5rem;
}

#checkout-preview-section button i  {
  margin-right: 0.25rem;
}

#checkout-preview-section button.disabled {
  opacity: 0.7;
  pointer-events: none;
}

#checkout-preview-section #checkout-preview-add-discount-button {
  color: unset;
  background-color: white;
  border: 1px solid;
}

#checkout-preview-button-cancel, #checkout-preview-button-downgrade {
  display: none;
  background-color: #e61947 !important;
  color: white !important;
}

.dialog-text {
  padding: 0.5rem;
  max-width: 450px;
}

.dialog-warning-message {
  display: none;
  padding: 0.5rem;
  border-radius: 4px;
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  max-width: 450px;
}

#upgrade-subscription-dialog-balance {
  font-weight: bold;
}

#checkout-preview-order-details {
  padding: 0.5rem;
  opacity: 0.8;
  font-size: 0.8rem;
  width: 100%;
}

#subscription-term-warning-message {
  display: none;
  position: relative;
  padding: 0.75rem;
  border-radius: 4px;
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
  max-width: 600px;
  margin: 0.5rem auto;
}

#subscription-term-warning-message .close-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  cursor: pointer;
}

#subscription-term-warning-message a {
  color: #856404;
  font-weight: bold;
}

.dialog-content-section {
  margin-bottom: 1rem;
}

.dialog-content-subheader {
  text-decoration: underline;
}

.dialog-content-section-text {
  opacity: 0.8;
}

.dialog-content-section-text ul {
  margin-block-start: 0.5rem;
  padding-inline-start: 20px;
}

.dialog-content-section-text ul li {
  margin-bottom: 0.25rem;
}

@media (max-width: 576px) {

  .subscription-term-selector {
    width: 100%;
  }

  .subscription-term-button {
    min-width: unset;
    padding: 0.5rem 1rem;
    font-size: 14px;
    flex-grow: 1;
  }

}