/**
 * The Hyva look of the GeoIP popup (templates/js.phtml).
 *
 * The template renders Magento's own modal-popup markup, which Luma's stylesheet dresses as the
 * modal widget always did. Hyva has no CSS for those classes, so this is the look
 * mirasvit/module-geo-ip-hyva's template gave the popup inline, until mirasvit/pm#1144: a white box
 * pinned to the top-left corner with a blue border. The Accept and Ok buttons take Hyva's own
 * btn btn-primary from the template, since Tailwind v4 refuses @apply on a component class.
 */
.mst-geo-ip__popup .modal-popup {
    position: fixed;
    top: 0;
    left: 0;
    margin: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #1D4ED8;
    border-radius: 5px;
}

/* The dialog takes focus when it opens; Luma hides that ring on .modal-popup, and so does this. */
.mst-geo-ip__popup .modal-popup:focus {
    outline: none;
}

.mst-geo-ip__popup .modal-header {
    position: relative;
    padding-right: 2rem;
}

.mst-geo-ip__popup .modal-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.mst-geo-ip__popup .action-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 1.5rem;
}

.mst-geo-ip__popup .modal-content {
    margin-bottom: 10px;
}

.mst-geo-ip__popup .modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
