/* === Codexo Popup Styling === */

/* Modal-Overlay wird von Event Tickets gerendert – wir stylen nur den Card-Container */
.codexo-modal {
    padding: 16px;
}

.codexo-modal__card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 860px;
    width: calc(100% - 32px);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.codexo-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    line-height: 34px;
    border-radius: 999px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #444;
    transition: background 0.2s ease;
}

.codexo-modal__close:hover {
    background: #f7f7f7;
}

.codexo-modal__header {
    padding: 28px 32px 8px;
    border-bottom: 1px solid #f1f1f1;
}

.codexo-modal__title {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 700;
    color: #111;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.codexo-modal__subtitle {
    margin: 0;
    color: #667085;
    font-size: 16px;
    font-weight: 600;
}

.codexo-modal__body {
    padding: 20px 32px 28px;
}

.codexo-modal__form .tribe-common-b1 {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.codexo-modal__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.codexo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.codexo-btn--primary {
    background: #b32323;
    /* Primärfarbe Rot anpassen */
    color: #fff;
}

.codexo-btn--primary:hover {
    filter: brightness(0.95);
}

.codexo-btn--ghost {
    background: #fff;
    color: #b32323;
    border-color: #e5e7eb;
}

.codexo-btn--ghost:hover {
    background: #fafafa;
}

/* === Responsive Anpassungen === */
@media (max-width: 600px) {
    .codexo-modal__card {
        border-radius: 14px;
    }

    .codexo-modal__header,
    .codexo-modal__body {
        padding: 16px;
    }

    .codexo-modal__title {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .codexo-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .codexo-btn {
        width: 100%;
        text-align: center;
    }
}