/* Typography & General Style */
body {
    font-family: 'Roboto', sans-serif; /* Changed the font to Roboto for a more modern look */
}

.smsquicker-country-mobile-group {
    display: flex;
    gap: 10px;
}

#smsquicker-country-code {
    width: 25%;
    margin-bottom: 15px;  /* Increased spacing */
    border: 1px solid #e2e2e2;  /* Lightened border */
    border-radius: 5px;  /* Slightly rounded corners */
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);  /* Subtle inner shadow for depth */
    transition: border-color 0.3s, box-shadow 0.3s;  /* Transition effects for focus state */
    text-align: center;
}

.smsquicker-update-details-popup-side-image {
    width: 38%; /* Width of the side image */
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Prevent the image from shrinking */
    object-fit: cover; /* Ensure the image covers the entire area */
}

.smsquicker-update-details-popup-content {
    display: flex;
    flex-direction: row; /* Align side image and popup side by side */
    align-items: stretch; /* Stretch the items to fill the container */
    justify-content: center;
    max-width: 780px; /* Adjust the max-width as needed */
    margin: auto;
    background-color: #fff; /* Background color of the popup */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensure the container takes full width */
}

#smsquicker-update-details-popup {
    flex-grow: 1; /* Allow the popup to grow and fill the space */
    display: flex;
    flex-direction: column; /* Organize content vertically */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px; /* Padding for inner content */
}

/* Success Popups Style */
#smsquicker-details-updated-succes-popup-woocommerce,
#smsquicker-details-updated-succes-popup-wordpress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1010;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

#smsquicker-woocommerce-success-popup-content,
#smsquicker-wordpress-success-popup-content {
    background-color: #fff;
    width: 80%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

.woocommerce-details-updated-success-image,
.wordpress-details-updated-success-image {
    margin-bottom: 20px;
}

.smsquicker-details-updated-title-woocommerce,
.smsquicker-details-updated-title-wordpress {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.smsquicker-details-updated-description-woocommerce,
.smsquicker-details-updated-description-wordpress {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #666;
}

.smsquicker-details-updated-offer-time-woocommerce,
.smsquicker-details-updated-offer-time-wordpress {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #888;
}

.smsquicker-details-updated-continue-btn {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.smsquicker-details-updated-continue-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* Success Popup Image Style */
.woocommerce-details-updated-success-image img,
.wordpress-details-updated-success-image img {
    max-width: 100%;
    height: auto;
}

#smsquicker-update-details-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center; 
    justify-content: center;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Make it not interactable when hidden */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition for opacity and visibility */
}

.smsquicker-update-details-title {
    font-size: 23px;  /* Increased font size */
    font-weight: 600;  /* Made it bold */
    margin-bottom: 12px;  /* Spacing */
    color: #111;  /* Darker text color */
}

.smsquicker-update-details-title-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

#smsquicker-update-details-form {
    width: 100%;
}

#smsquicker-update-details-form input[type="text"],
#smsquicker-update-details-form input[type="email"] {
    width: 100%;
    padding: 12px;  /* Increased padding for a larger field */
    margin-bottom: 15px;  /* Increased spacing */
    border: 1px solid #e2e2e2;  /* Lightened border */
    border-radius: 5px;  /* Slightly rounded corners */
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);  /* Subtle inner shadow for depth */
    transition: border-color 0.3s, box-shadow 0.3s;  /* Transition effects for focus state */
}

#smsquicker-update-details-form input[type="text"]:focus,
#smsquicker-update-details-form input[type="email"]:focus {
    border-color: #0073aa;  /* Border color on focus */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Increased shadow depth on focus */
}

#smsquicker-update-details-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    width: 100%;
    padding: 12px 20px;  /* Increased padding for a larger button */
    border: none;
    border-radius: 5px;  /* Slightly rounded corners */
    cursor: pointer;
    font-size: 1.1rem;  /* Increased font size */
    font-weight: 500;  /* Medium boldness */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* Button shadow for depth */
    transition: background-color 0.3s, transform 0.3s;  /* Smooth hover transition */
}

#smsquicker-update-details-form input[type="submit"]:hover {
    background-color: #005a87;
    transform: translateY(-2px);  /* Slight upwards movement on hover */
}

#smsquicker-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;  /* Made it slightly less prominent */
    transition: color 0.3s;  /* Smooth color transition on hover */
}

#smsquicker-popup-close-btn:hover {
    color: #555;  /* Slightly darker color on hover */
}

/* Styling the button container */
.show_update_details_popup_button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    cursor: pointer;
    background-color: #0073aa;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Styling the image inside the button container */
.show_update_details_popup_button img {
    display: block;
    max-width: 40px;
    height: auto;
    animation: wiggle 1s ease-in-out infinite;
}

/* Wiggle effect using keyframes */
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Responsiveness */
@media (max-width: 480px) {
    #smsquicker-update-details-popup-container {
        align-items: flex-end;
        justify-content: center;
    }

    .smsquicker-update-details-popup-content {
        position: fixed;
        bottom: -100%; /* Start off-screen */
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        transition: bottom 0.5s ease-in-out;
        overflow: hidden;
    }

    .smsquicker-update-details-popup-content.active {
        bottom: 0; /* Slide up to stick to the bottom */
    }

    .smsquicker-update-details-popup-side-image {
        display: none; /* Optionally hide the side image on mobile */
    }

    #smsquicker-popup-close-btn {
        top: 5px;
        color: #333;
    }

    #smsquicker-update-details-popup {
        padding: 20px;
    }

    /* Adjust form input and button sizes for mobile */
    #smsquicker-update-details-form input[type="text"],
    #smsquicker-update-details-form input[type="email"],
    #smsquicker-update-details-form input[type="submit"] {
        padding: 10px;
        font-size: 0.9rem;
    }
}