/* ===== Shared styles for scan connection result pages ===== */
/* Used by: ScanConnected, ScanAlreadyContact, ScanCommunity    */

.scr-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: #F6F8F7;
    padding: 40px 24px 40px;
    box-sizing: border-box;
    gap: 0;
}

/* ---- Avatar (circular person photo) ---- */
.scr-avatar-wrap {
    margin-bottom: 28px;
}
.scr-avatar {
    width: clamp(120px, 35vw, 160px);
    height: clamp(120px, 35vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ---- Badge (merchant logo, no wreath) ---- */
.scr-badge-wrap {
    margin-bottom: 28px;
}
.scr-badge-img {
    width: clamp(120px, 35vw, 160px);
    height: clamp(120px, 35vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ---- Title ---- */
.scr-title {
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-weight: 700;
    font-size: clamp(24px, 5.5vw, 32px);
    color: var(--text, #000);
    text-align: center;
    line-height: 1.25;
    margin: 0 0 20px;
}

/* ---- Subtitle ---- */
.scr-subtitle {
    font-size: clamp(17px, 3.5vw, 20px);
    font-weight: 400;
    color: var(--text, #000);
    text-align: center;
    line-height: 1.4;
    margin: 0 0 40px;
}

/* ---- Buttons ---- */
.scr-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 560px;
}

.scr-btn {
    width: 100%;
    padding: 18px 16px;
    border-radius: 55px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    text-align: center;
}

.scr-btn-close {
    background: linear-gradient(135deg, #5B9E84, #2D765A);
    color: #fff;
}
.scr-btn-close:hover {
    background: linear-gradient(135deg, #4A8A68, #236048);
}
.scr-btn-close:active {
    opacity: 0.85;
}

.scr-btn-home {
    background: #3d3d3d;
    color: #fff;
}
.scr-btn-home:hover {
    background: #2e2e2e;
}
.scr-btn-home:active {
    opacity: 0.85;
}

/* ---- Responsive ---- */
@media (max-width: 374px) {
    .scr-page { padding: 28px 16px 28px; }
    .scr-btn { padding: 14px 12px; }
}

@media (min-width: 768px) {
    .scr-actions { max-width: 600px; }
}
