/* Reseller Locations – front-end styles */

.rl-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    font-family: inherit;
}

.rl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rl-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.rl-item:hover {
    border-color: #c7d2e0;
    box-shadow: 0 3px 8px rgba(0,0,0,.10);
}

.rl-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rl-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rl-address {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.4;
}

.rl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 16px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
    white-space: nowrap;
}

.rl-button:hover,
.rl-button:focus {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.rl-button:active {
    transform: translateY(0);
}

.rl-button svg {
    flex-shrink: 0;
}

.rl-empty {
    color: #6b7280;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1100px) {
    .rl-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .rl-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rl-list {
        grid-template-columns: 1fr;
    }
    .rl-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .rl-button {
        width: 100%;
        justify-content: center;
    }
    .rl-name {
        white-space: normal;
    }
}
