/* ================= POPUP FORM ================= */
#popup-bg {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#popup-bg .popup-content {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 90%;
    position: relative;
}

#popup-bg h2 {
    margin: 0;
}

#popup-bg form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

#popup-bg .product {
    padding: 12px;
}

#popup-bg .product-info {
    width: 100%;
    text-align: left;
}

#popup-bg .product-info .name {
    display: block;
}

#popup-bg input[type="text"],
#popup-bg input[type="number"] {
    margin-top: 6px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
}

#popup-bg input[type="file"] {
    margin-top: 6px;
    width: 100%;
}

#popup-bg .pay-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 18px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79,124,255,0.3);
    transition: background 0.2s;
}


#popup-bg .product:last-child {
    text-align: center;
}

#popup-bg label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

#popup-bg input,
#popup-bg select {
    margin-top: 6px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    background: white;
}

#popup-bg select {
    appearance: none;
}

#popup-bg select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: white;

    /* pijltje */
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;

    padding-right: 40px; /* ruimte voor pijltje */
    cursor: pointer;
}

/* ❌ Popup close button */
#popup-bg .popup-close {
    position: absolute;      
    top: 12px;               
    right: 15px;            
    font-size: 26px;         
    font-weight: bold;
    color: #444;             
    text-decoration: none;
    line-height: 1;
    padding: 5px 10px;       
    cursor: pointer;
    z-index: 10;           
}

