/* Agent Referral QR layout hotfix
   Purpose: shorten the referral-link column and keep the QR card fully visible. */

.agent-referral-tools {
    display: grid;
    grid-template-columns: minmax(0, 68%) 220px;
    gap: 20px;
    align-items: start;
    justify-content: start;
    margin-top: 16px;
}

.agent-referral-link-wrap {
    min-width: 0;
    max-width: 760px;
}

.agent-referral-link-wrap .agent-referral-url {
    width: 100%;
    margin-top: 0;
}

.agent-qr-card {
    width: 220px;
    box-sizing: border-box;
    padding: 14px;
    justify-self: start;
}

.agent-qr-svg {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.agent-qr-svg svg {
    display: block;
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
}

@media (max-width: 820px) {
    .agent-referral-tools {
        grid-template-columns: 1fr;
    }

    .agent-referral-link-wrap {
        max-width: 100%;
    }

    .agent-qr-card {
        width: 220px;
        justify-self: start;
    }
}
