/* =========================================================
   WHMCS Standard Cart Modern Color Overrides
   ========================================================= */

/* 1. Primary Buttons & Elements (The New Blue: rgb(37, 99, 235)) */
#order-standard_cart .btn-primary,
#order-standard_cart .btn-info {
    background-color: rgb(37, 99, 235) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-primary:active,
#order-standard_cart .btn-primary.active,
#order-standard_cart .btn-info:hover,
#order-standard_cart .btn-info:focus,
#order-standard_cart .btn-info:active {
    background-color: rgb(29, 78, 216) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Primary Backgrounds (Sub-headings, Badges, Panels) */
#order-standard_cart .primary-bg-color,
#order-standard_cart .badge,
#order-standard_cart .panel-primary > .panel-heading {
    background-color: rgb(37, 99, 235) !important;
    color: #ffffff !important;
}

/* Primary Text (Links, Icons, Pricing) */
#order-standard_cart .text-primary,
#order-standard_cart a {
    color: rgb(37, 99, 235) !important;
}
#order-standard_cart a:hover {
    color: rgb(29, 78, 216) !important;
}


/* 2. Success Buttons & Elements (The New Green: rgb(16, 185, 129)) */
#order-standard_cart .btn-success {
    background-color: rgb(16, 185, 129) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-success:focus,
#order-standard_cart .btn-success:active,
#order-standard_cart .btn-success.active {
    background-color: rgb(10, 150, 105) !important; /* Slightly darker emerald for hover */
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Success Backgrounds (Labels, Panels) */
#order-standard_cart .label-success,
#order-standard_cart .panel-success > .panel-heading {
    background-color: rgb(16, 185, 129) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Success Text (Icons, Checkmarks, Active states) */
#order-standard_cart .text-success,
#order-standard_cart .fa-check-circle {
    color: rgb(16, 185, 129) !important;
}

/* Success Alerts (Making the green alerts match the new palette) */
#order-standard_cart .alert-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: rgb(6, 95, 70) !important; /* Dark green text for readability */
}


/* 3. Miscellaneous Fixes */
/* Ensure the active category in the sidebar uses the new blue */
#order-standard_cart .list-group-item.active, 
#order-standard_cart .list-group-item.active:hover, 
#order-standard_cart .list-group-item.active:focus {
    background-color: rgb(37, 99, 235) !important;
    border-color: transparent !important;
}

/* Remove border radius if you want a sharper, flatter modern look (Optional) */
#order-standard_cart .btn {
    border-radius: 4px !important;
}