/* ============================================================
   Paint2Fix Market — Frontend CSS
   Admin > Market > Settings > CSS tab'ından düzenlenebilir.
   ============================================================ */


/* === Market Switch Warning Modal ===
   Sepette ürün varken market değiştirmek istendiğinde çıkan uyarı.
   HTML: #p2f-market-warn
   ============================================================ */

.p2f-mw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998;
    opacity: 0;
    transition: opacity .2s;
}

.p2f-mw-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.9);
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px 22px;
    z-index: 99999;
    text-align: center;
    max-width: 380px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    opacity: 0;
    transition: opacity .2s, transform .2s;
}

.p2f-mw-show .p2f-mw-overlay { opacity: 1; }
.p2f-mw-show .p2f-mw-box { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.p2f-mw-icon { margin: 0 0 10px; }
.p2f-mw-title { font-size: 20px; font-weight: 600; color: #1d2327; margin: 0 0 8px; }
.p2f-mw-msg { font-size: 15px; color: #555; margin: 0 0 20px; line-height: 1.5; }

.p2f-mw-actions { display: flex; gap: 10px; justify-content: center; }

.p2f-mw-btn {
    flex: 1;
    padding: 8px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    text-align: center;
}

.p2f-mw-btn-primary { background: #333; color: #fff; border: 1px solid #333; }
.p2f-mw-btn-primary:hover { background: #555; border-color: #555; }

.p2f-mw-btn-secondary { background: #f5f5f5; color: #333; border: 1px solid #ccc; }
.p2f-mw-btn-secondary:hover { background: #e8e8e8; border-color: #bbb; }


/* === Geolocation Suggestion Popup ===
   CF-IPCountry header'ına göre yerel market önerisi.
   HTML: #p2f-geo-popup
   ============================================================ */

.p2f-geo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998;
    opacity: 0;
    transition: opacity .2s;
}

.p2f-geo-btn {
    flex: 1;
    padding: 8px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.p2f-geo-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.9);
    z-index: 99999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    padding: 24px 28px;
    text-align: left;
    max-width: 480px;
    width: calc(100% - 32px);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.p2f-geo-show .p2f-geo-overlay { opacity: 1; }
.p2f-geo-show .p2f-geo-box { opacity: 1; transform: translate(-50%,-50%) scale(1); }

.p2f-geo-msg {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 10px;
    margin-bottom: 16px;
}

.p2f-geo-flag { font-size: 32px; flex-shrink: 0; }
.p2f-geo-text { font-size: 17px; font-weight: 500; color: #333; line-height: 1.4; }


.p2f-geo-actions { display: flex; gap: 7px; margin-top: 3px; }

.p2f-geo-btn-yes { background: #333; color: #fff; border: 1px solid #333; }
.p2f-geo-btn-yes:hover { background: #555; border-color: #555; }

.p2f-geo-btn-no { background: #f5f5f5; color: #333; border: 1px solid #ccc; }
.p2f-geo-btn-no:hover { background: #e8e8e8; border-color: #bbb; }
