.mc-store-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.mc-store-popup.is-open {
    display: block;
}

.mc-store-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.mc-store-popup-dialog {
    position: absolute;
    width: min(92vw, 560px);
    max-height: 88vh;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
    background-size: cover;
    background-position: center;
}

.mc-store-popup-small .mc-store-popup-dialog {
    width: min(92vw, 420px);
}

.mc-store-popup-large .mc-store-popup-dialog {
    width: min(94vw, 780px);
}

.mc-store-popup-center .mc-store-popup-dialog {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mc-store-popup-bottom_right .mc-store-popup-dialog {
    right: 24px;
    bottom: 24px;
}

.mc-store-popup-bottom_bar .mc-store-popup-dialog {
    left: 50%;
    bottom: 0;
    width: min(100vw, 1120px);
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
}

.mc-store-popup-fullscreen .mc-store-popup-dialog {
    inset: 24px;
    width: auto;
    max-height: none;
}

.mc-store-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    color: inherit;
}

.mc-store-popup-content {
    padding: 28px;
}

.mc-store-popup-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: inherit;
}

.mc-store-popup-html {
    font-size: 15px;
    line-height: 1.6;
}

.mc-store-popup-html img {
    max-width: 100%;
    height: auto;
}

.mc-store-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.mc-store-popup-form {
    margin-top: 18px;
}

.mc-store-popup-form .form-control,
.mc-store-popup-form .form-select {
    border-radius: 6px;
}

.mc-store-popup-form-description {
    margin-bottom: 16px;
    color: inherit;
    opacity: .8;
}

.mc-store-popup-form-missing {
    padding: 12px;
    border-radius: 6px;
    background: rgba(220, 53, 69, .1);
    color: #dc3545;
}

@media (max-width: 767px) {
    .mc-store-popup-bottom_right .mc-store-popup-dialog,
    .mc-store-popup-center .mc-store-popup-dialog {
        right: auto;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .mc-store-popup-content {
        padding: 22px;
    }

    .mc-store-popup-title {
        font-size: 22px;
    }
}
