/* WC Area Shipping - Checkout Styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

.wcas-area-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.wcas-area-wrapper h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcas-area-wrapper h3::before {
    content: '📍';
    font-size: 18px;
}

/* Select styling */
#wcas_area_id {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
}

#wcas_area_id:focus {
    outline: none;
    border-color: #7b4ff0;
    box-shadow: 0 0 0 3px rgba(123, 79, 240, 0.15);
}

#wcas_area_id:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Delivery info card */
.wcas-delivery-info {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #d4e8d0;
    border-radius: 6px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.wcas-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcas-info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: .5px;
    font-weight: 600;
}

.wcas-info-value {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.wcas-info-value.wcas-price {
    color: #7b4ff0;
}

/* Loading skeleton */
.wcas-loading {
    display: inline-block;
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wcasSkeleton 1.2s infinite;
    border-radius: 6px;
}

@keyframes wcasSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* RTL adjustments */
body.rtl .wcas-area-wrapper,
html[dir="rtl"] .wcas-area-wrapper {
    text-align: right;
}

html[dir="rtl"] #wcas_area_id {
    background-position: right 14px center;
    padding-right: 14px;
    padding-left: 40px;
}
