/* resources/popup.css
   Reusable popup styles for Shopitr (overlay + dialog)
   Updated: 'İptal' (secondary) buton kaldırıldı.
*/

.app-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 18, 0.45);
    display: none;
    /* shown by JS */
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
    -webkit-tap-highlight-color: transparent;
}

.app-popup-backdrop.app-popup-show {
    display: flex;
    animation: appPopupFadeIn 220ms ease both;
}

@keyframes appPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-popup-dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(8, 12, 20, 0.35);
    padding: 18px;
    position: relative;
    text-align: center;
    color: #111;
    transform-origin: center;
    -webkit-font-smoothing: antialiased;
}

.app-popup-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #666;
}

.app-popup-close:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.03);
}

.app-popup-title {
    font-weight: 700;
    font-size: 18px;
    margin: 6px 0 8px 0;
    color: #111;
}

.app-popup-message {
    font-size: 14px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Action area (single primary button) */
.app-popup-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* Primary button */
.app-popup-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    min-width: 160px;
}

.app-popup-primary {
    background: linear-gradient(90deg, #ff8a33, #ff6600);
    color: #fff;
    box-shadow: 0 8px 26px rgba(255, 102, 0, 0.18);
}

/* small registration hint (kept) */
.app-popup-register {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.app-popup-register a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
    margin-left: 6px;
}

.app-popup-register a:hover {
    text-decoration: underline;
}

/* responsive tweaks */
@media (max-width: 520px) {
    .app-popup-dialog {
        padding: 14px;
        border-radius: 10px;
        max-width: 92%;
    }

    .app-popup-btn {
        min-width: 120px;
        padding: 10px 12px;
    }
}