/* Custom Cart Styles - Modern Design */
:root {
    /* Brand colors - updated for more masculine design */
    --cart-primary-color: #000000; /* Changed to black as primary */
    --cart-secondary-color: #333333; /* Dark gray */
    --cart-accent-color: #FDB913; /* Yellow as accent only */
    --cart-accent-hover: #e9a912;
    --cart-accent-light: rgba(253, 185, 19, 0.1);
    
    /* Neutral colors */
    --cart-background: #ffffff;
    --cart-light-bg: #f8f8f8;
    --cart-border-color: #e6e6e6;
    --cart-text-color: #222222;
    --cart-light-text: #555555;
    
    /* Status colors */
    --cart-success-color: #28a745;
    --cart-warning-color: #f5a623;
    --cart-error-color: #dc3545;
    
    /* UI elements */
    --cart-radius-sm: 15px; /* Reduced radius for more industrial look */
    --cart-radius-md: 15px;
    --cart-radius-lg: 15px;
    --cart-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --cart-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --cart-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.1);
    --cart-transition: all 0.2s ease-in-out;
    
    /* Typography */
    --cart-font-family: "Mukta", Sans-serif;
    --cart-heading-weight: 600;
}

/* Base Styles */
.custom-cart-wrapper {
    font-family: var(--cart-font-family);
    color: var(--cart-text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.custom-cart {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--cart-background);
    border-radius: var(--cart-radius-lg);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: var(--cart-accent-light); }
    100% { background-color: transparent; }
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 16.7%; } /* Match the width in .progress-track.active */
}

@keyframes stepComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(253, 185, 19, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(253, 185, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(253, 185, 19, 0); }
}

@keyframes iconFadeIn {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes labelSlideUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes glowEffect {
    0% { text-shadow: 0 0 0px rgba(253, 185, 19, 0); }
    50% { text-shadow: 0 0 10px rgba(253, 185, 19, 0.5); }
    100% { text-shadow: 0 0 0px rgba(253, 185, 19, 0); }
}

@keyframes pulseDot {
    0% { transform: scale(1) translateY(-50%); box-shadow: 0 0 0 0 rgba(253, 185, 19, 0.7); }
    70% { transform: scale(1.2) translateY(-50%); box-shadow: 0 0 0 10px rgba(253, 185, 19, 0); }
    100% { transform: scale(1) translateY(-50%); box-shadow: 0 0 0 0 rgba(253, 185, 19, 0); }
}

/* New Checkout Steps Styles */
@keyframes dotScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lineProgress {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes circleBorderProgress {
    0% {
        stroke-dasharray: 0 100;
    }
    100% {
        stroke-dasharray: 100 100;
    }
}

@keyframes hoverBorderProgress {
    0% {
        stroke-dasharray: 0 314;
        stroke-dashoffset: 314;
    }
    100% {
        stroke-dasharray: 314 314;
        stroke-dashoffset: 0;
    }
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px auto;
    max-width: 800px;
    padding: 0 40px;
    position: relative;
}

.steps-progress-bar {
    position: absolute;
    top: 21px;
    left: 50%;
    width: calc(100% - 240px);
    height: 1px;
    background: #E5E7EB;
    z-index: 1;
    transform: translateX(-50%);
    overflow: hidden;
}

.steps-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 21px;
    right: 21px;
    height: 100%;
    background: #333;
    transform-origin: left;
    transform: scaleX(0);
    transition: none;
}

.checkout-step {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 150px;
    margin: 0 30px;
    text-decoration: none;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E7EB;
    position: relative;
    animation: dotScale 0.4s ease forwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
}

.step-dot::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 50%;
    border: 1px solid transparent;
    border-left-color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* SVG circle progress */
.step-border-progress {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    pointer-events: none;
    opacity: 0;
    transform: rotate(-90deg);
}

.step-border-progress circle {
    fill: none;
    stroke: #333;
    stroke-width: 1;
    stroke-dasharray: 0 314;
    stroke-dashoffset: 314;
    transition: stroke-dasharray 0.3s ease, stroke-dashoffset 0.3s ease;
    transform-origin: center;
}

.step-icon {
    transition: all 0.3s ease;
    opacity: 0.7;
    line-height: 1em;
}

.step-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

.step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.step-title {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.step-subtitle {
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Active state */
.checkout-step.active .step-dot {
    background: #F3F9F7;
    border-color: #333;
    color: #333;
    transform: scale(1.05);
}

.checkout-step.active .step-icon {
    opacity: 1;
}

.checkout-step.active .step-title {
    color: #333;
    font-weight: 600;
}

.checkout-step.active .step-subtitle {
    color: #333;
    opacity: 0.8;
}

/* Completed state */
.checkout-step.completed .step-dot {
    background: #333;
    border-color: #333;
    color: white;
}

.checkout-step.completed .step-icon {
    opacity: 1;
}

.checkout-step.completed .step-title {
    color: #333;
}

.checkout-step.completed .step-subtitle {
    color: #333;
    opacity: 0.8;
}

/* Progress bar fill based on current step */
.checkout-steps:has(.checkout-step.active:nth-child(2)) .steps-progress-bar::before {
    width: calc(50% - 21px);
    animation: lineProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.checkout-steps:has(.checkout-step.active:nth-child(2)) .checkout-step:nth-child(2) .step-border-progress,
.checkout-steps:has(.checkout-step.active:nth-child(3)) .checkout-step:nth-child(3) .step-border-progress {
    opacity: 1;
    transform: rotate(-90deg);
}

.checkout-steps:has(.checkout-step.active:nth-child(2)) .checkout-step:nth-child(2) .step-border-progress circle,
.checkout-steps:has(.checkout-step.active:nth-child(3)) .checkout-step:nth-child(3) .step-border-progress circle {
    animation: hoverBorderProgress 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.2s;
}

.checkout-steps:has(.checkout-step.active:nth-child(3)) .steps-progress-bar::before {
    width: calc(100% - 42px);
    animation: lineProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover effects */
.checkout-step:not(.active):hover .step-border-progress {
    opacity: 1;
}

.checkout-step:not(.active):hover .step-border-progress circle {
    animation: hoverBorderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.checkout-step:not(.active):hover .step-dot {
    transform: translateY(-1px);
}

.checkout-step:not(.active):hover .step-icon {
    opacity: 0.9;
}

/* Active and completed states should maintain the border */
.checkout-step.active .step-border-progress,
.checkout-step.completed .step-border-progress {
    opacity: 1;
}

.checkout-step.active .step-border-progress circle,
.checkout-step.completed .step-border-progress circle {
    stroke-dasharray: 314 314;
    stroke-dashoffset: 0;
}

/* Disabled state */
.checkout-step.disabled {
    cursor: not-allowed;
}

.checkout-step.disabled .step-dot {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #bebebe;
}

.checkout-step.disabled .step-title {
    color: #bebebe;
    opacity: 0.6;
}

.checkout-step.disabled .step-subtitle {
    color: #bebebe;
    opacity: 0.6;
}

/* Secure checkout badge */
.secure-checkout {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: #F3F9F7;
    border: 1px solid rgba(11, 93, 76, 0.15);
    width: max-content;
    margin: 0 auto;
}

.secure-checkout svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    flex-shrink: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .checkout-steps {
        max-width: 500px;
        padding: 0 30px;
        padding-left: 0px;
    }
    
    .steps-progress-bar {
        width: calc(100% - 180px);
    }
    
    .checkout-step {
        margin: 0 20px;
    }
    
    .secure-checkout {
        bottom: -45px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .secure-checkout svg {
        width: 12px;
        height: 12px;
    }
    
    .step-subtitle {
        display: none;
    }
}

@media (max-width: 480px) {
    .checkout-steps {
        max-width: 360px;
        padding: 0 20px;
        padding-left: 0px;
    }
    
    .steps-progress-bar {
        width: calc(100% - 140px);
    }
    
    .checkout-step {
        margin: 0 15px;
    }
    
    .step-title {
        font-size: 12px;
    }
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9e9e9;
}

.cart-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    width:100%;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #000;
    letter-spacing: 0.5px;
}

.cart-count {
    font-size: 18px;
    font-weight: normal;
    color: var(--cart-light-text);
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    background: var(--cart-accent-color);
    color: var(--cart-primary-color);
    padding: 6px 12px;
    border-radius: 99px; /* More squared for industrial look */
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--cart-shadow-sm);
    animation: pulse 2s infinite;
    margin-left:auto;
    gap:5px;
}

.savings-badge i {
    margin-right: 6px;
}

/* Cart Layout */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

/* Cart Main Section */
.cart-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cart Items Container */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Individual cart item */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "image details actions"
        "image price actions"
        "upsells upsells upsells";
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--cart-border-color);
    width: 100%;
    background-color: white;
}

.cart-item.visible {
    opacity: 1;
}

.cart-item:hover {
    box-shadow: var(--cart-shadow-md);
    border-color: rgba(0, 0, 0, 0.1);
}

.cart-item.has-certification {
    background-color: rgb(248 248 248);
}

.cart-item.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    backdrop-filter: blur(1px);
}

.cart-item.removing {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Item image */
.item-image-wrapper {
    grid-area: image;
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f4f4;
}

.item-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--cart-transition);
}

.image-overlay span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 20px;
}

.item-image-link:hover .product-thumbnail {
    transform: scale(1.1);
}

.item-image-link:hover .image-overlay {
    opacity: 1;
}

/* Item details */
.item-details {
    grid-area: details;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 5px;
}

.item-details-header {
    margin-bottom: 4px;
}

.item-name {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
    line-height: 1.4;
}

.item-name a {
    color: var(--cart-secondary-color);
    text-decoration: none;
    transition: var(--cart-transition);
}

.item-name a:hover {
    color: var(--cart-accent-color);
}

.item-variation {
    font-size: 14px;
    color: var(--cart-light-text);
    margin-bottom: 8px;
}

/* Certification badge styling */
.certification-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(253, 185, 19, 0.15);
    color: var(--cart-primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    gap: 5px;
}

.certification-badge i {
    color: var(--cart-accent-color);
    font-size: 12px;
}

.certification-price {
    font-weight: 600;
    color: var(--cart-accent-color);
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 4px;
}

.stock-status.available {
    color: var(--cart-success-color);
}

.stock-status.low {
    color: var(--cart-warning-color);
}

.stock-status.out {
    color: var(--cart-error-color);
}

.stock-status.backorder {
    color: #FF9800;
}

.stock-status.backorder i {
    color: #FF9800;
    margin-right: 5px;
}

.backorder-label {
    display: inline-block;
    background-color: #f9ba37;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
.backorder-notice {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

.stock-status i {
    font-size: 15px;
}

/* Price Section */
.price-section {
    grid-area: price;
    margin-top: auto;
}

.item-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--cart-secondary-color);
}

.price-breakdown {
    font-size: 13px;
    color: var(--cart-light-text);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-breakdown .cert-price {
    color: var(--cart-accent-color);
}

.price-breakdown .subscription-price {
    color: #2e86de;
}

/* Item actions */
.item-actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* Quantity Controls */
.quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    margin-top: 5px;
}

.qty-label {
    font-size: 13px;
    color: var(--cart-light-text);
    margin-right: auto;
}

.qty-controls {
    display: flex;
    align-items: center;
}

.qty-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 18px;
    padding: 0;
}

.qty-btn:hover:not(:disabled) {
    background-color: var(--cart-accent-color);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 0;
    border-radius: 50px;
    background: transparent;
    -moz-appearance: textfield;
    margin: 0 10px;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.remove-item {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 50px; /* Fully rounded */
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.remove-item:hover {
    color: var(--cart-error-color);
    background: rgba(220, 53, 69, 0.08);
}

.remove-text {
    display: inline-block;
}

/* Certification Upsell */
.certification-upsell {
    grid-area: upsells;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--cart-light-bg);
    border-radius: var(--cart-radius-md);
    box-shadow: var(--cart-shadow-sm);
    width: 100%;
}

.certification-upsell .upsell-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.upsell-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--cart-accent-light);
    border-radius: 50%;
    color: var(--cart-accent-color);
    font-size: 1.5rem;
}

.upsell-text {
    flex: 1;
    min-width: 0;
}

.upsell-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.upsell-text p {
    margin: 0;
    color: var(--cart-light-text);
    font-size: 0.9rem;
}

.add-certification {
    padding: 10px 15px;
    background: var(--cart-accent-color);
    color: #000;
    border: none;
    border-radius: var(--cart-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--cart-transition);
    box-shadow: var(--cart-shadow-sm);
}

.add-certification:hover {
    background: var(--cart-accent-hover);
    box-shadow: var(--cart-shadow-md);
}

/* Subscription options panel */
.subscription-options-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    justify-content: flex-start;
}

/* Improve subscription option buttons for more consistent spacing */
.add-subscription {
    flex: 1;
    min-width: 180px;
    max-width: calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-subscription:hover {
    transform: translateY(-2px);
    box-shadow: var(--cart-shadow-md);
}

.add-subscription.silver {
    background-color: #95a5a6;
}

.add-subscription.gold {
    background-color: #f39c12;
}

.add-subscription.platinum {
    background-color: #2e86de;
}

.add-subscription.silver:hover {
    background-color: #7f8c8d;
}

.add-subscription.gold:hover {
    background-color: #e67e22;
}

.add-subscription.platinum:hover {
    background-color: #2779bd;
}

.option-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.option-price {
    font-size: 13px;
    opacity: 0.9;
}

/* Responsive adjustments for subscription options */
@media (max-width: 768px) {
    .subscription-options-panel {
        flex-direction: column;
    }
    
    .add-subscription {
        max-width: 100%;
        width: 100%;
    }
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.clear-cart {
    background-color: transparent;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 50px; /* Fully rounded */
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
}

.clear-cart:hover {
    background: #f5f5f5;
    color: var(--cart-error-color);
    border-color: var(--cart-error-color);
}

/* Cart Summary Styles - Updated with a more industrial black aesthetic */
.cart-summary {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.5s ease;
}

.cart-summary.visible {
    opacity: 1;
}

.cart-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    position: relative;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Remove the yellow line after heading */
.cart-summary h3:after {
    display: none;
}

/* Clean up summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
    padding: 0 5px;
}

.summary-row:last-of-type {
    margin-bottom: 0;
}

/* Fix alignment of labels */
.summary-row span:first-child {
    font-weight: normal;
    color: #555;
}

/* Enhanced savings styling - more industrial/masculine */
.summary-row.highlight-savings {
    background-color: rgba(40, 167, 69, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0 0 15px 0;
    border-left: none;
}

/* Savings amount with accent highlight */
.savings-amount {
    color: #000;
    font-weight: 700;
}

/* More industrial-looking discount percentage */
.discount-percentage {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 99px;
    margin-left: 5px;
    text-transform: uppercase;
    animation: fadeIn 0.5sease;
    line-height: 1em;
    font-weight: normal;
}

/* Clean up original price display */
.original-price-row span:last-child {
    text-decoration: line-through;
    color: #999;
}

/* Fix subtotal display */
.subtotal-final {
    margin-top: 5px;
    font-weight: 500;
}

.subtotal-final span:last-child {
    font-weight: 700;
    color: #000;
}

/* Improve shipping display for masculine aesthetic */
.shipping-free, .shipping-calc {
    color: #000;
    font-weight: 600;
}

/* Total row clean up */
.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.summary-row.total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.total-amount {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Fix currency and amount display */
.cart-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.tax-note {
    font-size: 12px;
    color: #777;
    margin-left: 5px;
}

/* Stronger promo code section */
.promo-code {
    margin-top: 25px;
    border-radius: 15px;
    background: #f7f7f7;
    padding: 15px;
    margin-bottom:25px;
}

.promo-label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #000;
    font-weight: 600;
}

/* Promo input with stronger industrial styling */
.promo-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.promo-input {
    position: relative;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding-left: 35px;
    height: 45px;
    display: flex;
    align-items: center;
}

#coupon-code {
    border: none;
    width: 100%;
    height: 100%;
    padding: 0 15px 0 0;
    background: transparent;
    border-radius: 50px;
    outline: none;
    font-size: 15px;
}

.apply-coupon {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    font-size: 15px;
    height: 45px;
}

.apply-coupon:hover {
    background: #333;
    box-shadow: var(--cart-shadow-sm);
}

.coupon-message {
    margin-top: 10px;
    font-size: 13px;
    display: none;
    animation: slideUp 0.3s ease;
}

.coupon-message.success {
    color: var(--cart-success-color);
}

.coupon-message.error {
    color: var(--cart-error-color);
}

/* Improved trust badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.badge {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 50px;
}

.badge i {
    margin-right: 8px;
    color: var(--cart-accent-color);
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge span {
    display: flex;
    flex-direction: column;
}

.badge small {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}

/* Sticky sidebar position */
.cart-sidebar {
    position: sticky;
    top: 20px;
}

/* Make Icons Consistent */
.fas, .far, .fab {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Category Suggestions */
.category-suggestions {
    margin-top: 12px;
    font-size: 14px;
}

.category-suggestions span {
    display: block;
    margin-bottom: 10px;
    color: var(--cart-light-text);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-suggestions a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--cart-light-bg);
    border: 1px solid var(--cart-border-color);
    border-radius: 30px;
    color: var(--cart-secondary-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--cart-transition);
}

.category-suggestions a:hover {
    background: var(--cart-accent-light);
    color: var(--cart-secondary-color);
    border-color: var(--cart-accent-color);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
}

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    animation: fadeIn 0.5s ease;
}

.empty-cart-icon {
    margin-bottom: 30px;
    color: var(--cart-light-text);
}

.empty-cart-message h3 {
    font-size: 26px;
    font-weight: var(--cart-heading-weight);
    margin: 0 0 16px;
    color: var(--cart-secondary-color);
}

.empty-cart-message p {
    font-size: 16px;
    color: var(--cart-light-text);
    margin: 0 0 40px;
}

.empty-cart-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 400px;
}

.button.primary-button {
    display: inline-block;
    background-color: var(--cart-primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px; /* Fully rounded */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 20px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.button.primary-button:hover {
    background-color: var(--cart-accent-color);
    color: #000;
}

.button.primary-button .button-icon {
    margin-left: 8px;
}

.popular-categories {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.popular-heading {
    display: block;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--cart-secondary-color);
    font-weight: 500;
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-button {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    border-radius: 50px; /* Fully rounded */
    transition: all 0.2s ease;
}

.category-button:hover {
    background: var(--cart-accent-light);
    color: var(--cart-secondary-color);
    border-color: var(--cart-accent-color);
}

/* Notification System */
.cart-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    align-items: center;
    min-width: 300px;
    max-width: 500px;
    border-left: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Full width notification for comparison modal */
.cart-notification.comparison-notification {
    left: 0;
    right: 0;
    transform: translateX(0);
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    bottom: 0;
    padding: 15px 30px;
    justify-content: center;
}

.cart-notification.info {
    border-top: 3px solid var(--cart-accent-color);
    border-left: none;
}

.cart-notification.success {
    border-top: 3px solid var(--cart-success-color);
    border-left: none;
}

.cart-notification.warning {
    border-top: 3px solid var(--cart-warning-color);
    border-left: none;
}

.cart-notification.error {
    border-top: 3px solid var(--cart-error-color);
    border-left: none;
}

.notification-content {
    flex: 1;
    font-size: 14px;
    color: var(--cart-secondary-color);
}

/* Center text for comparison notification */
.comparison-notification .notification-content {
    text-align: center;
    max-width: 80%;
}

.close-notification {
    background: transparent;
    border: none;
    color: var(--cart-light-text);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: var(--cart-transition);
}

.close-notification:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--cart-secondary-color);
}

.cart-notification:not([style*="display: none"]) {
    transform: translateY(0);
    opacity: 1;
}

/* Ensure full width notification stays at bottom */
.cart-notification.comparison-notification:not([style*="display: none"]) {
    transform: translateY(0);
}

/* Responsive adjustments for full width notification */
@media (max-width: 767px) {
    .comparison-notification .notification-content {
        max-width: 100%;
        font-size: 13px;
    }
    
    .cart-notification.comparison-notification {
        padding: 12px 15px;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .cart-content {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        position: static;
    }
    
    .progress-bar {
        gap: 50px;
    }
    
    .progress-bar::before {
        left: 20%;
        right: 20%;
    }
}

@media (max-width: 767px) {
    .custom-cart {
        padding: 20px 16px;
    }
    
    .cart-header h2 {
        font-size: 22px;
    }
    
    .progress-bar {
        padding: 0;
        gap: 40px;
    }
    
    .step-indicator {
        width: 40px;
        height: 40px;
    }
    
    .cart-item {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "image details"
            "image price"
            "actions actions"
            "upsells upsells";
        padding: 15px;
    }
    
    .item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .quantity-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .upsell-content {
        flex-direction: column;
        text-align: center;
    }
    
    .upsell-text {
        margin-bottom: 12px;
    }
    
    .add-certification {
        width: 100%;
        justify-content: center;
    }
    
    .savings-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    .custom-cart {
        padding: 16px 12px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
    }
    
    .item-image-wrapper {
        max-width: 140px;
        margin: 0 auto;
    }
    

    .item-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .quantity-wrapper, .remove-item {
        width: 100%;
        justify-content: center;
    }
    
    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-label {
        display: none;
    }
    
    .promo-input-wrapper {
        flex-direction: column;
    }
    
    .apply-coupon {
        width: 100%;
        margin-top: 8px;
    }
    
    .trust-badges {
        display: none;
    }
}

/* Ensure Font Awesome icons display correctly */
.cart-summary [class^="fas"], 
.cart-summary [class^="far"], 
.cart-summary [class^="fab"],
.cart-item [class^="fas"], 
.cart-item [class^="far"], 
.cart-item [class^="fab"],
.cart-progress [class^="fas"],
.cart-progress [class^="far"],
.cart-progress [class^="fab"] {
    display: inline-flex !important;
    width: auto;
    height: auto;
    font-style: normal;
}

/* Icons Style Overrides */
.summary-row span:first-child i {
    color: var(--cart-accent-color);
    font-size: 16px;
    width: 22px;
    height: 22px;
    text-align: center;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.qty-btn i {
    font-size: 12px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

.remove-item i {
    color: var(--cart-error-color);
    font-size: 14px;
    margin-right: 4px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

.promo-input i {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

.badge i {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

.button-icon {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

/* Cart Clear Button */
.clear-cart i {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
}

.qty-controls{

}

.qty-btn{
    background-color: #f5f5f5;
    border: none;
    color: #333;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.2sease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
    min-width: 50px;
    min-height: 50px;
}
.qty-btn:hover,
.qty-btn:focus,
.qty-btn:active{
    background-color: #e0e0e0!important;
    color: black!important;
}

.qty-input{
    width: 40px !important;
    height: 50px !important;
    border: none !important;
    text-align: center;
    font-size: 32px !important;
    font-weight: bold;
    -moz-appearance: textfield;
    margin: 0 10px;
    padding: 0px !important;
}

/* IMPORTANT STYLING FOR CHECKOUT ELEMENTS */

/* Checkout Button - Industrial black styling */

.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9ba37;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-button:hover {
    background-color: #FFB300;
    color:black;
}
.checkout-button .button-icon {
    margin-left: 8px;
}
.checkout-button:before {
    content: "";
    background-image: url(/wp-content/uploads/2025/02/arrowbg-yellow.svg);
    height: 33px;
    width: 33px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translatey(-50%);
    z-index: 1;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.3sease-in-out;
}

.checkout-button:after {
    content: "";
    background-image: url(/wp-content/uploads/2025/02/arrow-right.svg);
    height: 33px;
    width: 33px;
    background-size: initial;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translatey(-50%);
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 0.3sease-in-out;
}

/* Continue Shopping - Industrial styling */
.continue-shopping {
    display: block;
    color: #555;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 15px;
    font-weight: 500;
}

.continue-shopping:hover {
    color: var(--cart-accent-color);
}

/* Promo Input Wrapper */
.promo-input-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.promo-input i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Subscription badge styling */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    gap: 5px;
}

.subscription-badge i {
    color: #0056b3;
    font-size: 12px;
}

.subscription-price {
    font-weight: 600;
    margin-left: 3px;
}

/* Remove subscription button */
.remove-subscription {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.remove-subscription:hover {
    opacity: 1;
}

/* Has subscription cart item */
.cart-item.has-subscription {
    border-left: 3px solid #2e86de;
    position: relative;
    overflow: hidden;
}

/* Remove the default blue gradient effect */
.subscription-added::before {
    background: none !important;
}

/* Create a better animation for adding subscription */
.subscription-added {
    position: relative;
    box-shadow: 0 0 0 1px #2e86de !important;
    transition: box-shadow 0.3s ease;
}

.subscription-added::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 134, 222, 0.05), rgba(46, 134, 222, 0.1), rgba(46, 134, 222, 0.05));
    z-index: 1;
    pointer-events: none;
    animation: gentlePulse 2s ease;
}

@keyframes gentlePulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Subscription notification container */
#subscription-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 300px;
}

/* Subscription Success Notification */
.subscription-success-notification {
    position: relative;
    background-color: #fff;
    border-left: 4px solid #2e86de;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 1000;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease forwards;
}

.subscription-success-notification .message {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.subscription-success-notification .close-notification {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.subscription-success-notification .close-notification:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart item with both certification and subscription */
.cart-item.has-certification.has-subscription {
    border-left: 3px solid #5a6268; /* Neutral color for combined state */
}

/* Remove certification button */
.remove-certification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.remove-certification:hover {
    opacity: 1;
}

/* Subscription Upsell */
.subscription-upsell {
    grid-area: upsells;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--cart-light-bg);
    border-radius: var(--cart-radius-md);
    box-shadow: var(--cart-shadow-sm);
    width: 100%;
}

/* Subscription Card Layout for Cart - Matching Product Detail Style */
.subscription-collapsible {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--cart-transition);
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: var(--cart-transition);
}

.subscription-header:hover {
    background-color: #f0f0f0;
}

.subscription-header-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.subscription-title-compact {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-primary-color);
}

.subscription-toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #555;
}

.subscription-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    background-color: white;
    padding: 0 20px;
    box-sizing: border-box;
}

.subscription-collapsible.active .subscription-content {
    overflow: visible;
    height: auto !important; /* Force auto height when active */
    padding: 20px;
}

.subscription-collapsible.active .subscription-toggle-icon {
    transform: rotate(180deg);
}

.subscription-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    background-color: #eee;
    border-radius: 12px;
}

.subscription-description {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--cart-light-text);
}

.compact-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.compact-benefit-item {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.compact-benefit-icon {
    color: var(--cart-accent-color);
    margin-right: 8px;
    font-size: 14px;
}

/* Subscription options - match product display style */
.compact-subscription-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.compact-subscription-option {
    position: relative;
    cursor: pointer;
}

.compact-subscription-option:hover .option-content {
    border-color: var(--cart-accent-color);
}

.option-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--cart-border-color);
    border-radius: var(--cart-radius-sm);
    transition: var(--cart-transition);
}

.subscription-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--cart-border-color);
    border-radius: 50%;
    position: relative;
}

.subscription-radio:checked + .option-content {
    border-color: var(--cart-accent-color);
    background: rgba(253, 185, 19, 0.05);
}

.subscription-radio:checked + .option-content .subscription-checkbox {
    border-color: var(--cart-accent-color);
    background: var(--cart-accent-color);
}

.subscription-checkbox:after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.subscription-radio:checked + .option-content .subscription-checkbox:after {
    display: block;
}

.option-details {
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.option-description {
    font-size: 0.85rem;
    color: var(--cart-light-text);
}

.option-price {
    font-weight: 600;
    text-align: right;
}

.price-period {
    color: var(--cart-light-text);
    font-size: 0.85rem;
    font-weight: normal;
}

/* Add subscription button */
.add-subscription-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cart-accent-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: var(--cart-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--cart-transition);
    box-shadow: var(--cart-shadow-sm);
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.add-subscription-btn:hover {
    background: var(--cart-accent-hover);
    box-shadow: var(--cart-shadow-md);
}

/* Subscription actions container */
.subscription-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0 10px 0;
    width: 100%;
}

/* Hide radio button visually but keep it accessible */
.subscription-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .compact-benefits-row {
        flex-wrap: wrap;
    }
    
    .compact-benefit-item {
        width: 50%;
        margin-bottom: 10px;
    }
    
    .option-content {
        grid-template-columns: auto 1fr;
    }
    
    .option-price {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 10px;
        padding-left: 37px;
    }
}

/* Combined upsells container - properly positioned in the grid */
.combined-upsells {
    grid-area: upsells;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--cart-border-color);
}

/* Make certification and subscription upsells look consistent */
.certification-upsell,
.subscription-upsell {
    width: 100%;
    background: var(--cart-light-bg);
    border-radius: var(--cart-radius-md);
    box-shadow: var(--cart-shadow-sm);
    transition: var(--cart-transition);
    padding: 20px;
    margin-bottom: 10px;
}

.certification-upsell:hover,
.subscription-upsell:hover {
    box-shadow: var(--cart-shadow-md);
}

/* Responsive styles for combined upsells */
@media (min-width: 992px) {
    .combined-upsells {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .certification-upsell,
    .subscription-upsell {
        width: calc(50% - 10px);
    }
}

@media (max-width: 991px) {
    .combined-upsells {
        flex-direction: column;
    }

    .certification-upsell,
    .subscription-upsell {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .combined-upsells {
        padding: 0;
    }
    
    .subscription-content {
        padding: 15px;
    }
    
    .compact-benefits-row {
        flex-wrap: wrap;
    }
    
    .compact-benefit-item {
        width: 50%;
        margin-bottom: 10px;
    }
}

/* Certification checkbox styling */
.product-addon-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 0;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.addon-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    background-color: white;
}

.addon-checkbox:checked ~ .checkbox-custom {
    background-color: var(--cart-accent-color);
    border-color: var(--cart-accent-color);
}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.addon-checkbox:checked ~ .checkbox-custom:after {
    display: block;
}

.addon-text {
    font-size: 14px;
    font-weight: 500;
}

.addon-price {
    font-weight: 600;
    color: var(--cart-primary-color);
}

/* Processing and success states for certification */
.product-addon-container.processing-addon {
    position: relative;
    pointer-events: none;
}

.product-addon-container.processing-addon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.product-addon-container.processing-addon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(249, 186, 55, 0.3);
    border-top: 3px solid var(--cart-accent-color);
    border-radius: 50%;
    z-index: 5;
    animation: spin 1s linear infinite;
}

.product-addon-container.certification-added {
    background-color: rgba(253, 185, 19, 0.1);
    border: 1px solid var(--cart-accent-color);
    transition: all 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Addon badges container */
.addon-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

/* Certification badge */
.certification-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(253, 185, 19, 0.15);
    color: var(--cart-primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    gap: 5px;
}

.certification-badge i {
    color: var(--cart-accent-color);
    font-size: 12px;
}

.remove-certification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.remove-certification:hover {
    opacity: 1;
}

/* Subscription badge */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    gap: 5px;
}

.subscription-badge i {
    color: #0056b3;
    font-size: 12px;
}

.subscription-price {
    font-weight: 600;
    margin-left: 3px;
}

.remove-subscription {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.remove-subscription:hover {
    opacity: 1;
}

/* Compare Plans Button */
.compare-plans-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: auto;
}

.compare-plans-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color:black;
}

/* Modal Styles */
.comparison-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.comparison-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    padding: 25px;
    min-height:65vh;
}

.comparison-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comparison-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.comparison-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.comparison-modal-close:hover {
    color: #333;
}

/* Comparison Grid */
.comparison-grid {
    width: 100%;
    border-collapse: collapse;
    display: table;
    border-spacing: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.comparison-row {
    display: table-row;
}

.comparison-row:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header-row {
    background-color: #f9f9f9;
    font-weight: 600;
}

.comparison-cell {
    display: table-cell;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.comparison-cell.feature-cell {
    text-align: left;
    font-weight: 500;
    width: 30%;
}

.header-row .comparison-cell {
    font-weight: 600;
    background-color: #f9f9f9;
}

.check-mark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: relative;
}

.check-mark:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(45deg);
}

.dash-mark {
    display: inline-block;
    width: 12px;
    height: 2px;
    background-color: #ccc;
}

.comparison-cell.highlight {
    color: #333;
    font-weight: 600;
}

.note-row .comparison-cell {
    text-align: center;
    font-size: 13px;
    color: #777;
    padding-top: 20px;
    font-style: italic;
}

/* Select Plan Button */
.select-plan-btn {
    display: inline-block;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.select-plan-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    color:black;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .checkout-steps{
        margin-top:60px; 
        margin-bottom:60px; 
        margin-left:0px;
    }
    .comparison-grid {
        font-size: 13px;
    }
    
    .comparison-row {
        display: block;
    }
    
    .comparison-cell {
        display: block;
        padding: 10px 8px;
        border-bottom: 1px solid #eee;
    }
    
    .comparison-cell.feature-cell {
        background-color: #f9f9f9;
        font-weight: 600;
        width: auto;
    }
    
    .comparison-row:last-child .comparison-cell:last-child {
        border-bottom: none;
    }
    
    .select-plan-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .comparison-modal {
        padding: 15px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .comparison-grid {
        font-size: 12px;
    }
    
    .comparison-modal-title {
        font-size: 18px;
    }
    
    .select-plan-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Modal body scroll */
.comparison-modal-body {
    overflow-x: auto;
}

/* Body styles when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Ensure modal is above other elements */
.comparison-modal-overlay, 
.comparison-modal {
    z-index: 999999;
}

.comparison-row.note-row{
    display:flex!important;
}
.note-row .comparison-cell {
position: absolute;

}

/* Rental badge style */
.rental-badge {
    display: flex;
    align-items: center;
    background-color: #e4e4e4;
    color: #000000;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 5px;
    line-height: 1.2;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.rental-badge i {
    margin-right: 5px;
    color: #000000;
}

.rental-dates {
    margin-left: 5px;
    font-weight: 500;
}

.rental-days {
    margin-left: 5px;
    font-size: 0.9em;
    opacity: 0.9;
}

.rental-price-per-day {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #0066cc;
}

/* Add rental badge to item-badges group */
.item-badges .rental-badge {
    margin-right: 6px;
    margin-bottom: 6px;
}

/* Mini cart rental styling */
.widget_shopping_cart_content .rental-badge,
.elementor-menu-cart__products .rental-badge {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    box-sizing: border-box;
}

.widget_shopping_cart_content .rental-dates,
.elementor-menu-cart__products .rental-dates,
.widget_shopping_cart_content .rental-days,
.elementor-menu-cart__products .rental-days {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 3px;
}

/* Cart item rental styling in the mini-cart */
.widget_shopping_cart_content .cart-item-rental,
.elementor-menu-cart__products .cart-item-rental {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 0.9em;
    background-color: #e6f7ff;
    padding: 8px;
    border-radius: 4px;
    color: #0066cc;
}

.widget_shopping_cart_content .cart-item-rental-price,
.elementor-menu-cart__products .cart-item-rental-price {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-size: 0.9em;
}

/* Additional mini-cart specific corrections */
.elementor-menu-cart__products .cart-item-rental table.rental-table,
.woocommerce-mini-cart .cart-item-rental table.rental-table {
    width: 100% !important;
    margin: 0 !important;
    table-layout: fixed;
}

.elementor-menu-cart__products .cart-item-rental td,
.woocommerce-mini-cart .cart-item-rental td {
    padding: 4px !important;
    font-size: 0.9em !important;
    vertical-align: middle !important;
    line-height: 1.3 !important;
}

.elementor-menu-cart__products .cart-item-rental .rental-header,
.woocommerce-mini-cart .cart-item-rental .rental-header {
    text-align: center !important;
    font-weight: 600 !important;
    background-color: #c5e0ff !important;
    color: #0066cc !important;
}

/* Clear any left/right floats in mini carts */
.elementor-menu-cart__products .woocommerce-cart-item__name,
.woocommerce-mini-cart .woocommerce-mini-cart-item {
    display: grid !important;
}

.elementor-menu-cart__products .cart-item-rental,
.woocommerce-mini-cart .cart-item-rental {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* Elementor mini cart grid layout structure */
.elementor-menu-cart__product.woocommerce-cart-form__cart-item.cart_item {
    display: grid !important;
    grid-template-areas: 
        "image title"
        "image price"
        "certification certification"
        "rental rental" !important;
    grid-template-columns: auto 1fr !important;
    grid-gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
}

/* Assign grid areas to each element */
.elementor-menu-cart__product .elementor-menu-cart__product-image {
    grid-area: image !important;
}

.elementor-menu-cart__product .elementor-menu-cart__product-name {
    grid-area: title !important;
}

.elementor-menu-cart__product .elementor-menu-cart__product-price {
    grid-area: price !important;
}

.elementor-menu-cart__product .certification-badge,
.elementor-menu-cart__product .addon-badges {
    grid-area: certification !important;
    width: 100% !important;
}

.elementor-menu-cart__product .cart-item-rental {
    grid-area: rental !important;
    width: 100% !important;
    margin: 5px 0 !important;
}

/* Fix for cart-item-rental to ensure it's visible and properly positioned */
.elementor-menu-cart__products div.cart-item-rental {
    order: 10 !important; /* Push it toward the bottom */
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 8px !important;
}

/* Adjust padding/margins for cleaner layout */
.elementor-menu-cart__product > * {
    padding: 0 !important;
    margin: 0 !important;
}

.elementor-menu-cart__product .elementor-menu-cart__product-name {
    margin-bottom: 5px !important;
}