/* Global styles for CartCargoSelector */

.cargo-wrapper {
    --c-bg: #f8fafc;
    --c-card: #ffffff;
    --c-border: #e2e8f0;
    --c-text: #0f172a;
    --c-muted: #64748b;
    --c-primary: #16a34a;
    --c-primary-ink: #166534;
    margin-top: .75rem;
    padding: .75rem .9rem;
    background-color: var(--c-bg);
    border-radius: 14px;
    border: 1px solid var(--c-border);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variant: compact inside seller footer - REMOVED/UPDATED */

/* Premium Cargo Selection Styles */

.cargo-selection-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Full Width Cargo List */
.cargo-list-full {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Right Side: List */
.cargo-list-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cargo-radio-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.625rem;
    align-items: center;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
}

.cargo-radio-item:hover {
    background: #f8fafc;
}

.cargo-radio-item.selected {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
}

.cargo-radio-item.selected .radio-circle {
    border-color: #f59e0b;
    background: #fff;
}

.radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fff;
}

.cargo-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cargo-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.3;
}

.cargo-delivery {
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
}

.cargo-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

/* Cargo Detail Button */
.cargo-detail-btn {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.cargo-detail-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.cargo-detail-btn i {
    font-size: 0.875rem;
}

/* Empty State */
.cargo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .cargo-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cargo-progress-section {
        padding-top: 0;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .cargo-selection-container {
        padding: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .cargo-radio-item {
        padding: 0.6rem 0.75rem;
        gap: 0.75rem;
    }

    .cargo-name {
        font-size: 0.85rem;
    }

    .cargo-price {
        font-size: 0.9rem;
    }
}

.dropdown-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);

    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}