/* Stylizacja ogólna dla modala */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}


/* ✅ ZMIANY STYLU MODALA ZAKUPU */

.purchase-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.purchase-modal-content {
    /* ✅ ZMIANA 3: Tło takie samo jak na stronie głównej */
    background-color: #0f172a; 
    margin: auto;
    padding: 30px;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    color: #ecf0f1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.purchase-modal-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #f1c40f;
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}

.purchase-modal .form-group {
    margin-bottom: 15px;
}

.purchase-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #bdc3c7;
}

.purchase-modal .form-group input {
    width: 100%;
    padding: 12px;
    background-color: #34495e;
    border: 1px solid #7f8c8d;
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.purchase-modal .form-group input:focus {
    outline: none;
    border-color: #f1c40f;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
}

.purchase-modal .checkbox-container-purchase {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
}

.purchase-modal .checkbox-container-purchase input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.purchase-modal .checkbox-container-purchase a {
    color: #f1c40f;
    text-decoration: underline;
}

.purchase-modal-buttons {
    margin-top: 25px;
    display: flex;
    /* ✅ ZMIANA 2: Przyciski jeden pod drugim */
    flex-direction: column; 
    gap: 15px;
}

.purchase-modal-buttons .button {
    width: 100%; /* Przyciski zajmują całą szerokość */
    box-sizing: border-box;
}

/* ✅ ZMIANA 1: Nowy styl dla zielonego przycisku płatności */
.button.confirm-button {
    background: linear-gradient(180deg, #5cb85c, #4cae4c);
    border-color: #4cae4c;
    color: white;
    font-family: 'Luckiest Guy', cursive;
    text-transform: uppercase;
    font-size: 20px;
    padding: 15px;
    border-radius: 50px;
    border-width: 3px;
    border-style: solid;
    border-bottom-width: 8px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
}

.button.confirm-button:active {
    transform: translateY(5px);
    border-bottom-width: 3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}