/* Hapomeo feedback: local SweetAlert2, shared site typography and orange palette. */
.swal2-container.hapomeo-swal-container {
    z-index: 100000;
    padding: 20px;
    font-family: var(--hapomeo-font-family, 'PeydaWeb', Tahoma, sans-serif);
}
.swal2-popup.hapomeo-swal {
    direction: rtl;
    width: min(100%, 470px);
    padding: 28px 24px 24px;
    border: 1px solid #ffedd5;
    border-radius: 28px;
    background: #fff;
    color: #1e293b;
    font-family: var(--hapomeo-font-family, 'PeydaWeb', Tahoma, sans-serif);
    box-shadow: 0 24px 72px rgba(30, 41, 59, .18), 0 4px 18px rgba(249, 115, 22, .06);
}
.hapomeo-swal .hapomeo-swal-title {
    padding: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.65;
    color: #1e293b;
}
.hapomeo-swal .hapomeo-swal-content {
    margin: 12px 0 0;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.95;
    color: #64748b;
    overflow-wrap: anywhere;
}
.hapomeo-swal .swal2-icon {
    margin: 4px auto 20px;
}
.hapomeo-swal .swal2-actions {
    width: 100%;
    margin: 24px 0 0;
    gap: 10px;
    flex-wrap: nowrap;
}
.hapomeo-swal .hapomeo-swal-confirm,
.hapomeo-swal .hapomeo-swal-cancel {
    flex: 1;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.65;
    cursor: pointer;
    transition: background-color .18s, transform .18s, box-shadow .18s;
}
.hapomeo-swal .hapomeo-swal-confirm { background: #f97316; color: #fff; box-shadow: 0 3px 0 #c2410c; }
.hapomeo-swal .hapomeo-swal-confirm:hover { background: #ea580c; }
.hapomeo-swal .hapomeo-swal-cancel { background: #f8fafc; border-color: #e2e8f0; color: #334155; }
.hapomeo-swal .hapomeo-swal-cancel:hover { background: #f1f5f9; }
.hapomeo-swal .hapomeo-swal-confirm:active,
.hapomeo-swal .hapomeo-swal-cancel:active { transform: translateY(2px); box-shadow: none; }
.hapomeo-swal .hapomeo-swal-close {
    width: 44px;
    height: 44px;
    margin: 10px;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
    font-family: Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}
.hapomeo-swal .hapomeo-swal-close:hover { background: #fff7ed; color: #c2410c; }
.hapomeo-swal button:focus-visible { outline: 3px solid #fdba74; outline-offset: 3px; box-shadow: none; }
.hapomeo-swal .swal2-success { color: #059669; border-color: #a7f3d0; }
.hapomeo-swal .swal2-success [class^="swal2-success-line"] { background-color: #059669; }
.hapomeo-swal .swal2-success-ring { border-color: #d1fae5; }
.hapomeo-swal .hapomeo-swal-progress { background: #f97316; }
.swal2-container.hapomeo-swal-container.swal2-top-end { padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
body.admin-bar .swal2-container.hapomeo-swal-container.swal2-top-end { padding-top: 52px; }
.swal2-popup.hapomeo-swal-toast {
    width: 390px;
    max-width: calc(100vw - 32px);
    padding: 18px 16px;
    border-radius: 20px;
    border-inline-start: 4px solid #f97316;
    box-shadow: 0 12px 36px rgba(30, 41, 59, .14);
    text-align: start;
}
.hapomeo-swal-toast .hapomeo-swal-title { margin: 0 10px; font-size: 16px; line-height: 1.75; }
.hapomeo-swal-toast .hapomeo-swal-content { margin: 4px 10px 0; font-size: 13px; line-height: 1.8; }
.hapomeo-swal-toast .swal2-icon { margin: 3px 0; }
.hapomeo-swal-toast .hapomeo-swal-close { margin: 0 6px 0 0; width: 44px; height: 44px; font-size: 24px; background: transparent; }
.hapomeo-feedback-fallback {
    position: fixed;
    z-index: 100000;
    top: 60px;
    inset-inline: 16px;
    max-width: 430px;
    margin-inline-start: auto;
    direction: rtl;
}
.hapomeo-feedback-fallback-item { margin-bottom: 12px; padding: 18px; background: #fff; border: 2px solid #fed7aa; border-radius: 18px; box-shadow: 0 12px 36px #0f172a22; font: 15px/1.9 var(--hapomeo-font-family, Tahoma); color: #334155; }
.hapomeo-feedback-fallback-item a,
.hapomeo-feedback-fallback-item button { display: inline-block; padding: 8px 12px; margin: 10px 0 0 8px; border-radius: 10px; background: #fff7ed; color: #c2410c; font-weight: 700; }
@media (max-width: 767px) {
    .swal2-container.hapomeo-swal-container { padding: 16px; }
    .swal2-popup.hapomeo-swal { padding: 24px 18px 20px; border-radius: 24px; }
    .hapomeo-swal .hapomeo-swal-title { font-size: 21px; }
    .hapomeo-swal .hapomeo-swal-content { font-size: 14px; }
    .hapomeo-swal .swal2-actions { gap: 8px; }
    .hapomeo-swal .hapomeo-swal-confirm,
    .hapomeo-swal .hapomeo-swal-cancel { padding: 11px 8px; font-size: 14px; }
    .swal2-container.hapomeo-swal-container.swal2-top-end { padding: max(12px, env(safe-area-inset-top)) 12px; }
    body.admin-bar .swal2-container.hapomeo-swal-container.swal2-top-end { padding-top: 58px; }
    .swal2-popup.hapomeo-swal-toast { padding: 16px 12px; max-width: calc(100vw - 24px); }
    .hapomeo-swal-toast .hapomeo-swal-title { font-size: 15px; }
    .hapomeo-swal-toast .hapomeo-swal-content { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .hapomeo-swal *, .hapomeo-swal *::before, .hapomeo-swal *::after { animation-duration: .01ms !important; transition: none !important; }
}
