﻿
.popup__content {
    padding: 30px; /* kies 25–35px */
    overflow: auto;
    box-sizing: border-box;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 9999;
}

.popup {
    /* Popups share the app background; inner surfaces should be white cards. */
    background: var(--color-secondary);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: min(92vw, 720px);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup--sm {
    width: min(92vw, 520px);
}

.popup--md {
    width: min(92vw, 720px);
}

.popup--lg {
    width: min(92vw, 920px);
}

.popup--xl {
    width: min(92vw, 1650px);
}

.popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .9rem; /* 👈 veel compacter */
    min-height: 44px; /* 👈 consistente hoogte */
    background: var(--color-primary);
}

.popup__title {
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

/* Kleine defaults voor buttons als je ze nog niet hebt */
.popup-btn-primary, .popup-btn-secondary {
    border-radius: 10px;
    padding: .55rem .8rem;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    background: #fff;
}

.popup-btn-primary {
    border-color: var(--btn-primary);
    background: var(--btn-primary);
    color: var(--btn-primary-text);
}

.popup-btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
}

.popup-btn-primary:active {
    background: var(--btn-primary-active);
    border-color: var(--btn-primary-active);
}

.popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* 👈 voorkomt offset */
    background: none;
    border: none;
}

.popup-btn-secondary:hover {
    background: #f7f7f7;
}

.popup__close svg {
    cursor: pointer;
    width: 25px;
    height: 25px;
    stroke-width: 2;
    display: block;
    color: var(--color-white);
}

.invite_popup{
    gap: 10px;
}

.rk-confirm__msg {
    line-height: 1.4;
}

.rk-confirm__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn-primary.is-danger {
    background: #dc2626;
    border-color: #dc2626;
}

    .btn-primary.is-danger:hover {
        filter: brightness(0.95);
    }
