/* ---- Utility ---- */
.zhsub--hidden { display: none !important; }

/* ---- Toggle ---- */
.zhsub-toggle {
    display: inline-flex;
    border: 1px solid currentColor;
    border-radius: 25px;
    overflow: hidden;
}

.zhsub-toggle__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em 1.25em;
    font-size: inherit;
    font-family: inherit;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
}

.zhsub-toggle__btn.is-active {
    background-color: var(--zhsub-toggle-active-bg, #193133);
    color: var(--zhsub-toggle-active-color, #d0ff71);
    opacity: 1;
}

.zhsub-toggle__save-label {
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 0.35em;
    vertical-align: middle;
}

/* ---- Stepper ---- */
.zhsub-stepper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

.zhsub-stepper__label {
    margin: 0;
    font-size: 0.875em;
    font-weight: bold;
}

.zhsub-stepper__control {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.zhsub-stepper__btn {
    background: none;
    border: 1px solid currentColor;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 0;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    font-family: inherit;
    color: inherit;
    transition: background 0.12s;
    flex-shrink: 0;
}

.zhsub-stepper__btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.07);
}

.zhsub-stepper__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.zhsub-stepper__input {
    width: 2.5em;
    border: none;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.zhsub-stepper__input::-webkit-outer-spin-button,
.zhsub-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.zhsub-stepper__input:focus {
    outline: none;
    box-shadow: none;
}

.zhsub-physician-note {
    margin: 0;
    font-size: 0.8125em;
    opacity: 0.7;
}

/* ---- Price display ---- */
.zhsub-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
}

.zhsub-price__amount {
    font-size: 2em;
    font-weight: 700;
    line-height: 1;
}

.zhsub-price__period {
    font-size: 0.9em;
    opacity: 0.65;
}

.zhsub-price__badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.2em 0.75em;
    background: #1f8970;
    color: #fff;
    border-radius: 15px;
    margin-bottom: 0.5em;
}

.zhsub-price__annual-note {
    font-size: 0.75em;
    opacity: 0.6;
}

/* ---- Pricing card ---- */
.zhsub-pricing-card {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.zhsub-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
}

/* ---- CTA ---- */
.zhsub-cta__btn {
    cursor: pointer;
}
