.domain-input.form-control, 
.domain-input[type="text"], 
.domain-input[type="email"], 
.domain-input[type="password"], 
.domain-input {
    border: unset !important;
}

#order-standard_cart .secondary-cart-sidebar {
    float: none !important;
    width: 100% !important;
}

#order-standard_cart select,
#order-standard_cart select option,
#order-standard_cart .form-control,
#order-standard_cart input,
#order-standard_cart textarea {
    color: #1e293b !important; /* text-slate-800 */
    background-color: #f8fafc !important; /* bg-slate-50 */
}

#order-standard_cart option {
    color: #1e293b !important;
    background-color: #ffffff !important;
}

    #order-standard_cart .cart-body {
        float: none !important;
        width: 100% !important;
    }
    
    #order-standard_cart .w-hidden {
        display: none;
    }
    
    #order-standard_cart select,
    #order-standard_cart select option,
    #order-standard_cart .form-control,
    #order-standard_cart input,
    #order-standard_cart textarea {
        color: #1e293b !important; /* text-slate-800 */
        background-color: #f8fafc !important; /* bg-slate-50 */
    }
    #order-standard_cart option {
        color: #1e293b !important;
        background-color: #ffffff !important;
    }

    #order-standard_cart .prepend-icon {
        position: relative !important;
    }
    #order-standard_cart .prepend-icon .field-icon {
        display: none !important;
    }
    #order-standard_cart .prepend-icon input,
    #order-standard_cart .prepend-icon select {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #order-standard_cart .progress {
        height: 6px;
        background-color: #f1f5f9;
        border-radius: 9999px;
        overflow: hidden;
        margin-top: 8px;
    }
    #order-standard_cart .progress-bar {
        height: 100%;
        transition: width 0.4s ease;
    }
    #order-standard_cart .progress-bar-danger, #order-standard_cart .progress-bar-error { background-color: #ef4444; }
    #order-standard_cart .progress-bar-warning { background-color: #f59e0b; }
    #order-standard_cart .progress-bar-success { background-color: #10b981; }

    /* =======================================================
   REESTILIZAÇÃO GLOBAL DO TEMA WHMCS (BOOTSTRAP & UTILITIES)
   ======================================================= */

/* --- 1. MODAIS GLOBAIS (Para todo o sistema) --- */

.modal-backdrop {
    background-color: #0f172a !important; /* Slate 900 */
}
.modal-backdrop.in, .modal-backdrop.show {
    opacity: 0.6 !important;
    backdrop-filter: blur(4px) !important;
}
.modal-dialog {
    margin: 30px auto !important;
}
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}
.modal-header {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.modal-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: white !important;
}
.modal-header .close {
    margin-top: 0 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
}
.modal-header .close:hover {
    color: #475569 !important;
}
.modal-body {
    padding: 1.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
}
.modal-footer {
    padding: 1rem 1.5rem !important;
    background-color: #f8fafc !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: flex-end !important;
}


/* --- 2. BOTÕES GLOBAIS --- */

.btn-primary {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}
.btn-success {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: #047857 !important;
}
.btn-warning {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #78350f !important;
}
.btn-warning:hover {
    background-color: #d97706 !important;
}
.btn-danger {
    background-color: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}
.btn-danger:hover {
    background-color: #be123c !important;
}
.btn-info {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
.btn-info:hover {
    background-color: #0369a1 !important;
}


/* --- 3. UTILITÁRIOS DE TEXTO (text-) --- */

.text-primary { color: #4f46e5 !important; }
.text-success { color: #059669 !important; }
.text-warning { color: #d97706 !important; }
.text-danger  { color: #e11d48 !important; }
.text-info    { color: #0284c7 !important; }
.text-muted   { color: #64748b !important; }


/* --- 4. UTILITÁRIOS DE FUNDO (bg-) --- */

.bg-primary {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}
.bg-success {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
}
.bg-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
}
.bg-danger {
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
}
.bg-info {
    background-color: #eff6ff !important;
    color: #1e3a8a !important;
}

/* --- 5. ALERTAS GLOBAIS --- */

.alert-success {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
    border-radius: 0.5rem !important;
}
.alert-danger {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #9f1239 !important;
    border-radius: 0.5rem !important;
}
.alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e3a8a !important;
    border-radius: 0.5rem !important;
}
.alert-warning {
    background-color: #fffbeb !important;
    border-color: #fef3c7 !important;
    color: #92400e !important;
    border-radius: 0.5rem !important;
}


/* --- 6. CORREÇÃO DE CAMPOS DE SELEÇÃO E INPUTS --- */

select, .form-control, input[type="text"], input[type="password"], input[type="email"], textarea {
    color: #1e293b !important; /* Força texto escuro legível em qualquer lugar */
    background-color: #f8fafc !important;
}
select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
}

/* =======================================================
   ESTILIZAÇÃO DA SIDEBAR / MENUS DE CATEGORIAS E AÇÕES
   ======================================================= */

/* Caixa principal do bloco da Sidebar */
#order-standard_cart .card-sidebar {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important; /* Slate 200 */
    border-radius: 1rem !important; /* Cantos arredondados idênticos ao checkout */
    overflow: hidden !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 1.25rem !important;
}

/* Cabeçalho do Bloco (Categories / Actions) */
#order-standard_cart .card-sidebar .card-header {
    background-color: #ffffff !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #f1f5f9 !important; /* Slate 100 */
}

/* Título interno do cabeçalho */
#order-standard_cart .card-sidebar .panel-title {
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 800 !important;
    text-transform: uppercase !important; /* Caixa alta para títulos estruturais */
    letter-spacing: 0.05em !important;
    color: #0f172a !important; /* Slate 900 */
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Ícone principal ao lado do título */
#order-standard_cart .card-sidebar .panel-title i:not(.card-minimise) {
    color: #64748b !important; /* Slate 500 */
    margin-right: 0.25rem !important;
}

/* Ícone de minimizar (Seta para cima/baixo) */
#order-standard_cart .card-sidebar .card-minimise {
    font-size: 0.75rem !important;
    color: #94a3b8 !important; /* Slate 400 */
    transition: color 0.15s ease !important;
}

/* Corpo que contém os links */
#order-standard_cart .card-sidebar .list-group {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.5rem !important; /* Afasta os links sutilmente das bordas da caixa */
    display: flex !important;
    flex-direction: column !important; /* Corrige a linha forçada pelo WHMCS inline */
}

/* Links da lista (Itens normais) */
#order-standard_cart .card-sidebar .list-group-item {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0.75rem !important; /* Deixa os botões internos arredondados */
    padding: 0.625rem 0.875rem !important;
    font-size: 0.8125rem !important; /* text-[13px] */
    font-weight: 600 !important;
    color: #475569 !important; /* Slate 600 */
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

/* Remove a margem do último item da lista */
#order-standard_cart .card-sidebar .list-group-item:last-child {
    margin-bottom: 0 !important;
}

/* Efeito de Hover nos links desativados */
#order-standard_cart .card-sidebar .list-group-item:not(.active):hover {
    background-color: #f8fafc !important; /* Slate 50 */
    color: #0f172a !important; /* Slate 900 */
    padding-left: 1.125rem !important; /* Efeito sutil de recuo para a direita */
}

/* Item Ativo / Selecionado (Ex: View Cart ativo) */
#order-standard_cart .card-sidebar .list-group-item.active {
    background-color: #e0e7ff !important; /* Indigo 100 suave */
    color: #4f46e5 !important; /* Indigo 600 */
    font-weight: 700 !important;
}

/* Ícones dentro dos links */
#order-standard_cart .card-sidebar .list-group-item i {
    color: #94a3b8 !important; /* Slate 400 */
    font-size: 0.875rem !important;
    transition: color 0.15s ease !important;
}
#order-standard_cart .card-sidebar .list-group-item:not(.active):hover i {
    color: #475569 !important;
}
#order-standard_cart .card-sidebar .list-group-item.active i {
    color: #4f46e5 !important; /* Ícone herda o Indigo no item ativo */
}