.modal-popup .modal-header {
    padding-bottom: 1.2rem;
    padding-top: 3rem;
}
.modal-inner-wrap.inspeyapopzin_modal header.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 99999;
    margin: 0;
    padding: 0;
}
/* Match Hyvä popup close on Magento UI modals (checkout / legacy layouts). */
.modal-inner-wrap.inspeyapopzin_modal header.modal-header button.action-close {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0.5rem;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    color: #111;
    cursor: pointer;
}
.modal-inner-wrap.inspeyapopzin_modal header.modal-header button.action-close:before {
    color: #111;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
aside.modal-popup.inspeyacustomPopzin .modal-content p.subtitle-text {
    padding: 39px;
}

aside.modal-popup.inspeyacustomPopzin .modal-content{
    padding:0px;
   background-size: 100% 100%;

}
.modal-inner-wrap.inspeyapopzin_modal footer.modal-footer {
    display: none;
}

.modal-inner-wrap.inspeyapopzin_modal {
    border-radius: 27px;
    /* background: bisque; */
}

.inspeyacustomPopzin .box {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  border: 10px solid #949090;
  overflow: hidden;
  transition: all ease-in-out 5s;
  transform: rotate(90deg);
}
.inspeyacustomPopzin .font {
  color: white;
  font-size: 20px;
}


@media (max-width: 576px) {
  .mainbox {
    width: 100%;
    height: 50%;
  }
}
   
.modal-popup .modal-inner-wrap.inspeyapopzin_modal {
    max-width: 1163px;
}

/* ************************************************** */

.inspeyacustomPopzin .spin-content {
    padding: 15px;
}

._show.inspeyacustomPopzin {
    display: flex;
    align-items: center;
    justify-content: center;
}


.inspeyacustomPopzin .spinpopup-container .spin-content {
    z-index: 99999;
}


@media screen and (min-width:1025px) and (max-width: 1199px) {

    .modal-popup .modal-inner-wrap.inspeyapopzin_modal {
    width: 100%;
    max-width: 1024px;
}
} 


@media screen and (max-width: 1024px){
 

.inspeyacustomPopzin .spin {
    width: 45px;
    height: 45px;
    font-size: 11px;
    padding: 0;
    border-width: 2px;
}
aside.modal-popup.inspeyacustomPopzin .modal-content {
    background-size: cover;
   /* height: 100%;*/
}
.inspeyacustomPopzin  .mainbox.spinnerWheelBlock.threeSpinner_1:after {
    top: 54% !important;
}
} 

@media screen and (max-width: 1024px){
    ._show.inspeyacustomPopzin { 
        display: flex;
        align-items: center;
        justify-content: center;
        height: calc(100% - 10px);
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        overflow: auto;
    }
    .modal-inner-wrap.inspeyapopzin_modal header.modal-header {
        top: 0.5rem;
        right: 0.5rem;
    }
    .modal-inner-wrap.inspeyapopzin_modal header.modal-header button.action-close {
        width: 2.25rem;
        height: 2.25rem;
        background: #fff;
        color: #111;
    }
    .modal-inner-wrap.inspeyapopzin_modal header.modal-header button.action-close:before {
        color: #111;
        font-size: 1.1rem;
        font-weight: 700;
    }
        
    aside.modal-popup.modal-slide._show.inspeyacustomPopzin {
        left: 50%;
    }
} 

@media screen and (min-width: 993px) and (max-width: 1024px){
    aside.modal-popup.inspeyacustomPopzin .modal-content {    
        height: auto; 
    }
    ._show.inspeyacustomPopzin.modal-popup .modal-inner-wrap.inspeyapopzin_modal {
     /*   width: 100%;
        max-width: 100%;*/
/*        height: calc(100% - 50px);*/
    }

}

@media screen and (max-width: 767px){ 
  
    aside.modal-popup.inspeyacustomPopzin .modal-content {
        background-size: cover;
        height: unset;
    }
    .modal-inner-wrap.inspeyapopzin_modal header.modal-header {
        right: 0.5rem;
        top: 0.5rem;
    }
    .modal-inner-wrap.inspeyapopzin_modal header.modal-header button.action-close::before {
        color: #111;
        font-size: 1.1rem;
        font-weight: 700;
    }
     
    aside.modal-popup.inspeyacustomPopzin .modal-content .spinpopup-container {
        flex-direction: column;
    }

    aside.modal-popup.inspeyacustomPopzin .modal-content {
        
        background-size: cover;
    }
    aside.modal-popup.modal-slide._show.inspeyacustomPopzin {
       
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        height: calc(100% - 10px);
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        position: fixed;
    }
    .inspeyacustomPopzin .mainbox:after {
           left: 4%;
        
    }

}

@media screen and (max-width:420px){
  
    ._show.inspeyacustomPopzin.modal-popup .modal-inner-wrap.inspeyapopzin_modal {
        width: 100%;
        max-width: 100%;
        /* height: 100%; */
       /* justify-content: center;*/
        height: auto;
    }
    aside.modal-popup.inspeyacustomPopzin .modal-content {
        background-size: cover;
        height: inherit;
    /*    padding: 20px 0 0 !important;*/
    }
    aside.modal-popup.modal-slide._show.inspeyacustomPopzin {    
        justify-content: center;
        align-items: baseline;
    }

}

aside .inner-content.mgz-container {
    width: 100%;
}


.modal-popup .modal-inner-wrap.bottom_bar-inspeyapopzin {
    bottom: 0;
    width: 100% !important;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    max-height: 40%;
}
.modal-popup .modal-inner-wrap.top_bar-inspeyapopzin {
    top: 0;
    width: 100% !important;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    max-height: 30%;
}
.modal-popup .modal-inner-wrap.left_sidebar-inspeyapopzin {
    top: 0;
    width: 100% !important;
    margin: 0;
    max-width: 30%;
    border-radius: 0;
    max-height: 100%;
    height: 100% !important;
    left: 0;
}
.modal-popup .modal-inner-wrap.right_sidebar-inspeyapopzin {
    top: 0;
    width: 100% !important;
    margin: 0;
    max-width: 30%;
    border-radius: 0;
    max-height: 100%;
    height: 100% !important;
    right: 0 !important;
    left: unset;
}

/* Modern Hyvä / Tailwind / Multi-position popup styling */
.mhinspeya-popup-overlay.pos-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.mhinspeya-popup-overlay.pos-top_bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}
.mhinspeya-popup-overlay.pos-bottom_bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.mhinspeya-popup-overlay.pos-left_sidebar {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}
.mhinspeya-popup-overlay.pos-right_sidebar {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}
.mhinspeya-popup-overlay.pos-custom {
    display: block;
    padding: 0;
}

.mhinspeya-popup-dialog.pos-center {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

/*
 * Shared close control for EVERY layout:
 * center, top/bottom bar, sidebars, custom, flyout, checkout.
 */
.mhinspeya-popup-overlay .mh-popup-close,
.mhinspeya-popup-dialog .mh-popup-close,
.mhinspeya-popup-flyout-checkout > .mh-popup-close {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0.5rem !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
    color: #111 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.mhinspeya-popup-overlay .mh-popup-close svg,
.mhinspeya-popup-dialog .mh-popup-close svg,
.mhinspeya-popup-flyout-checkout > .mh-popup-close svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: block !important;
    color: #111 !important;
}
.mhinspeya-popup-dialog > .mh-popup-body {
    position: relative;
    z-index: 1;
    isolation: isolate;
}
.mhinspeya-popup-dialog.pos-center > .mh-popup-body,
.mhinspeya-popup-dialog.pos-custom > .mh-popup-body,
.mhinspeya-popup-dialog.pos-top_bar > .mh-popup-body,
.mhinspeya-popup-dialog.pos-bottom_bar > .mh-popup-body,
.mhinspeya-popup-dialog.pos-left_sidebar > .mh-popup-body,
.mhinspeya-popup-dialog.pos-right_sidebar > .mh-popup-body {
    padding-top: 0.5rem;
}
.mhinspeya-popup-dialog.pos-top_bar {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    max-height: 85vh;
    overflow-y: auto;
}
.mhinspeya-popup-dialog.pos-bottom_bar {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    max-height: 85vh;
    overflow-y: auto;
}
.mhinspeya-popup-dialog.pos-left_sidebar {
    position: relative;
    height: 100%;
    max-height: 100vh;
    width: 100%;
    max-width: 28rem;
    overflow-y: auto;
}
.mhinspeya-popup-dialog.pos-right_sidebar {
    position: relative;
    height: 100%;
    max-height: 100vh;
    width: 100%;
    max-width: 28rem;
    overflow-y: auto;
}
.mhinspeya-popup-dialog.pos-custom {
    position: absolute;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Corner flyout: no backdrop, page stays scrollable and clickable. */
.mhinspeya-popup-overlay.pos-flyout {
    position: fixed;
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
    display: block;
    z-index: 9990;
}
/* Default / legacy: Right-Bottom */
.mhinspeya-popup-overlay.pos-flyout:not([class*="flyout-pos-"]),
.mhinspeya-popup-overlay.pos-flyout.flyout-v-bottom,
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-right-bottom {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    animation: mh-flyout-in-bottom 0.35s ease-out;
}
.mhinspeya-popup-overlay.pos-flyout.flyout-v-top,
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-right-top {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    left: auto;
    animation: mh-flyout-in-top 0.35s ease-out;
}
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-left-top {
    top: 1rem;
    right: auto;
    bottom: auto;
    left: 1rem;
    animation: mh-flyout-in-top 0.35s ease-out;
}
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-left-bottom {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 1rem;
    animation: mh-flyout-in-bottom 0.35s ease-out;
}
.mhinspeya-popup-overlay.pos-flyout.flyout-v-middle,
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-right-middle {
    top: 50%;
    right: 1rem;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    animation: mh-flyout-in-middle 0.35s ease-out;
}
.mhinspeya-popup-overlay.pos-flyout.flyout-pos-left-middle {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 1rem;
    transform: translateY(-50%);
    animation: mh-flyout-in-middle 0.35s ease-out;
}
@keyframes mh-flyout-in-bottom {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes mh-flyout-in-top {
    from {
        opacity: 0;
        transform: translateY(-1.25rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes mh-flyout-in-middle {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 1.25rem));
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}
.mhinspeya-popup-dialog.pos-flyout {
    pointer-events: auto;
    position: relative;
    width: min(24rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: min(70vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    /* Hide OS scrollbar UI (arrows/track); wheel/touch scrolling still works. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mhinspeya-popup-dialog.pos-flyout::-webkit-scrollbar,
.mhinspeya-popup-dialog.pos-flyout::-webkit-scrollbar-button,
.mhinspeya-popup-dialog.pos-flyout::-webkit-scrollbar-track,
.mhinspeya-popup-dialog.pos-flyout::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
/* Nested Page Builder blocks must not create their own scroll gutters. */
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body,
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body :is(
    [data-content-type],
    .pagebuilder-column,
    .pagebuilder-column-group,
    .pagebuilder-slider,
    .tabs-content
) {
    overflow: visible !important;
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body ::-webkit-scrollbar,
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body ::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body {
    padding: 1.35rem 1.35rem 1.1rem;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body :is(h1, h2, h3, h4) {
    margin: 0 2.75rem 0.55rem 0;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body p {
    margin: 0 0 0.7rem;
    font-size: 0.875rem;
    line-height: 1.45;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body :is(.popup-actions, .flyout-actions) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body :is(.popup-actions a, .flyout-actions a, a.mh-flyout-btn) {
    flex: 1 1 8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #222;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.mhinspeya-popup-overlay.pos-flyout .mh-popup-body :is(.popup-actions a, .flyout-actions a, a.mh-flyout-btn):hover {
    background: #111;
    color: #fff;
}

.mhinspeya-popup-flyout-checkout {
    display: block;
    position: fixed;
    right: 1rem;
    left: auto;
    z-index: 9990;
    width: min(24rem, calc(100vw - 2rem));
    max-height: min(70vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 1.35rem 1.35rem 1.1rem;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mhinspeya-popup-flyout-checkout::-webkit-scrollbar,
.mhinspeya-popup-flyout-checkout::-webkit-scrollbar-button,
.mhinspeya-popup-flyout-checkout::-webkit-scrollbar-track,
.mhinspeya-popup-flyout-checkout::-webkit-scrollbar-thumb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}
.mhinspeya-popup-flyout-checkout:not([class*="flyout-pos-"]),
.mhinspeya-popup-flyout-checkout.flyout-v-bottom,
.mhinspeya-popup-flyout-checkout.flyout-pos-right-bottom {
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    transform: none;
}
.mhinspeya-popup-flyout-checkout.flyout-v-top,
.mhinspeya-popup-flyout-checkout.flyout-pos-right-top {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    left: auto;
    transform: none;
}
.mhinspeya-popup-flyout-checkout.flyout-pos-left-top {
    top: 1rem;
    right: auto;
    bottom: auto;
    left: 1rem;
    transform: none;
}
.mhinspeya-popup-flyout-checkout.flyout-pos-left-bottom {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 1rem;
    transform: none;
}
.mhinspeya-popup-flyout-checkout.flyout-v-middle,
.mhinspeya-popup-flyout-checkout.flyout-pos-right-middle {
    top: 50%;
    right: 1rem;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
}
.mhinspeya-popup-flyout-checkout.flyout-pos-left-middle {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 1rem;
    transform: translateY(-50%);
}

