/* CloudPropeller custom styles */

/* Scale entire page to match 125% browser zoom */
body {
    zoom: 1.1;
}

/* Bigger logo in header */
header.header .logo-img {
    max-height: 80px;
    max-width: 500px;
}

/* Primary button - branded pink with shimmer hover */
.btn-primary {
    background: #de3580;
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.btn-primary::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;
}
.btn-primary:hover {
    background: #de3580;
    border: none;
    box-shadow: 0 6px 20px rgba(222, 53, 128, 0.3);
    color: #fff;
}
.btn-primary:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}
.btn-primary:focus,
.btn-primary:active {
    background: #de3580;
    border: none;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.3);
    color: #fff;
}

/* Configure product page */
.cp-config-card {
    background: #fff;
    border: 1px solid #e8e8e8 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 20px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.cp-config-message {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0 0 5px 0;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #bf6bb4;
}
.cp-config-card .product-info {
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #444 !important;
}
.cp-config-card .product-info .product-title {
    font-size: 1.35em !important;
    font-weight: 700 !important;
    color: #2c3e50;
    margin: 0 0 12px 0 !important;
}
.cp-config-card .vdc-description p {
    margin: 0 0 10px 0;
}
/* Show only first 3 paragraphs, hide callouts/highlights */
.vdc-description-config > p:nth-of-type(n+4) {
    display: none;
}
.vdc-description-config > div {
    display: none;
}

/* Config page section cards (Billing Cycle, Configurable Options) */
.cp-config-section {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}
.cp-config-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.cp-config-section-header {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.cp-config-section-body {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 20px 28px;
}
.cp-config-section-body .form-group label {
    font-weight: 600;
    color: #2c3e50;
}
.cp-config-section-body .product-configurable-options {
    margin: 0;
    padding: 0;
}
.cp-config-required-note {
    font-size: 13px;
    color: #888;
    margin: 0 0 16px 0;
}

/* Help banner (replaces yellow alert) */
.cp-help-banner {
    text-align: center;
    padding: 20px 0 0;
    margin-bottom: 10px;
}
.cp-help-text {
    font-size: 14px;
    color: #888;
    margin: 0 0 14px 0;
    letter-spacing: 0.2px;
}
.cp-help-actions {
    display: flex;
    gap: 16px;
}
.cp-help-btn {
    flex: 1;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600;
    color: #2c3e50 !important;
    background: transparent !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.cp-help-btn:hover {
    color: #de3580 !important;
    border-color: #de3580 !important;
    box-shadow: 0 4px 16px rgba(222, 53, 128, 0.12);
    text-decoration: none;
}
.cp-help-btn:active,
.cp-help-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(222, 53, 128, 0.15);
}
.cp-help-btn .fas {
    color: #bf6bb4;
    transition: color 0.2s ease;
}
.cp-help-btn:hover .fas {
    color: #de3580;
}

/* Cart items header (Product/Options - Price/Cycle bar) */
.view-cart-items-header {
    background: linear-gradient(135deg, #de3580 0%, #bf6bb4 40%, #bfd6f1 100%) !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 14px 28px !important;
    margin-bottom: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

/* Promo/Tax tabs - bigger text and fix active state */
.nav-tabs .nav-link {
    font-size: 16px;
}
.nav-tabs .nav-item.active .nav-link:not(.active) {
    background: transparent !important;
    border-color: transparent !important;
    border-bottom-color: #dee2e6 !important;
    color: #555 !important;
}
.nav-tabs .nav-item.active .nav-link:not(.active):hover {
    border-color: #e9ecef #e9ecef #dee2e6 !important;
    color: #333 !important;
}

/* Empty cart area - white card to match filled cart look */
#order-standard_cart .view-cart-items,
.view-cart-items {
    background: #fff;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0;
    min-height: 60px;
    margin: 0 !important;
}
/* Cart card wrapper - shadow + hover */
.cp-cart-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
    margin-bottom: 30px;
}
.cp-cart-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.cp-cart-card .empty-cart {
    margin: 0 !important;
    padding: 6px 16px 8px;
    text-align: right;
    background: #fff;
}
.view-cart-empty {
    padding: 20px 28px;
    color: #999;
}

/* Center checkout button area */
.btn-checkout, .btn-continue-shopping {
    float: none !important;
}
#checkout {
    display: inline-block;
}
#checkout, #continueShopping {
    float: none !important;
}
.text-right:has(#checkout) {
    text-align: center !important;
}

/* Checkout button - shimmer + icon swap */
.btn-checkout {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.btn-checkout::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;
}
.btn-checkout:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}
.btn-checkout:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}
.btn-checkout .fa-arrow-right {
    display: inline-block;
    width: 1em;
    text-align: center;
}
.btn-checkout .fa-arrow-right::before {
    transition: none;
}
.btn-checkout:hover .fa-arrow-right::before {
    content: "\f058";
    font-family: "Font Awesome 5 Pro";
}

/* Order summary box */
.order-summary {
    background-color: #2c3e50 !important;
    border-bottom-color: #2c3e50 !important;
}
.order-summary {
    border-radius: 8px !important;
    overflow: hidden;
}
.order-summary .summary-container {
    border-radius: 0 !important;
}
.order-summary h2 {
    font-size: 20px !important;
    padding: 17px 28px !important;
    margin: 0 !important;
}

/* Replace cart icon with cloud in sidebar */
.panel-sidebar .panel-title .fa-shopping-cart::before {
    content: "\f0c2";
    font-family: "Font Awesome 5 Pro";
}

/* Replace plus icon with cogs for Actions sidebar */
.panel-sidebar .panel-title .fa-plus::before {
    content: "\f085";
    font-family: "Font Awesome 5 Pro";
}

/* ---- Collapsible sidebar (global) ---- */

/* Prevent flash: hide sidebar before JS runs */
.cp-sidebar-start-collapsed .cp-sidebar-col,
.cp-sidebar-start-collapsed .cart-sidebar,
.cp-sidebar-start-collapsed .sidebar-collapsed {
    display: none !important;
}

/* Theme sidebar (client area pages) - desktop */
@media (min-width: 992px) {
    #main-body > .container > .row {
        flex-wrap: nowrap !important;
        overflow: hidden;
    }
    .cp-sidebar-col {
        flex-shrink: 0;
        min-width: 0;
        transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }
    .cp-sidebar-col.collapsed {
        margin-left: -33.3334% !important;
        opacity: 0;
        pointer-events: none;
    }
    .primary-content {
        transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .cp-sidebar-col.collapsed ~ .primary-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
@media (min-width: 1200px) {
    .cp-sidebar-col.collapsed {
        margin-left: -25% !important;
    }
}
/* Theme sidebar - mobile */
@media (max-width: 991px) {
    .cp-sidebar-col {
        transition: max-height 0.4s ease, opacity 0.3s ease;
        overflow: hidden;
    }
    .cp-sidebar-col.collapsed {
        max-height: 0 !important;
        opacity: 0;
        pointer-events: none;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Cart/order form sidebar - desktop */
@media (min-width: 768px) {
    .cp-cart-page > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden;
    }
    .cp-cart-page > .row > .cart-sidebar {
        flex-shrink: 0;
        min-width: 0;
        transition: margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }
    .cp-cart-page > .row > .cart-sidebar.collapsed {
        margin-left: -25% !important;
        opacity: 0;
        pointer-events: none;
    }
    .cp-cart-page > .row > .cart-body {
        flex: 1 1 auto !important;
        min-width: 0;
        transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .cp-cart-page > .row > .cart-sidebar.collapsed + .cart-body {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
/* Cart sidebar - mobile */
@media (max-width: 767px) {
    .cp-cart-page > .row > .cart-sidebar {
        transition: max-height 0.4s ease, opacity 0.3s ease;
        overflow: hidden;
    }
    .cp-cart-page > .row > .cart-sidebar.collapsed {
        max-height: 0 !important;
        opacity: 0;
        pointer-events: none;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* Mobile inline sidebar (.sidebar-collapsed) toggle */
#order-standard_cart .sidebar-collapsed {
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    overflow: hidden;
}
#order-standard_cart .sidebar-collapsed.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar toggle button - in breadcrumb */
.cp-sidebar-toggle {
    background: none;
    border: none;
    padding: 0 8px 0 0;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    vertical-align: baseline;
    line-height: 1;
}
.cp-sidebar-toggle:hover {
    color: #de3580;
}
.cp-sidebar-toggle:focus,
.cp-sidebar-toggle:active {
    outline: none;
    box-shadow: none;
}
.cp-sidebar-toggle .fa-times {
    display: none;
}
.cp-sidebar-toggle.active .fa-bars {
    display: none;
}
.cp-sidebar-toggle.active .fa-times {
    display: inline;
}

/* Active sidebar item - branded pink with shimmer */
.list-group-item.active {
    background-color: #de3580;
    border-color: #de3580;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.list-group-item.active::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;
}
.list-group-item.active:hover {
    background-color: #de3580;
    border-color: #de3580;
    color: #fff;
}
.list-group-item.active:hover::after {
    left: 100%;
    transition: left 0.5s ease;
}