/* ow-service-location – cart location conflict UI
 * ================================================ */

/* ---- Conflict panel ---- */
.ow-sl-conflict-panel {
    background: #fffbee;
    border: 1px solid #f0c040;
    border-left: 4px solid #f0a500;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 28px;
    font-family: inherit;
}

.ow-sl-conflict-panel__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

.ow-sl-conflict-panel__desc {
    margin: 0 0 16px;
    color: #555;
    font-size: 0.95rem;
}

/* ---- Controls row (select + button) ---- */
.ow-sl-conflict-panel__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ow-sl-location-select {
    flex: 1 1 200px;
    max-width: 320px;
    height: 42px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

.ow-sl-confirm-btn,
.ow-sl-result-actions .button,
.ow-sl-result-actions .button-primary {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    text-decoration: none;
}

.ow-sl-confirm-btn:hover,
.ow-sl-result-actions .button:hover,
.ow-sl-result-actions .button-primary:hover {
    background-color: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
}

.ow-sl-confirm-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.ow-sl-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Inline result area ---- */
.ow-sl-switch-result {
    margin-top: 20px;
    border-top: 1px solid #e8d98a;
    padding-top: 16px;
}

.ow-sl-result-heading {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #2e6b2e;
}

.ow-sl-result-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.ow-sl-result-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f0ebd0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ow-sl-result-item:last-child {
    border-bottom: none;
}

.ow-sl-result-icon {
    flex-shrink: 0;
    font-weight: 700;
    width: 18px;
    text-align: center;
}

.ow-sl-result-item--ok .ow-sl-result-icon   { color: #2e6b2e; }
.ow-sl-result-item--warn .ow-sl-result-icon  { color: #a05c00; }

.ow-sl-result-label {
    font-weight: 600;
    white-space: nowrap;
}

.ow-sl-result-item--warn em {
    color: #a05c00;
    font-style: normal;
}

.ow-sl-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ow-sl-result-error {
    color: #c00;
    font-weight: 600;
    padding: 8px 0;
}

.ow-sl-details-col--hours {
    grid-column: 1 / -1; /* spans full width below the two contact columns */
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.ow-sl-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}

.ow-sl-hours-table td {
    padding: 3px 10px 3px 0;
    vertical-align: top;
    color: #333;
}

.ow-sl-hours-day {
    font-weight: 600;
    width: 110px;
}

.ow-sl-hours-closed {
    color: #999;
    font-style: italic;
}

/* ---- Admin order list ---- */
.column-ow_sl_location {
    width: 120px;
}

/* ---- Frontend order details ---- */
.ow-sl-location-details {
    margin-top: 30px;
    width: 100%;
}

.ow-sl-location-name {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #111;
}

.ow-sl-details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    width: 100%;
}

@media ( max-width: 600px ) {
    .ow-sl-details-columns {
        grid-template-columns: 1fr;
    }
}

.ow-sl-details-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ow-sl-detail-row {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}
p.ow-sl-detail-row{
    margin-bottom:0!important;
}

.ow-sl-detail-label {
    font-weight: 600;
    margin-right: 4px;
}

/* ---- Checkout: location + booking combined section ---- */
.ow-sl-checkout-location-and-booking {
    margin-bottom: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000;
    border-radius: 4px;
    padding: 16px 20px;
}

.ow-sl-checkout-location-and-booking .ow-sl-location-details {
    margin-top: 0;
    background: transparent;
    border: none;
    border-left: none;
    padding: 0;
}

.ow-sl-checkout-location-and-booking .woocommerce-column__title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.ow-sl-checkout-location-and-booking address {
    font-style: normal;
    line-height: 1.6;
    color: #333;
}

/* ---- Checkout: location summary above Billing Details (legacy) ---- */
.ow-sl-checkout-location-summary {
    margin-bottom: 30px;
}

.ow-sl-checkout-location-summary .ow-sl-location-details {
    margin-top: 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000;
    border-radius: 4px;
    padding: 16px 20px;
}

.ow-sl-checkout-location-summary .woocommerce-column__title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.ow-sl-checkout-location-summary address {
    font-style: normal;
    line-height: 1.6;
    color: #333;
}
