/* Referral Program (Raya 1.17.53): [raya_referral_signup] and the partner part of [raya_account]. Builds on account.css. */
.raya-ref-form [hidden] { display: none !important; }
.raya-ref-form label { display: block; font-weight: 600; font-size: .92em; margin: 0 0 12px; }
.raya-ref .raya-ref-form input[type=tel], .raya-ref-form input[type=tel], .raya-ref-form textarea, .raya-ref-form select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border: 1px solid #c3c4c7; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: #1d2327; }
.raya-ref-form textarea { resize: vertical; }
.raya-ref-set { border: 1px solid #e3e6ea; border-radius: 12px; padding: 14px 16px 4px; margin: 0 0 16px; min-width: 0; }
.raya-ref-set legend { font-weight: 700; padding: 0 6px; }
.raya-ref-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.raya-ref-3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 0 14px; }
.raya-ref-short { max-width: 260px; }
.raya-ref-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.raya-ref-check input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.raya-ref-cert { background: #f6f7f7; border-radius: 10px; padding: 10px 14px; margin: 4px 0 12px; font-size: .9em; }
.raya-ref-cert p { margin: 6px 0; }
.raya-ref-sign { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.25em !important; }
.raya-ref-tos { max-height: 240px; overflow: auto; border: 1px solid #e3e6ea; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: .92em; background: #fbfbfc; }
.raya-ref-code { display: block; font-size: 1.9em; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #135e96; }
.raya-ref-idcard { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.raya-ref-idcard > .raya-ac-muted { grid-column: 1 / -1; }
.raya-ref-link { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.raya-ref-link .raya-ac-muted { flex-basis: 100%; }
.raya-ref-link code { flex: 1; min-width: 200px; padding: 8px 10px; background: #f6f7f7; border-radius: 8px; overflow-wrap: anywhere; font-size: .88em; }
.raya-ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.raya-ref-stats .raya-ac-card span { display: block; color: #646970; font-size: .9em; }
.raya-ref-stats .raya-ac-card strong { display: block; font-size: 1.7em; margin-top: 4px; }
.raya-ref-stats .raya-ac-card small { display: block; color: #646970; margin-top: 4px; }
.raya-ref-wd { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.raya-ref-wd > div { flex: 1 1 320px; }
.raya-ref-wd .raya-ac-msg { flex-basis: 100%; margin: 0; }
.raya-ref-h { margin: 22px 0 10px; }
.raya-ref-tablewrap { overflow-x: auto; padding: 8px 14px; }
.raya-ref-table { width: 100%; border-collapse: collapse; font-size: .93em; }
.raya-ref-table th { text-align: left; color: #50575e; font-weight: 600; border-bottom: 1px solid #e3e6ea; padding: 8px 10px 8px 0; white-space: nowrap; }
.raya-ref-table td { border-bottom: 1px solid #f0f0f1; padding: 9px 10px 9px 0; vertical-align: top; }
.raya-ref-table tr.is-off td { color: #8c8f94; }
.raya-ref-table small { color: #8c8f94; }
.raya-ref-w9wrap { margin-top: 10px; }
.raya-ref-w9wrap > summary { list-style: none; cursor: pointer; }
.raya-ref-w9wrap > summary::-webkit-details-marker { display: none; }
.raya-ref-w9wrap[open] > summary { margin-bottom: 14px; }
.raya-ref-settings { grid-template-columns: 1fr; margin-top: 16px; }
.raya-ref-applywrap > summary { list-style: none; cursor: pointer; display: inline-block; }
.raya-ref-applywrap > summary::-webkit-details-marker { display: none; }
.raya-ref-applywrap[open] > summary { display: none; }
.raya-ref-promo p { margin: 0 0 12px; }
@media (max-width: 640px) { .raya-ref-2, .raya-ref-3 { grid-template-columns: 1fr; } .raya-ref-idcard { grid-template-columns: 1fr; } }
