:root {
    --primary-gradient: linear-gradient(135deg, #FFD700, #FFA500);
    --card-bg: rgba(30, 30, 36, 0.8);
    --border-color: rgba(255, 165, 0, 0.3);
    --success-color: #28a745;
}

.result-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 900px;
}

.page-title {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
}

.order-summary {
    background: rgba(40, 40, 48, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(50, 50, 60, 0.3);
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-icon {
    width: 30px;
    color: #FFA500;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.info-card {
    background: rgba(40, 40, 48, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.info-header {
    display: flex;
    align-items: center;
    color: #FFA500;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.provider-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
}

.provider-table th {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 215, 0, 0.2));
    color: #FFA500;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.provider-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.provider-table tr:last-child td {
    border-bottom: none;
}

.provider-table tr:hover {
    background: rgba(255, 165, 0, 0.05);
    transition: background 0.3s ease;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #FFA500;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

input[type="radio"] {
    display: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFA500;
    color: #FFA500;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn-outline:hover {
    background: #FFA500;
    color: #000;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-results-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #adb5bd;
}

/* Responsividade */
@media (max-width: 768px) {
    .result-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .provider-table {
        display: block;
        overflow-x: auto;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .summary-icon {
        margin-right: 0;
    }
}

/* =============================
   Ajustes móveis baseados no seu CSS "perfeito"
   ============================= */

/* Pequenas telas (até 480px) — cobre 375px com folga */
@media (max-width: 480px) {
    .result-container {
        padding: 1rem;
        margin: 0.6rem;
        max-width: 100%;
        border-radius: 12px;
    }

    .page-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .order-summary {
        padding: 1rem;
        font-size: 0.92rem;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.6rem;
        background: rgba(50, 50, 60, 0.35);
    }

    .summary-icon {
        margin-right: 0;
        font-size: 1rem;
    }

    .info-card {
        padding: 0.95rem;
        font-size: 0.9rem;
    }

    /* ---- transformar a tabela em "cards" ---- */
    .provider-table {
        display: block;
        width: 100%;
        overflow: visible;
    }

    .provider-table thead {
        display: none; /* oculta cabeçalho da tabela no mobile */
    }

    .provider-table tbody {
        display: block;
        padding: 0;
        margin: 0;
    }

    .provider-table tbody tr {
        display: block;
        background: rgba(40, 40, 48, 0.45);
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border-radius: 10px;
        border: 1px solid var(--border-color);
    }

    .provider-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0;
        border: none;
        white-space: nowrap; /* evita quebra estranha */
        gap: 0.6rem;
    }

    /* Faz o primeiro td (transportador + promo) ficar em coluna para textos longos */
    .provider-table td:nth-child(1) {
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
    }

    .provider-table td:nth-child(1)::before {
        content: "Transportador";
        font-weight: 600;
        color: #FFA500;
        margin-bottom: 0.35rem;
        font-size: 0.85rem;
    }

    .provider-table td:nth-child(2)::before {
        content: "Valor original";
        font-weight: 600;
        color: #FFA500;
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }

    .provider-table td:nth-child(3)::before {
        content: "Valor com Promoção";
        font-weight: 600;
        color: #FFA500;
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }

    .provider-table td:nth-child(4)::before {
        content: "Selecionar";
        font-weight: 600;
        color: #FFA500;
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }

    /* Permite que textos dentro do primeiro td quebrem e ocupem múltiplas linhas */
    .provider-table td:nth-child(1) .text-success,
    .provider-table td:nth-child(1) .text-danger,
    .provider-table td:nth-child(1) small {
        display: block;
        white-space: normal;
        font-size: 0.82rem;
        line-height: 1.1;
    }

    /* Ajustes dos valores alinhados à direita */
    .provider-table td:nth-child(2),
    .provider-table td:nth-child(3) {
        min-width: 90px;
        justify-content: flex-end;
    }

    /* Radio — aumenta um pouco o clique e aparência */
    .radio-custom {
        width: 26px;
        height: 26px;
        border-width: 2px;
    }
    .radio-custom::after {
        width: 12px;
        height: 12px;
    }
    input[type="radio"] { display: none; } /* mantém a lógica existente */

    /* Botões em coluna, ocupando toda largura */
    .btn-group {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 0.72rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* No-results */
    .no-results {
        padding: 2rem 1rem;
    }
    .no-results-text {
        font-size: 1rem;
        color: #adb5bd;
    }
}

/* Ajustes finos para telas muito pequenas (<=375px) */
@media (max-width: 375px) {
    .page-title { font-size: 1.45rem; }
    .provider-table td { padding: 0.35rem 0; font-size: 0.86rem; }
    .provider-table td:nth-child(2), .provider-table td:nth-child(3) { min-width: 70px; }
    .summary-item { padding: 0.5rem; }
}

