.bpopup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overscroll-behavior: contain;
}

body.bpopup-open {
    overflow: hidden;
}

.bpopup-card {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 580px;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
}

.bpopup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    z-index: 1;
}

.bpopup-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.bpopup-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #555;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    transition: color 0.2s;
}

.bpopup-close:hover {
    color: #000;
}

.bpopup-info {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bpopup-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bpopup-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.bpopup-info-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.bpopup-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #888;
}

/* ========================================================================
   PRICE SECTION
   ======================================================================== */

.bpopup-price {
    margin: 0 1.5rem 1rem;
    padding: 1rem;
    background: #faf9f7;
    border: 1px solid #eee;
    border-radius: 8px;
}

.bpopup-price-grid {
    display: grid;
    gap: 0.35rem;
}

.bpopup-price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 1rem;
}

.bpopup-price-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a4a4a;
}

.bpopup-price-value {
    text-align: right;
    font-size: 0.95rem;
}

.bpopup-price-value-original {
    color: #9a9a9a;
    text-decoration: line-through;
}

.bpopup-price-value-discount {
    color: #f19a00;
    font-weight: 700;
}

.bpopup-price-value-final {
    color: #111;
    font-weight: 800;
}

.bpopup-price-value-vat {
    color: #8b8b8b;
}

.bpopup-vat-note {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #a1a1a1;
    line-height: 1.35;
}

.bpopup-module-selection {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* ========================================================================
   MODULE SELECTION (Packet booking only)
   ======================================================================== */

.bpopup-module-selection-hint {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    color: #666;
}

.bpopup-module-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bpopup-module-row {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.bpopup-module-label {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.bpopup-module-select {
    width: 100%;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 0.52rem 0.75rem;
    font-size: 0.84rem;
    color: #222;
    background: #fff;
}

.bpopup-module-selection-error {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #a32727;
}

/* ========================================================================
   FEATURES & BENEFITS
   ======================================================================== */

.bpopup-features {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bpopup-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.bpopup-feature svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========================================================================
   CANCELLATION & INFORMATION SECTIONS
   ======================================================================== */

.bpopup-cancellation {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.bpopup-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.bpopup-cancellation ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
}

.bpopup-cancellation ul li {
    margin-bottom: 0.25rem;
}

.bpopup-cancellation a {
    color: var(--category-secondary, #035458);
    text-decoration: underline;
}

/* ========================================================================
   PAYMENT METHODS
   ======================================================================== */

.bpopup-payment {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.bpopup-payment-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 0 0.75rem;
}

.bpopup-pay-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

.bpopup-rate-note,
.bpopup-group-note {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
}

.bpopup-group-note {
    margin-top: 0.3rem;
}

.bpopup-group-note a {
    color: var(--category-secondary, #035458);
    text-decoration: underline;
}

/* ========================================================================
   FOOTER & CTA BUTTON
   ======================================================================== */

.bpopup-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 18px 18px;
}

.bpopup-cta {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000 !important;
    background-color: #FBB000;
    border: none;
    border-radius: 12px !important;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s, transform 0.15s;
}

.bpopup-cta:hover:not(:disabled) {
    background-color: #e0a000;
    transform: translateY(-1px);
}

.bpopup-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bpopup-cta.is-loading {
    opacity: 0.75;
    cursor: wait;
}

/* Add same arrow as price overview to the popup CTA */
.bpopup-footer .bpopup-cta.campus-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bpopup-footer .bpopup-cta.campus-button::after {
    content: "\00BB";
    font-size: 1.2em;
    margin-left: 0.4em;
    line-height: 1;
    opacity: 1;
}