.eps-portal{width:100%;max-width:none;margin-right:0;margin-left:0}
.eps-prereg{width:100%;max-width:none}
.eps-portal,.eps-prereg{min-width:0;overflow-wrap:anywhere}
.eps-portal img,.eps-prereg img,.eps-portal svg,.eps-prereg svg{max-width:100%}
@media(max-width:640px){.eps-portal,.eps-prereg{overflow-x:clip}.eps-request-card,.eps-medication-card,.eps-wizard,.eps-prereg-card{max-width:100%}}

/* Fifth portal destination: treatment calendar. Kept here as an additive override. */
.eps-portal .eps-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:640px){.eps-portal .eps-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.eps-portal .eps-tabs button{font-size:8px}}
.eps-prereg-form select{width:100%;min-height:49px;padding:11px 14px;border:1px solid #cfdfeb;border-radius:14px;outline:0;background:#fbfdff;color:var(--p-dark);font:700 14px/1.8 inherit}
.eps-prereg-form select:focus{border-color:#579bd8;background:#fff;box-shadow:0 0 0 4px rgba(52,127,200,.11)}
.eps-prereg-form label small{display:block;margin-top:5px;color:#718697;font-size:10px;line-height:1.8}

/* Compact service selection and normal-flow form actions on phones. */
@media (max-width: 640px) {
    .eps-portal [data-eps-step="1"] .eps-step__hint {
        display: none;
    }
    .eps-portal .eps-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 16px;
    }
    .eps-portal .eps-service-card__body {
        min-height: 52px;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 12px;
        background: #fff;
        box-shadow: none;
    }
    .eps-portal .eps-service-card__body > i,
    .eps-portal .eps-service-card__body > small,
    .eps-portal .eps-service-card__body > em {
        display: none;
    }
    .eps-portal .eps-service-card__body > strong {
        font-size: 15px;
        line-height: 1.8;
    }
    .eps-portal .eps-service-card input:checked + .eps-service-card__body {
        transform: none;
        background: #eef7ff;
        box-shadow: inset 0 0 0 1px #63a7e4;
    }
    .eps-portal .eps-actions {
        position: static;
        inset: auto;
        z-index: auto;
        margin-top: 20px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
}
