/* PECPool SweetAlert2 compatibility layer */
.pecpool-swal2-container,
.swal2-container {
    z-index: 20000 !important;
}

.pecpool-swal2-popup {
    border-radius: 1rem !important;
    font-family: var(--pecpool-content-font, Roboto), Arial, sans-serif !important;
    font-weight: var(--pecpool-content-font-weight, 400) !important;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.24) !important;
}

.pecpool-swal2-title {
    font-family: var(--pecpool-title-font, "Fira Sans Condensed"), Arial, sans-serif !important;
    font-weight: var(--pecpool-title-font-weight, 500) !important;
    line-height: 1.3 !important;
}

.pecpool-swal2-html {
    line-height: 1.65 !important;
}

.pecpool-swal2-confirm,
.pecpool-swal2-cancel {
    border: 0 !important;
    border-radius: 0.65rem !important;
    padding: 0.65rem 1.35rem !important;
    min-width: 5.5rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pecpool-swal2-confirm {
    color: #fff !important;
    background-color: #0d6efd !important;
}

.pecpool-swal2-confirm:hover,
.pecpool-swal2-confirm:focus {
    background-color: #0b5ed7 !important;
}

.pecpool-swal2-cancel {
    color: #334155 !important;
    background-color: #e2e8f0 !important;
}

.pecpool-swal2-cancel:hover,
.pecpool-swal2-cancel:focus {
    background-color: #cbd5e1 !important;
}

body.pecpool-fa .pecpool-swal2-popup,
html[dir="rtl"] .pecpool-swal2-popup,
body[dir="rtl"] .pecpool-swal2-popup {
    direction: rtl;
    text-align: right;
}

body.pecpool-fa .swal2-actions,
html[dir="rtl"] .swal2-actions,
body[dir="rtl"] .swal2-actions {
    direction: ltr;
}

/* keep SweetAlert danger/error icon visible with the local runtime */
.pecpool-swal2-popup .swal2-icon.swal2-error,
.pecpool-swal2-popup .swal2-icon.swal2-danger{border-color:#f27474!important;color:#f27474!important}.pecpool-swal2-popup .swal2-error .swal2-x-mark-line-left,.pecpool-swal2-popup .swal2-error .swal2-x-mark-line-right,.pecpool-swal2-popup .swal2-danger .swal2-x-mark-line-left,.pecpool-swal2-popup .swal2-danger .swal2-x-mark-line-right{background-color:#f27474!important}


/* PECPool final fix: keep SweetAlert danger/error X centered inside the circle. */
.swal2-icon.swal2-error .swal2-x-mark,
.swal2-icon.swal2-danger .swal2-x-mark,
.pecpool-swal2-local-icon.swal2-error .swal2-x-mark,
.pecpool-swal2-local-icon.swal2-danger .swal2-x-mark {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    flex-grow: 0 !important;
    transform: none !important;
}
.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-danger .swal2-x-mark-line-left,
.pecpool-swal2-local-icon.swal2-error .swal2-x-mark-line-left,
.pecpool-swal2-local-icon.swal2-danger .swal2-x-mark-line-left {
    top: 2.3125em !important;
    left: 1.0625em !important;
    right: auto !important;
    width: 2.9375em !important;
    height: .3125em !important;
    transform: rotate(45deg) !important;
    background-color: #f27474 !important;
}
.swal2-icon.swal2-error .swal2-x-mark-line-right,
.swal2-icon.swal2-danger .swal2-x-mark-line-right,
.pecpool-swal2-local-icon.swal2-error .swal2-x-mark-line-right,
.pecpool-swal2-local-icon.swal2-danger .swal2-x-mark-line-right {
    top: 2.3125em !important;
    right: 1em !important;
    left: auto !important;
    width: 2.9375em !important;
    height: .3125em !important;
    transform: rotate(-45deg) !important;
    background-color: #f27474 !important;
}
