*,
:after,
:before {
  box-sizing: border-box;
}
/* WHMCS product cards shortcode styles */

.whmcs-cards {
  --neb-wcards-text-color: var(--color-secondary, #2d3c58);
  --neb-wcards-text-color-hover: var(--color-secondary-dark, #313149);
  --neb-wcards-accent-color: var(--color-primary, #ff7100);
  --neb-wcards-muted-color: #6b7280;
  --neb-wcards-border-color: #ece6dd;
  display: grid;
  grid-template-columns: repeat(var(--whmcs-columns, 3), 1fr);
  gap: 24px;
  margin: 32px 0;
}

@media (max-width: 900px) {
  .whmcs-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .whmcs-cards {
    grid-template-columns: 1fr;
  }
}

.whmcs-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--neb-wcards-border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.whmcs-card:hover {
  border-color: var(--neb-wcards-accent-color);
}

.whmcs-card--featured {
  border: 2px solid var(--neb-wcards-accent-color);
}

.whmcs-card__badge {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neb-wcards-accent-color);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.whmcs-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.whmcs-card__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.whmcs-cards .whmcs-card__header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--neb-wcards-text-color);
  line-height: 1.2;
}

.whmcs-card__subtitle {
  font-size: 16px;
  color: var(--neb-wcards-muted-color);
  margin: 0 0 4px;
}

.whmcs-card__desc {
  color: var(--neb-wcards-muted-color);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.whmcs-card__term {
  font-size: 13px;
  color: var(--neb-wcards-muted-color);
  margin: 0 0 20px;
}

.whmcs-card__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--neb-wcards-text-color);
  margin: 1rem 0 0 0;
}

.whmcs-card__period {
  font-size: 16px;
  font-weight: 400;
  color: var(--neb-wcards-muted-color);
}

.whmcs-card__button {
  display: inline-block;
  background: var(--neb-wcards-accent-color);
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: opacity 0.15s ease;
}

.whmcs-card__button:hover {
  background-color: var(--neb-wcards-text-color);
}

.whmcs-card--featured .whmcs-card__button:hover {
  background-color: var(--neb-wcards-text-color-hover);
}

.whmcs-card--featured .whmcs-card__button {
  background: var(--neb-wcards-text-color);
}

.whmcs-card__features {
  text-align: left;
}

.whmcs-card__features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.whmcs-card__features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--neb-wcards-text-color);
  line-height: 1.4;
}

.whmcs-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 700;
}

.whmcs-card__price--custom {
  font-size: 22px;
  font-style: italic;
  color: var(--neb-wcards-text-color);
  margin-bottom: 20px;
}

/* WHMCS option table shortcode styles */

.whmcs-option-table {
  --neb-wot-text-color: var(--color-secondary, #2d3c58);
  --neb-wot-text-color-hover: var(--color-secondary-dark, #313149);
  --neb-wot-accent-color: var(--color-primary, #ff7100);
  --neb-wot-muted-color: #6b7280;
  --neb-wot-border-color: #ece6dd;
  margin: 32px 0;
}

.whmcs-option-table__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--neb-wot-text-color);
  text-align: center;
  margin: 0 0 8px;
}

.whmcs-option-table__subtitle {
  font-size: 16px;
  color: var(--neb-wot-muted-color);
  text-align: center;
  margin: 0 0 24px;
}

.whmcs-option-table__table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--neb-wot-border-color);
}

.whmcs-option-table__table thead th {
  background: var(--neb-wot-accent-color);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
  border: 1px solid var(--neb-wot-accent-color);
}

.whmcs-option-table__table tbody td {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--neb-wot-text-color);
  border-top: 1px solid var(--neb-wot-border-color);
  text-align: center;
}

.whmcs-option-table__table tbody tr:nth-child(even) {
  background: #fdf3e7;
}

.whmcs-option-table__button {
  display: inline-block;
  border: 1px solid var(--neb-wot-accent-color);
  color: var(--neb-wot-accent-color);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.whmcs-option-table__button:hover {
  background: var(--neb-wot-accent-color);
  color: #fff;
}

.whmcs-option-table__description {
  margin-top: 24px;
  color: var(--neb-wot-text-color);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .whmcs-option-table__table,
  .whmcs-option-table__table thead,
  .whmcs-option-table__table tbody,
  .whmcs-option-table__table th,
  .whmcs-option-table__table td,
  .whmcs-option-table__table tr {
    display: block;
  }

  .whmcs-option-table__table thead {
    display: none;
  }

  .whmcs-option-table__table {
    box-shadow: none;
  }

  .whmcs-option-table__table tbody tr {
    border: 1px solid var(--neb-wot-border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .whmcs-option-table__table tbody td {
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .whmcs-option-table__table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--neb-wot-muted-color);
    margin-right: 12px;
  }
}
