/*
 * General CSS
 *
 * Provides the base styling for your plugin's layout. Adjust responsive design for both mobile and desktop here.
 */

/*
 * Wrap the entire custom product layout in a centred container.
 * A max-width keeps the content from stretching too wide on large screens,
 * while margin: 0 auto centres it horizontally. Padding adds breathing room.
 */
.cpb-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/*
 * The row containing the two columns. Add a background, border and shadow to
 * give it a subtle elevated effect.
 */
.cpb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

/* Placeholder for right panel content inside the left column on small screens */
.cpb-mobile-right-placeholder {
    display: none;
    width: 100%;
    margin-bottom: 15px;
}

.cpb-left-column, .cpb-right-column {
    box-sizing: border-box;
}

/* بائیں کالم کو چوڑائی کا زیادہ حصہ دیں */
.cpb-left-column {
    flex: 0 0 65%;
}

.cpb-right-column {
    flex: 0 0 30%;
}

/* On narrower screens (tablets and mobile), stack columns vertically and move the right panel below the player */
@media (max-width: 992px) {
    .cpb-left-column, .cpb-right-column {
        flex: 0 0 100%;
    }
    /* On mobile and tablet, show the booking section first for quicker access */
    .cpb-right-column {
        order: 1;
        /* Hide the standalone right column since its content is moved into the mobile placeholder */
        display: none;
    }
    .cpb-left-column {
        order: 2;
    }

    /* Show the mobile right panel placeholder */
    .cpb-mobile-right-placeholder {
        display: block;
    }
}

/* Make the container full width on small mobile screens to maximize space */
@media (max-width: 600px) {
    .cpb-wrapper {
        max-width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    /* Reduce padding inside the row on very small screens */
    .cpb-row {
        padding: 15px;
    }
}