/* =============================================
   CP Design System — Order Form Overrides
   Loaded after vdc.css via common.tpl assetExists
   ============================================= */

/* --- CP Gradient Variable (matches client area) --- */
#order-standard_cart {
    --cp-gradient: linear-gradient(135deg, #4a3d6b 0%, #7b5ea0 20%, #c76b8a 45%, #de3580 65%, #a87fb5 85%, #7c93a8 100%);
}

/* --- Page Heading --- */
#order-standard_cart .header-lined h1 {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
}

#order-standard_cart .header-lined {
    border-bottom-color: #eee;
    margin-bottom: 20px;
}

/* --- Collapsed Sidebar Panels (Services & Solutions, Actions) --- */
#order-standard_cart .sidebar-collapsed .panel.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

#order-standard_cart .sidebar-collapsed .panel.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#order-standard_cart .sidebar-collapsed .panel-heading.card-header {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #2c3e50 !important;
    border-top: 3px solid #de3580 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
    padding: 12px 20px !important;
}

#order-standard_cart .sidebar-collapsed .panel-heading .panel-title {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50 !important;
    margin: 0;
}

#order-standard_cart .sidebar-collapsed .panel-heading .panel-title i {
    color: #de3580;
}

#order-standard_cart .sidebar-collapsed .panel-body.card-body {
    padding: 14px 20px;
    background: #fff;
}

/* Select dropdowns in collapsed sidebar */
#order-standard_cart .sidebar-collapsed .panel-body .form-control,
#order-standard_cart .sidebar-collapsed .panel-body .custom-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3e50;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .sidebar-collapsed .panel-body .form-control:focus,
#order-standard_cart .sidebar-collapsed .panel-body .custom-select:focus {
    border-color: #de3580;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.12);
    outline: none;
}

/* --- Empty State (No Addons) --- */
#order-standard_cart #noAddons.alert-warning {
    background: #fdf2f7;
    border: 1px solid #f5d0e0;
    color: #6b3a5a;
    border-radius: 8px;
    padding: 24px;
    font-size: 14px;
    text-align: center;
}

/* --- Buttons: Pink with Shimmer --- */
#order-standard_cart .btn-default,
#order-standard_cart .btn-default:focus {
    background: #fff;
    border: 1px solid #de3580;
    color: #de3580;
    border-radius: 6px;
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .btn-default:hover {
    background: #de3580;
    color: #fff;
    border-color: #de3580;
    box-shadow: 0 4px 16px rgba(222, 53, 128, 0.25);
}

#order-standard_cart .btn-success,
#order-standard_cart .btn-success:focus {
    background: #de3580;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

#order-standard_cart .btn-success::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transition: none;
}

#order-standard_cart .btn-success:hover {
    background: #de3580;
    box-shadow: 0 6px 20px rgba(222, 53, 128, 0.3);
    color: #fff;
}

#order-standard_cart .btn-success:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* --- Product Addon Cards --- */
#order-standard_cart .product {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    margin-bottom: 20px;
}

#order-standard_cart .product:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#order-standard_cart .product header {
    background: var(--cp-gradient) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border-bottom: none;
}

#order-standard_cart .product header span {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
}

#order-standard_cart .product .product-desc {
    padding: 16px 20px;
    font-size: 14px;
    color: #555;
}

#order-standard_cart .product .product-desc .form-control,
#order-standard_cart .product .product-desc .field {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .product .product-desc .form-control:focus,
#order-standard_cart .product .product-desc .field:focus {
    border-color: #de3580;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.12);
    outline: none;
}

#order-standard_cart .product footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 14px 20px !important;
}

#order-standard_cart .product .product-pricing .price {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #2c3e50;
}

/* --- Full Sidebar (desktop) — same gradient treatment --- */
#order-standard_cart .cart-sidebar .panel.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 16px;
}

#order-standard_cart .cart-sidebar .panel-heading.card-header {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #2c3e50 !important;
    border-top: 3px solid #de3580 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
    padding: 12px 20px !important;
}

#order-standard_cart .cart-sidebar .panel-heading .panel-title {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50 !important;
}

#order-standard_cart .cart-sidebar .panel-heading .panel-title i {
    color: #de3580;
}

#order-standard_cart .cart-sidebar .list-group-item {
    border-left: none;
    border-right: none;
    padding: 10px 20px;
    font-size: 13px;
    color: #2c3e50;
    transition: background 0.15s ease, color 0.15s ease;
}

#order-standard_cart .cart-sidebar .list-group-item:first-child {
    border-top: none;
}

#order-standard_cart .cart-sidebar .list-group-item:last-child {
    border-bottom: none;
}

#order-standard_cart .cart-sidebar .list-group-item:hover {
    background: #fdf2f7;
    color: #de3580;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item[selected] {
    background: linear-gradient(135deg, #de3580 0%, #bf6bb4 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* --- Domain Renewal Cards --- */
#order-standard_cart .domain-renewal {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin-bottom: 16px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

#order-standard_cart .domain-renewal:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#order-standard_cart .domain-renewal h3 {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px;
}

#order-standard_cart .domain-renewal p {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

/* Status labels */
#order-standard_cart .domain-renewal .label {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#order-standard_cart .domain-renewal .label-success {
    background: #d4edda;
    color: #155724;
}

#order-standard_cart .domain-renewal .label-warning {
    background: #fff3cd;
    color: #856404;
}

#order-standard_cart .domain-renewal .label-danger {
    background: #f8d7da;
    color: #721c24;
}

#order-standard_cart .domain-renewal .label-info {
    background: #e0e0e0;
    color: #616161;
}

#order-standard_cart .domain-renewal .label-grey {
    background: #e0e0e0;
    color: #616161;
}

/* Renewal period dropdown */
#order-standard_cart .domain-renewal .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3e50;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .domain-renewal .form-control:focus {
    border-color: #de3580;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.12);
    outline: none;
}

/* Add to cart button */
#order-standard_cart .domain-renewal .btn-add-renewal-to-cart {
    background: #de3580;
    border-color: #de3580;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

#order-standard_cart .domain-renewal .btn-add-renewal-to-cart::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transition: none;
}

#order-standard_cart .domain-renewal .btn-add-renewal-to-cart:hover {
    background: #de3580;
    box-shadow: 0 6px 20px rgba(222, 53, 128, 0.3);
    color: #fff;
}

#order-standard_cart .domain-renewal .btn-add-renewal-to-cart:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* Search filter */
#order-standard_cart .domain-renewals-filter {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#order-standard_cart .domain-renewals-filter:focus {
    border-color: #de3580;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.12);
}

/* Order summary sidebar */
#order-standard_cart .order-summary {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    background: #fff;
}

#order-standard_cart .order-summary h2 {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

/* View Cart button */
#order-standard_cart #btnGoToCart {
    background: #de3580;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

#order-standard_cart #btnGoToCart::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transition: none;
}

#order-standard_cart #btnGoToCart:hover {
    background: #de3580;
    box-shadow: 0 6px 20px rgba(222, 53, 128, 0.3);
    color: #fff;
}

#order-standard_cart #btnGoToCart:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}

/* Empty state */
#order-standard_cart #no-domains {
    background: #fdf2f7;
    border: 1px solid #f5d0e0;
    border-left: 4px solid #de3580;
    color: #6b3a5a;
    border-radius: 8px;
    padding: 24px;
}
