/* ============================================================
   CI WooCommerce Shipping — Styles
   ============================================================ */

.ci-shipping-selector {
    background: #fff;
    border: 2px solid #f0a500;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.ci-shipping-selector h3 {
    margin: 0 0 18px;
    font-size: 1.1rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Tabs radio --- */
.ci-shipping-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ci-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: #f9f9f9;
    color: #444;
    transition: all 0.2s ease;
    user-select: none;
}

.ci-tab input[type="radio"] {
    accent-color: #f0a500;
    width: 16px;
    height: 16px;
}

.ci-tab:hover {
    border-color: #f0a500;
    background: #fff8e6;
    color: #333;
}

.ci-tab.active {
    border-color: #f0a500;
    background: linear-gradient(135deg, #fff8e6, #ffefc0);
    color: #b37800;
    box-shadow: 0 2px 8px rgba(240,165,0,0.2);
}

/* --- Zone selects --- */
.ci-zone-group {
    animation: fadeIn 0.25s ease;
}

.ci-zone-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.ci-select {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.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='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ci-select:focus {
    outline: none;
    border-color: #f0a500;
    box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
}

/* --- Feedback message --- */
.ci-shipping-feedback {
    margin-top: 14px;
    font-size: 0.9rem;
    min-height: 24px;
}

.ci-shipping-feedback.success {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ci-shipping-feedback.success::before {
    content: '✔';
    font-weight: bold;
}

.ci-shipping-feedback.loading {
    color: #888;
}

.ci-shipping-feedback.error {
    color: #c62828;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .ci-shipping-tabs {
        flex-direction: column;
    }
    .ci-select {
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
