/* ===================================
   WP Presell Cookie - Frontend Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #f0f0f0;
}

/* ===================================
   Presell Container
   =================================== */

.presell-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* ===================================
   Background Image
   =================================== */

.presell-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.presell-background img,
.presell-background source {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ===================================
   Modal Backdrop
   =================================== */

.presell-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===================================
   Cookie Modal
   =================================== */

.presell-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    max-width: 500px;
    width: calc(100% - 40px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.presell-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ===================================
   Modal Header
   =================================== */

.presell-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.presell-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.presell-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.presell-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ===================================
   Modal Body
   =================================== */

.presell-modal-body {
    padding: 0 20px 20px 20px;
}

.presell-modal-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Modal Footer
   =================================== */

.presell-modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

/* ===================================
   Buttons
   =================================== */

.presell-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presell-btn-reject {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
}

.presell-btn-reject:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.presell-btn-reject:active {
    transform: scale(0.98);
}

.presell-btn-accept {
    background: #2563eb;
    color: white;
}

.presell-btn-accept:hover {
    background: #1d4ed8;
}

.presell-btn-accept:active {
    transform: scale(0.98);
}

/* ===================================
   Mobile Styles
   =================================== */

@media (max-width: 480px) {
    .presell-modal {
        width: calc(100% - 20px);
    }

    .presell-modal-content {
        border-radius: 8px;
    }

    .presell-modal-header {
        padding: 16px;
    }

    .presell-modal-header h3 {
        font-size: 16px;
    }

    .presell-modal-body {
        padding: 0 16px 16px 16px;
    }

    .presell-modal-body p {
        font-size: 13px;
    }

    .presell-modal-footer {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }

    .presell-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .presell-modal-close {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
}

/* ===================================
   Tablet Styles
   =================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .presell-modal {
        max-width: 450px;
    }

    .presell-modal-header h3 {
        font-size: 17px;
    }

    .presell-modal-body p {
        font-size: 13px;
    }
}

/* ===================================
   Accessibility
   =================================== */

.presell-btn:focus,
.presell-modal-close:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}



/* ===================================
   Print Styles
   =================================== */

@media print {
    .presell-modal {
        display: none;
    }
}