/* modules/moonphaseproduct/views/css/moonphaseproduct_front.css */

/* Basic styling for date picker input, makes it look clickable */
.product-customization-field input[type="text"] {
    cursor: pointer;
}

/* --- New Layout Specific Styles (for the two-column structure) --- */

/* Style for the left column containing inputs and product info */
#left-column-customizer {
    /* Add padding/margin as needed for spacing between columns */
    padding-right: 15px; /* Example: Space on the right side of the left column */
}

/* Style for the right column containing the live preview */
#right-column-preview {
    /* Add padding/margin as needed for spacing between columns */
    padding-left: 15px; /* Example: Space on the left side of the right column */
    text-align: center; /* Center the image within its column */
}

/* Container for the live moon phase preview image */
#moonphase-live-preview-container {
    position: relative; /* CRITICAL: Needed for absolute positioning of the loading overlay */
    border: 1px solid #e0e0e0; /* A subtle border to define the preview area */
    padding: 15px; /* Padding inside the preview container */
    background-color: #f8f8f8; /* Light background for the preview */
    margin-bottom: 20px; /* Space below the preview container if other elements follow */
    /* Ensure the container has a minimum height or is flexible to hold the image */
    min-height: 300px; /* Adjust as needed */
    display: flex; /* Use flexbox to easily center content */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensures overlay doesn't spill out if image container has border-radius */
}

/* Style for the moon phase preview image itself */
#moonphase-preview-image {
    max-width: 100%; /* Ensure image is responsive within its container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}

/* --- Loading Overlay Styles (Updated to target the new container) --- */
#moon-preview-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    display: flex;
    flex-direction: column; /* Stack text and spinner */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    z-index: 10; /* Ensure it's above the image */
    transition: opacity 0.3s ease;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Hide from screen readers when not active */
}

#moon-preview-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Simple spinner for the overlay */
#moon-preview-loading-overlay .rotating {
    animation: spin 1s linear infinite;
    font-size: 2em; /* Adjust spinner size */
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Hiding Rules (Apply to all screen sizes) --- */
.hidden-customization-inputs,
.hidden-button,
.hidden-custom-data-display,
.hidden-formatted-date-display {
    display: none !important;
}
/* --- END HIDING RULES --- */