/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Blurred background when modal is open */
body.sepa-modal-open > *:not(.modals-wrapper) {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

body.sepa-modal-open .modals-wrapper {
    filter: none;
}

/* SEPA Activation Popup Styles */
.sepa-activation-popup {
    max-width: 523px !important;
    margin: 0 auto !important;
}

.sepa-activation-popup .modal-inner-wrap {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    width: 523px;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 32px;
    box-sizing: border-box;
}

.modal-slide._inner-scroll .modal-footer {
    margin-top: 0px;
}

.sepa-popup-content {
    text-align: center;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* Custom Close Button with SVG - Consistent across all screens */
.sepa-custom-close-btn {
    position: absolute !important;
    top: -22px !important;
    right: -20px !important;
    width: 25px !important;
    height: 25px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.sepa-custom-close-btn:hover {
    transform: scale(1.1) !important;
}

.sepa-custom-close-btn:active {
    transform: scale(0.95) !important;
}

.sepa-custom-close-btn:focus {
    outline: 2px solid #27D9E5 !important;
    outline-offset: 3px !important;
    border-radius: 50% !important;
}

/* SVG styling */
.sepa-custom-close-btn svg {
    width: 25px !important;
    height: 25px !important;
    display: block !important;
    transition: all 0.2s ease !important;
}

.sepa-custom-close-btn:hover svg circle {
    fill: #bfbfbf !important;
}

.sepa-custom-close-btn:hover svg path {
    fill: #002d33 !important;
}

/* Hide default Magento close button */
.sepa-activation-popup .modal-header {
    display: none !important;
}

.sepa-activation-popup .action-close {
    display: none !important;
}

/* Banner Section */
.sepa-popup-banner {
    background: #043946;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    position: relative;
    width: 433px;
    height: 139px;
    border-radius: 5px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* SEPA Logo Container */
.sepa-logo-container {
    flex-shrink: 0;
}

.sepa-logo-with-stars {
    width: 111.7px;
    height: 111.5px;
    object-fit: contain;
    opacity: 1;
    margin-left: 12px;
}

/* Banner text section */
.sepa-banner-text {
    gap: 12px;
    color: white;
    flex: 1;
    text-align: center;
}

.sepa-banner-text .icon {
    font-size: 32px;
    flex-shrink: 0;
}

.sepa-banner-text .text {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

/* Body Section */
.sepa-popup-body {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sepa-popup-body h3 {
    color: #004047;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.sepa-popup-body p {
    color: #004047;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0%;
    text-align: center;
}

.sepa-note {
    color: #004047 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0;
    border: none;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    font-family: 'Roboto', sans-serif;
}

/* Main Button */
.sepa-activate-btn {
    background: #27D9E5 !important;
    border: none !important;
    color: #004047 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    width: 100%;
    height: 50px;
    font-family: 'Roboto', sans-serif;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sepa-activate-btn:hover {
    background: #1fc5d0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 217, 229, 0.4);
}

.sepa-activate-btn:active {
    transform: translateY(0);
}

/* Modal Footer */
.sepa-activation-popup .modal-footer {
    padding: 0;
    border: none !important;
    background: white;
    text-align: center;
    margin-top: auto;
}

.sepa-activation-popup .modal-title {
    display: none;
}

.sepa-activation-popup.modal-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1001;
}

.sepa-activation-popup .modal-inner-wrap {
    margin: 0 auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.sepa-activation-popup .modal-content {
    overflow-y: visible !important;
    overflow: visible !important;
}

.sepa-activation-popup._inner-scroll .modal-content {
    overflow-y: visible !important;
    overflow: visible !important;
}

.modal-popup .modal-content{
    padding-left: 0rem;
    padding-right: 0rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sepa-activation-popup {
        max-width: 95% !important;
        margin: 15px !important;
    }
    
    .sepa-activation-popup .modal-inner-wrap {
        width: auto;
        height: auto;
        min-height: 400px;
        padding: 20px;
    }
    
    /* Adjust close button for mobile */
    .sepa-custom-close-btn {
        top: -10px !important;
        right: -10px !important;
        width: 22px !important;
        height: 22px !important;
    }
    
    .sepa-custom-close-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .sepa-popup-content {
        gap: 15px;
    }
    
    .sepa-popup-banner {
        flex-direction: row;
        gap: 15px;
        padding: 20px;
        text-align: center;
        width: 100%;
        height: auto;
    }

    .modal-popup.modal-slide._inner-scroll .modal-inner-wrap{
        min-height: unset;
    }

    .modal-popup.modal-slide .modal-inner-wrap[class] {
        background-color: white;
        padding: 12px 28px;
    }

    .sepa-note{
        font-size: 18px !important;
    }
    
    .sepa-banner-text {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .sepa-banner-text .text {
        text-align: center;
        font-size: 18px;
    }
    
    .sepa-logo-with-stars {
        width: 80px;
        height: 80px;
    }
    
    .sepa-popup-body h3 {
        font-size: 16px;
    }
    
    .sepa-popup-body p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .sepa-activation-popup .modal-inner-wrap {
        padding: 15px;
    }
    
    /* Further adjust close button for small mobile */
    .sepa-custom-close-btn {
        top: -8px !important;
        right: -8px !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    .sepa-custom-close-btn svg {
        width: 20px !important;
        height: 20px !important;
        margin-top: 15px;
        margin-right: -26px;
    }
    
    .sepa-popup-content {
        gap: 12px;
    }
    
    .sepa-popup-banner {
        padding: 12px;
        gap: 10px;
    }
    
    .sepa-banner-text .text {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .sepa-popup-body h3 {
        font-size: 15px;
    }
    
    .sepa-popup-body p {
        font-size: 17px;
    }
    
    .sepa-logo-with-stars {
        width: 70px;
        height: 70px;
    }
}