/* Custom radio panel CSS configuration */

.crp-no-stations-message {
    min-height: 150px;
    text-align: center;
    align-content: center;
    color: #ff037e;
}

.custom-radio-panel-wrap {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.crp-login-message {
    color: #888;
    font-style: italic;
}

.crp-station-title {
    font-weight: bold;
    color: #ff037e;
}
.crp-station {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.crp-station:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.crp-station h3 {
    margin-top: 0;
    color: #333;
}

.crp-station h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1em;
}

.crp-commercials-list {
    list-style: none;
    padding-left: 0;
}

.crp-commercial-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.crp-commercial-item br {
    margin-bottom: 4px; /* Add space after line breaks */
}

/* Adjustments for Commercial Item Layout */
.crp-commercial-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px; /* Increased margin slightly */
    border-radius: 4px;
    position: relative; /* Needed if using absolute positioning for badge */
    overflow: hidden; /* Clears floats */
}

/* Styles for the Status Badge */
.crp-commercial-status {
    /*display: inline-block; /* Allows padding and width */
    float: right; /* Position to the right */
    padding: 4px 10px; /* Adjust padding for button look */
    border-radius: 12px; /* Rounded corners for pill shape */
    font-size: 0.85em; /* Smaller font size */
    font-weight: bold;
    color: #fff; /* Default text color (white) */
    text-transform: uppercase; /* Optional: Uppercase text */
    margin-left: 15px; /* Space between badge and content */
    margin-top: 2px; /* Align slightly better vertically */
    text-align: center;
    min-width: 80px; /* Ensure minimum width */
}

/* Specific Status Colors */
.crp-commercial-status.status-active {
    background-color: #28a745; /* Bootstrap Success Green */
}

.crp-commercial-status.status-inactive {
    background-color: #6c757d; /* Bootstrap Secondary Gray */
}

.crp-commercial-status.status-reviewing {
    background-color: #ffc107; /* Bootstrap Warning Yellow */
    color: #333; /* Darker text for better readability on yellow */
}

/* Container for the main text details
.crp-commercial-details {
    /* This div now holds the text content. */
    /* No specific styles needed unless you want to constrain its width */
    /* because the status badge is floated right. 
} */

.crp-commercial-details strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.crp-commercial-details br {
    margin-bottom: 4px;
}

.crp-audio-player {
    margin-top: 10px;
    clear: both; /* Ensure player doesn't wrap around floated elements */
}

.crp-audio-player audio {
    width: 100%;
    max-width: 400px;
}

/* Add style for the schedule line if desired */
.crp-commercial-schedule {
    display: block; /* Make it take its own line */
    margin-top: 5px; /* Add some space above it */
    font-size: 0.9em; /* Slightly smaller font */
    color: #555; /* Slightly muted color */
}

/* You might need to adjust padding/margins on .crp-commercial-details
   or .crp-commercial-item if the content feels too cramped now */
/*.crp-commercial-details {
    /* Adjust padding-right if status badge interferes */
    /* padding-right: 100px; */ /* Example if badge width is ~80px + margin */
/*}

/* assets/css/crp-styles.css */

.crp-station-list-wrap {
    /* Styles for the overall container if needed */
}

.crp-station-summary-box {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Push info and button apart */
    align-items: center; /* Vertically align items */
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.crp-station-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: bold;
}

.crp-station-info p {
    margin-bottom: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

.crp-station-actions {
    margin-left: 20px; /* Space between info and button */
    flex-shrink: 0; /* Prevent button area from shrinking */
}

.crp-request-spot-button {
    /* Your button styles from previous step, or new ones */
    /* Example: */
    background-color: #ff037e;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    white-space: nowrap; /* Prevent button text wrapping */
}

.crp-request-spot-button:hover {
    background-color: #f96aaf;
    color: white;
}

.crp-error-small {
    font-size: 0.8em;
    color: #dc3232; /* WordPress error color */
}

/* Responsive adjustments if needed */
@media (max-width: 600px) {
    .crp-station-summary-box {
      flex-direction: column; /* Stack vertically on small screens */
      align-items: flex-start; /* Align items to the start */
    }
    .crp-station-actions {
        margin-left: 0;
        margin-top: 15px; /* Add space above button when stacked */
        width: 100%;
        text-align: left; /* Or center/right */
    }
    .crp-request-spot-button {
        /* display: block; */ /* Optional: Make button full width */
    }
}