/* ===================================
   PHOTOEZ PROOFING UI
=================================== */

/* Fixed Top Bar */

#photoez-selection-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 18px 30px;
    z-index: 9998;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

#photoez-selection-bar.exceeded {
    background: #3a0000;
}

#photoez-selection-bar span {
    font-weight: 600;
    margin: 0 5px;
    color: #4caf50;
}

.photoez-gallery-wrapper {
    margin-top: 80px;
}

/* ===================================
   SELECTION TOGGLE BUTTON
=================================== */

.photoez-select-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.7);
    z-index: 5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photoez-select-toggle:hover {
    background: rgba(0,0,0,0.8);
    border-color: #fff;
}

.photoez-item.selected .photoez-select-toggle {
    background: #4caf50;
    border-color: #4caf50;
}

.photoez-item.selected .photoez-select-toggle::after {
    content: "✔";
    color: #fff;
    font-size: 18px;
}

/* ===================================
   CHECKMARK INSIDE SELECTION CIRCLE
   Works with .photoez-select-check
   added by class-photoez-shortcode.php
=================================== */

.photoez-select-check {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
    pointer-events: none;
}

.photoez-item.selected .photoez-select-check {
    opacity: 1;
    transform: scale(1);
}

/* Remove any full-overlay pseudo elements */
.photoez-item::before,
.photoez-item::after {
    display: none;
}

/* ===================================
   MODAL
=================================== */

#photoez-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.photoez-modal-content {
    background: #1a1a1a;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.photoez-modal-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
}

.photoez-modal-content p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
}

#photoez-modal-checkout {
    margin-top: 25px;
    padding: 14px 30px;
    border: none;
    background: #4caf50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

#photoez-modal-checkout:hover {
    background: #45a049;
}

#photoez-modal-close {
    margin-top: 15px;
    padding: 12px 25px;
    border: 1px solid #555;
    background: transparent;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#photoez-modal-close:hover {
    border-color: #fff;
    color: #fff;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 600px) {

    #photoez-selection-bar {
        font-size: 15px;
        padding: 14px 20px;
    }

    .photoez-modal-content {
        padding: 30px 20px;
    }
}