﻿.popup-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 500px;
    max-width: 100%;
    /*margin: 0.4rem auto;*/
    /*padding: 1rem;*/
    box-sizing: border-box;
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    gap: 1rem;
}

/* Wariant dla popupów z listą (SelectAndSave, MoreDatesSelector) */
.popup-box.list-mode {
    align-items: stretch;
    min-height: 85vh;
    max-height: 90vh;
    overflow: hidden;
}

    .popup-box.adjustable-list-mode {
        /*align-items: stretch;*/
        /*min-height: 85vh;*/
        max-height: 90vh;
        overflow: hidden;
    }

    .popup-box.aligned-left {
        text-align: left;
    }

.popup-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0.5rem 0.5rem 0rem 0.5rem;
}

.popup-message {
    font-size: var(--font-size-sm);
    color: #444;
    margin: 0;
    line-height: 1.4;
}

.popup-input-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    margin-bottom: 0.25rem;
    color: var(--color-text-secondary);
    text-align: left;
}

.popup-list {
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
}

.popup-wide-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* label + input wyrównane do lewej */
}

.popup-list-simple-text li {
    text-align: left;
    width: 100%;
    margin-bottom: 1.2rem;
}

.popup-label-input-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*  align-items: center; wycentruj cały blok */
    margin-inline: auto;
    padding: 0 0.3rem;
}

.popup-text-container {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    background: rgba(80, 140, 255, 0.08); /* delikatny błękit */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(80, 140, 255, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-sm);
    text-align: left;
}

.friendly-intro {
    margin: 0 0 1rem 0;
    line-height: 1.55;
}

.friendly-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .friendly-list li {
        margin-bottom: 0.8rem;
        padding-left: 1.8rem;
        position: relative;
        line-height: 1.55;
    }

        .friendly-list li::before {
            /*content: "•";*/
            content: "👉";
            position: absolute;
            left: 0;
            top: 0;
            color: #2a5bd7;
            font-weight: bold;
        }


/* --- SECTION TITLE --- */
.purchase-section-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 1rem 0 0.6rem 0;
    text-align: left;
}

/* --- CARD --- */
.purchase-card {
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
    line-height: 1.5;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
}

/* --- TOTAL ROW --- */
.purchase-total-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-md);
    margin-bottom: 0.3rem;
}

    .purchase-total-row .purchase-total {
        font-weight: 600;
        color: #2a5bd7;
    }

.purchase-both-prices {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
}

.purchase-old-price {
    text-decoration: line-through;
    opacity: 0.5;
}

.purchase-new-price {
    color: var(--color-primary);
}

/* --- PAYMENT ROW --- */
.purchase-payment-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: #555;
}

/* --- INSTRUCTOR NAME --- */
.purchase-instructor-name {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #333;
    text-align: left;
}

/* --- ITEM LIST --- */
.purchase-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .purchase-item-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

        .purchase-item-list li:last-child {
            border-bottom: none;
        }

.purchase-item-title-row {
    display: flex;
    flex-direction: column;
}

.purchase-item-title {
    font-size: var(--font-size-sm);
    text-align: left;
}

.purchase-item-subtitle {
    font-size: var(--font-size-xxs);
    color: var(--color-status-darkgray);
    text-align: left;
}

.purchase-item-price {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #2a5bd7;
}


/*.purchase-text-container {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    background: rgba(80, 140, 255, 0.08);
    delikatny błękit backdrop-filter: blur(6px);
    border: 1px solid rgba(80, 140, 255, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: var(--font-size-sm);
    text-align: left;
}*/
