.mahamu-referral-arrival,
.mahamu-referral-welcome,
.mahamu-referral-account-note {
    font-family: var(--wp--custom--font--family--ui);
    color: var(--wp--custom--color--text--primary);
}

.mahamu-referral-arrival {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--wp--custom--color--surface--canvas);
    border-bottom: 1px solid var(--wp--custom--color--border--subtle);
    line-height: 1.4;
}

.mahamu-referral-arrival strong { color: var(--wp--custom--color--action--primary); }

.mahamu-referral-welcome {
    margin: 0 0 16px;
    padding: 16px;
    background: var(--wp--custom--color--surface--transaction);
    border: 1px solid var(--wp--custom--color--border--subtle);
    border-radius: var(--wp--custom--radius--control);
}

.mahamu-referral-welcome h3,
.mahamu-referral-account-note h3 {
    margin: 0 0 8px;
    color: var(--wp--custom--color--text--primary);
    font-family: var(--wp--custom--font--family--ui);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.mahamu-referral-welcome p,
.mahamu-referral-account-note p { margin: 8px 0; line-height: 1.65; }

.mahamu-referral-welcome label {
    display: block;
    margin: 8px 0 6px;
    font-weight: 600;
}

.mahamu-referral-phone {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--wp--custom--size--control-min-height);
    padding: 10px 12px;
    border: 1px solid var(--wp--custom--color--border--control);
    border-radius: var(--wp--custom--radius--control);
    background: var(--wp--custom--color--surface--transaction);
    color: var(--wp--custom--color--text--primary);
    font-size: 16px;
}

.mahamu-referral-phone:focus {
    outline: 3px solid color-mix(in srgb,var(--wp--custom--color--accent--focus) 22%,transparent);
    outline-offset: 2px;
    border-color: var(--wp--custom--color--accent--focus);
}

.mahamu-referral-button,
.mahamu-referral-welcome button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--wp--custom--size--control-min-height);
    margin-top: 10px;
    padding: 10px 16px;
    border: 1px solid var(--wp--custom--color--action--primary);
    border-radius: var(--wp--custom--radius--control);
    background: var(--wp--custom--color--action--primary);
    color: var(--wp--custom--color--text--inverse);
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.mahamu-referral-button:hover,
.mahamu-referral-welcome button:hover { background: var(--wp--custom--color--action--primary-hover); color: var(--wp--custom--color--text--inverse); }

.mahamu-referral-button:focus-visible,
.mahamu-referral-welcome button:focus-visible {
    outline: 3px solid color-mix(in srgb,var(--wp--custom--color--accent--focus) 25%,transparent);
    outline-offset: 3px;
}

.mahamu-referral-welcome button:disabled { opacity: .58; cursor: wait; }
.mahamu-referral-welcome small { display: block; margin-top: 8px; color: var(--wp--custom--color--text--secondary); line-height: 1.5; }
.mahamu-referral-status { min-height: 1.5em; margin: 10px 0 0; }
.mahamu-referral-status.is-error { color: var(--wp--custom--color--state--error); }
.mahamu-referral-status.is-success,
.mahamu-referral-success { color: var(--wp--custom--color--state--success); }
.mahamu-referral-status.is-info { color: var(--wp--custom--color--state--info); }
.mahamu-referral-account-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--wp--custom--color--border--subtle); }
.mahamu-referral-turnstile { margin-top: 12px; }

@media (max-width: 390px) {
    .mahamu-referral-arrival { justify-content: flex-start; }
    .mahamu-referral-button,
    .mahamu-referral-welcome button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mahamu-referral-button,
    .mahamu-referral-welcome button { transition: none; }
}
