/* =========================================================
   E-SwissMar · SweetAlert2 theme
   Aligns toasts / modals with the Swiss / European design
   ========================================================= */

.swiss-swal-popup.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    background: #ffffff;
    color: #1c1b1b;
    border: 1px solid #eae7e7;
    border-radius: 8px !important;
    box-shadow: 0 16px 48px rgba(28, 27, 27, 0.12);
    padding: 2rem 1.75rem 1.75rem !important;
    width: 26rem;
    max-width: calc(100vw - 2rem);
    position: relative;
    overflow: hidden;
}

/* Brand accent stripe */
.swiss-swal-popup.swal2-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #b9172f;
}

.swiss-swal-popup .swal2-header {
    padding: 0;
    margin: 0 0 0.25rem;
}

.swiss-swal-title.swal2-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #1c1b1b !important;
    line-height: 1.35;
    padding: 0.5rem 0 0 !important;
    margin: 0 !important;
}

.swiss-swal-html.swal2-html-container {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 400;
    color: #5b4040 !important;
    line-height: 1.6;
    margin: 0.5rem 0 0 !important;
    padding: 0 !important;
}

.swiss-swal-popup .swal2-content {
    padding: 0;
}

/* ---- Icons ---- */
.swiss-swal-popup .swal2-icon {
    margin: 0.25rem auto 0.75rem !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-width: 2px !important;
}

.swiss-swal-popup .swal2-icon.swal2-success {
    border-color: #729a32 !important;
    color: #729a32;
}

.swiss-swal-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(114, 154, 50, 0.25) !important;
}

.swiss-swal-popup .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #729a32 !important;
}

.swiss-swal-popup .swal2-icon.swal2-warning {
    border-color: #b9172f !important;
    color: #b9172f !important;
}

.swiss-swal-popup .swal2-icon.swal2-warning .swal2-icon-content {
    color: #b9172f !important;
    font-size: 2.25rem !important;
}

.swiss-swal-popup .swal2-icon.swal2-error {
    border-color: #ba1a1a !important;
    color: #ba1a1a;
}

.swiss-swal-popup .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ba1a1a !important;
}

.swiss-swal-popup .swal2-icon.swal2-info {
    border-color: #0058bc !important;
    color: #0058bc !important;
}

.swiss-swal-popup .swal2-icon.swal2-info .swal2-icon-content {
    color: #0058bc !important;
}

.swiss-swal-popup .swal2-icon.swal2-question {
    border-color: #0058bc !important;
    color: #0058bc !important;
}

.swiss-swal-popup .swal2-icon.swal2-question .swal2-icon-content {
    color: #0058bc !important;
}

/* ---- Actions / buttons (match .btn-euro) ---- */
.swiss-swal-actions.swal2-actions {
    margin: 1.25rem 0 0 !important;
    gap: 0.75rem;
}

.swiss-swal-confirm.swal2-confirm,
.swiss-swal-cancel.swal2-cancel,
.swiss-swal-deny.swal2-deny {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px !important;
    padding: 0.7rem 1.5rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
}

.swiss-swal-confirm.swal2-confirm {
    background-color: #b9172f !important;
    color: #ffffff !important;
}

.swiss-swal-confirm.swal2-confirm:hover,
.swiss-swal-confirm.swal2-confirm:focus {
    background-color: #9c1327 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 23, 47, 0.25) !important;
}

.swiss-swal-cancel.swal2-cancel {
    background-color: transparent !important;
    color: #5b4040 !important;
    border: 1px solid #e3bebd !important;
}

.swiss-swal-cancel.swal2-cancel:hover,
.swiss-swal-cancel.swal2-cancel:focus {
    background-color: #fcf9f8 !important;
    color: #1c1b1b !important;
    border-color: #8f6f6f !important;
}

.swiss-swal-deny.swal2-deny {
    background-color: transparent !important;
    color: #0058bc !important;
    border: 1px solid #0058bc !important;
}

/* ---- Timer bar ---- */
.swiss-swal-timer.swal2-timer-progress-bar {
    background: #b9172f !important;
    height: 3px !important;
}

.swiss-swal-popup .swal2-timer-progress-bar-container {
    background: #faeaec;
    height: 3px;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    overflow: hidden;
}

/* ---- Backdrop ---- */
.swal2-container.swiss-swal-container {
    background: rgba(28, 27, 27, 0.4) !important;
    backdrop-filter: blur(2px);
}

/* ---- Input (for prompts) ---- */
.swiss-swal-popup .swal2-input,
.swiss-swal-popup .swal2-textarea,
.swiss-swal-popup .swal2-select {
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #eae7e7 !important;
    border-radius: 6px !important;
    color: #1c1b1b;
    font-size: 0.9rem;
    box-shadow: none !important;
    margin: 1rem 0 0 !important;
}

.swiss-swal-popup .swal2-input:focus,
.swiss-swal-popup .swal2-textarea:focus {
    border-color: #b9172f !important;
    box-shadow: 0 0 0 2px rgba(185, 23, 47, 0.15) !important;
}

.swiss-swal-popup .swal2-validation-message {
    font-family: 'Inter', sans-serif !important;
    background: #faeaec;
    color: #ba1a1a;
    border-radius: 6px;
}

/* ---- Toast variant (top-end, non-blocking) ---- */
.swiss-swal-toast.swal2-popup {
    font-family: 'Inter', sans-serif !important;
    background: #ffffff;
    border: 1px solid #eae7e7;
    border-radius: 8px !important;
    box-shadow: 0 8px 28px rgba(28, 27, 27, 0.1);
    padding: 0.9rem 1.1rem !important;
    width: auto;
    max-width: min(22rem, calc(100vw - 1.5rem));
    overflow: hidden;
}

.swiss-swal-toast.swal2-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: #b9172f;
}

.swiss-swal-toast.swal2-popup.swiss-toast-success::before {
    background: #729a32;
}

.swiss-swal-toast.swal2-popup.swiss-toast-warning::before,
.swiss-swal-toast.swal2-popup.swiss-toast-error::before {
    background: #b9172f;
}

.swiss-swal-toast.swal2-popup.swiss-toast-info::before {
    background: #0058bc;
}

.swiss-swal-toast .swal2-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1c1b1b !important;
    text-align: left;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4;
}

.swiss-swal-toast .swal2-html-container {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    color: #5b4040 !important;
    text-align: left;
    margin: 0.2rem 0 0 !important;
    padding: 0 !important;
}

.swiss-swal-toast .swal2-icon {
    width: 1.75rem !important;
    height: 1.75rem !important;
    margin: 0 0.65rem 0 0 !important;
    border-width: 2px !important;
}

.swiss-swal-toast .swal2-icon .swal2-icon-content {
    font-size: 1.05rem !important;
}

.swiss-swal-toast .swal2-success [class^=swal2-success-line] {
    background-color: #729a32 !important;
}

.swiss-swal-toast .swal2-success {
    border-color: #729a32 !important;
}

.swiss-swal-toast .swal2-warning {
    border-color: #b9172f !important;
    color: #b9172f !important;
}

.swiss-swal-toast .swal2-timer-progress-bar {
    background: #b9172f !important;
}

.swiss-swal-toast.swiss-toast-success .swal2-timer-progress-bar {
    background: #729a32 !important;
}
