/* ── Petsone City Pricing — Frontend Styles ──────────────────────────────── */

/* Prevent scroll when modal is open */
body.popk-cp-modal-open { overflow: hidden; }

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.popk-cp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

/* ── Modal card ──────────────────────────────────────────────────────────── */
.popk-cp-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    animation: popk-cp-pop 0.25s ease;
}

@keyframes popk-cp-pop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.popk-cp-modal-header .popk-cp-paw {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.popk-cp-modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.popk-cp-modal-header p {
    font-size: 14px;
    color: #777;
    margin: 0 0 24px;
}

/* ── City grid ───────────────────────────────────────────────────────────── */
.popk-cp-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.popk-cp-city-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 2px solid #e8ede8;
    border-radius: 14px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    font-family: inherit;
}

.popk-cp-city-btn:hover {
    border-color: #66bb6a;
    background: #f1f8f1;
    transform: translateY(-2px);
}

.popk-cp-city-btn--active,
.popk-cp-city-btn--active:hover {
    border-color: #2e7d32;
    background: #e8f5e9;
    box-shadow: 0 0 0 1px #2e7d32;
}

.popk-cp-city-flag  { font-size: 28px; line-height: 1; }
.popk-cp-city-label { font-size: 13px; font-weight: 700; color: #2a2a2a; }

.popk-cp-modal-note {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

/* ── Header chip ─────────────────────────────────────────────────────────── */
#popk-cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 9px;
    border: 1.5px solid #c8dfc8;
    border-radius: 999px;
    background: #f1f8f1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

#popk-cp-chip:hover { background: #e4f0e4; border-color: #66bb6a; }

.popk-cp-chip-flag  { font-size: 16px; }
.popk-cp-chip-arrow { font-size: 10px; opacity: 0.6; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .popk-cp-modal { padding: 28px 18px 22px; }
    .popk-cp-city-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .popk-cp-city-btn  { padding: 12px 6px; }
    .popk-cp-city-flag { font-size: 22px; }
}
