/**
 * @author       Zbigniew Stanejko <info@prestashop.cc>
 * @copyright    © 2012-2026 Zbigniew Stanejko, PrestaPremium. All rights reserved.
 * @license      This program is not free software. You may not sell or distribute it.
 * @link         https://prestapremium.com
 * ----------------------------------------------
 * @file         ppmodal.css
 * @updated      2026-03-17
 * @description  Styles for local modal confirm component.
 * version       1.0.0
 * ----------------------------------------------
 */

.ppmodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ppmodal-overlay.show {
    display: block;
    opacity: 1;
}

.ppmodal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-60px);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 400px;
    max-width: 500px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #ddd;
    pointer-events: none;
}

body.ppmodal-open {
    overflow: hidden;
}

.ppmodal.show {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
}

.ppmodal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.ppmodal-btn-close {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    padding: 0;
    line-height: .8;
}

.ppmodal-btn {
    padding: 8px 16px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 88px;
}


.ppmodal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.ppmodal-body {
    padding: 25px;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.ppmodal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 6px 6px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;  
    align-items: center;
}
@media (max-width: 767.98px) {
  .ppmodal-footer {
    justify-content: center;
  }    
}/* end 767.98px */

.ppmodal-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.ppmodal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.ppmodal-btn.primary {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.ppmodal-btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.ppmodal-btn.danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.ppmodal-btn.danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.ppmodal-btn.secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.ppmodal-btn.secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

/* Responsive */
@media (max-width: 480px) {
    .ppmodal {
        min-width: 95%;
        max-width: 95%;
    }

    .ppmodal-header,
    .ppmodal-body,
    .ppmodal-footer {
        padding: 15px 20px;
    }

    .ppmodal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .ppmodal-btn {
        width: 100%;
    }
}

