/* Wrapper for the popup block */
.custom-popup-builder-wrapper {
    position: relative;
}

/* Popup content */
.popup-content {
    position: fixed;
    background-color: white;
    color: black; /* Default text color is black */
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-radius: 8px;
    text-align: center;
    display: none;
}

/* Show the popup when the 'show' class is added */
.popup-content.show {
    display: block;
}

/* Position classes */
.popup-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.popup-top-left {
    top: 0%;
    left: 0%;
}
.popup-top-right {
    top: 0%;
    right: 0%;
}
.popup-bottom-left {
    bottom: 0%;
    left: 0%;
}
.popup-bottom-right {
    bottom: 0%;
    right: 0%;
}

/* Close button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.close-popup:hover {
    color: red;
}

/* Trigger button styling */
.popup-trigger-button {
    width: 100%;
    background-color: #abb3b7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    height: 100px;
}

.popup-content.fade-in {
    animation: fadeIn 1s forwards;
}

.popup-content.fade-out {
    animation: fadeOut 1s forwards;
}

.popup-content.scroll-up {
    animation: scrollUp 1s forwards;
}

.popup-content.scroll-down {
    animation: scrollDown 1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scrollUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes scrollDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}



/* Popup content responsiveness */
@media (max-width: 768px) { /* Tablet view */
    .popup-content {
        width: 60% !important; /* Adjust the width */
        height: auto; /* Let height adjust based on content */
        padding: 15px; /* Reduce padding */
    }
}

@media (max-width: 540px) { /* Mobile view */
    .popup-content {
        width: 100% !important; /* Full width */
        height: 50% !important; /* Adjust height automatically based on content */
        padding: 20px 10px;
        font-size: 14px; /* Adjust font size for readability */
    }
    
    .popup-center, 
    .popup-top-left, 
    .popup-bottom-right, 
    .popup-top-right, 
    .popup-bottom-left {
        bottom: 0; /* Override positioning styles for these classes */
    }
}


.popup-inner-blocks .acf-label {
    text-align: left;
}

.popup-inner-blocks .acf-subscriber-form .acf-input input {
    padding:10px 10px;
    border-width: thin;
}

.popup-inner-blocks .acf-subscriber-form .acf-input select{
    padding:10px 10px;
    border-radius: 20px;
}