/**
 * Same Day Delivery Checkout Styles
 *
 * @package Matat_Pandora
 */

/* Inline Label with Highlight */
.same-day-delivery-wrap .same-day-inline-label {
    display: inline;
}

.same-day-delivery-wrap .same-day-highlight {
    background-color: #FF93A0;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin: 0 2px;
}

/* City Inline Selector */
.same-day-delivery-wrap .same-day-city-inline {
	margin-top: 10px;
	padding: 10px;
	background: linear-gradient(135deg, #fff9fa 0%, #fff 100%);
	border: 1px solid #FF93A0;
	border-radius: 6px;
	z-index: 9;
	position: relative;
}

.same-day-delivery-wrap .same-day-city-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

/* Autocomplete Wrapper */
.same-day-delivery-wrap .same-day-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.same-day-delivery-wrap .same-day-city-autocomplete {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbcbcb;
    border-radius: 3px;
    font-size: 14px;
    background: #fff;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
}

.same-day-delivery-wrap .same-day-city-autocomplete:focus {
    border-color: #FF93A0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 147, 160, 0.2);
}

.same-day-delivery-wrap .same-day-city-autocomplete::placeholder {
    color: #999;
}

/* Autocomplete Dropdown List */
.same-day-delivery-wrap .same-day-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbcbcb;
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.same-day-delivery-wrap .same-day-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.same-day-delivery-wrap .same-day-autocomplete-item:last-child {
    border-bottom: none;
}

.same-day-delivery-wrap .same-day-autocomplete-item:hover,
.same-day-delivery-wrap .same-day-autocomplete-item.active {
    background-color: #fff9fa;
}

.same-day-delivery-wrap .same-day-autocomplete-item.active {
    background-color: #ffeef0;
}

.same-day-delivery-wrap .same-day-autocomplete-item strong {
    color: #FF93A0;
    font-weight: 600;
}

.same-day-delivery-wrap .same-day-no-results {
    color: #999;
    cursor: default;
    font-style: italic;
}

.same-day-delivery-wrap .same-day-no-results:hover {
    background-color: #fff;
}

/* Validation Error Styles */
.same-day-delivery-wrap .same-day-city-autocomplete.has-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.same-day-delivery-wrap .same-day-validation-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    text-align: right;
}

/* Readonly billing city styling when populated from same-day delivery */
#billing_city.field-readonly,
#shipping_city.field-readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Price Display */
.same-day-delivery-wrap .chck-ship-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .same-day-delivery-wrap .same-day-autocomplete-list {
        max-height: 150px;
    }

    .same-day-delivery-wrap .same-day-city-autocomplete,
    .same-day-delivery-wrap .same-day-autocomplete-item {
        font-size: 13px;
        padding: 8px 10px;
    }
}

.checkout-shipping-single:has(.shipping_method:checked) .pickup-location-selector {
	display: flex !important;
}
.woocommerce-checkout .checkout-main input[type=checkbox] {
	display: inline-block;
}
