/**
 * Jestart Side Cart Pro - Frontend Styles
 * 100% Isolated CSS - No inheritance from themes/Elementor
 * Premium E-commerce Design System
 */

/* ============================================
   RESET - Targeted Reset (No all:revert)
   ============================================ */
.jscp-sidecart *,
.jscp-sidecart *::before,
.jscp-sidecart *::after,
.jscp-cart-trigger *,
.jscp-cart-trigger *::before,
.jscp-cart-trigger *::after {
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Base text reset for sidecart elements */
.jscp-sidecart,
.jscp-sidecart div,
.jscp-sidecart span,
.jscp-sidecart p,
.jscp-sidecart h1,
.jscp-sidecart h2,
.jscp-sidecart h3,
.jscp-sidecart h4,
.jscp-sidecart a,
.jscp-sidecart button,
.jscp-sidecart input,
.jscp-sidecart label {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.5 !important;
}

.jscp-sidecart a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Exception for button-styled links - they need white text */
.jscp-sidecart a.jscp-empty-button,
.jscp-sidecart a.jscp-checkout-btn,
.jscp-sidecart a[class*="btn"] {
    color: #ffffff !important;
}

.jscp-sidecart ul,
.jscp-sidecart ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.jscp-sidecart button {
    cursor: pointer !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.jscp-sidecart input {
    font-family: inherit !important;
    outline: none !important;
}

.jscp-sidecart input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
}

/* SVG Icons - Proper rendering */
.jscp-sidecart svg,
.jscp-cart-trigger svg {
    display: inline-block !important;
    vertical-align: middle !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
}

.jscp-sidecart svg[fill="currentColor"],
.jscp-cart-trigger svg[fill="currentColor"] {
    fill: currentColor !important;
    stroke: none !important;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
.jscp-sidecart {
    /* Primary Colors */
    --jscp-primary: #1e3a5f;
    --jscp-accent: #2563eb;
    --jscp-success: #059669;
    --jscp-urgency: #dc2626;
    --jscp-sale-color: #e53935;

    /* Background Colors */
    --jscp-bg: #ffffff;
    --jscp-bg-light: #f9fafb;
    --jscp-bg-hover: #f3f4f6;
    --jscp-overlay: rgba(0, 0, 0, 0.5);

    /* Text Colors */
    --jscp-text: #1f2937;
    --jscp-text-muted: #6b7280;
    --jscp-text-light: #9ca3af;

    /* Border Colors */
    --jscp-border: #e5e7eb;
    --jscp-border-light: #f3f4f6;

    /* Timer Colors */
    --jscp-timer-bg: #1e3a5f;
    --jscp-timer-text: #ffffff;

    /* Shipping Bar Colors */
    --jscp-shipping-bar: #2563eb;
    --jscp-shipping-bar-bg: #e5e7eb;

    /* Dimensions */
    --jscp-width: 420px;
    --jscp-radius: 12px;
    --jscp-radius-sm: 8px;
    --jscp-radius-xs: 6px;
    --jscp-font-size: 14px;

    /* Shadows */
    --jscp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --jscp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --jscp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --jscp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --jscp-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   OVERLAY
   ============================================ */
.jscp-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--jscp-overlay) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 999998 !important;
    backdrop-filter: blur(2px) !important;
}

.jscp-overlay.jscp-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   SIDECART CONTAINER
   ============================================ */
.jscp-sidecart {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: var(--jscp-width) !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--jscp-bg) !important;
    box-shadow: var(--jscp-shadow-xl) !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: var(--jscp-font-size) !important;
    color: var(--jscp-text) !important;
    overflow: hidden !important;
}

.jscp-sidecart.jscp-open {
    transform: translateX(0) !important;
}

/* ============================================
   URGENCY TIMER
   ============================================ */
.jscp-urgency-timer {
    background: var(--jscp-timer-bg) !important;
    color: var(--jscp-timer-text) !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.jscp-urgency-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.jscp-urgency-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
    animation: jscp-pulse 2s ease-in-out infinite !important;
}

.jscp-urgency-text {
    letter-spacing: 0.01em !important;
}

.jscp-urgency-time {
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

@keyframes jscp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   HEADER
   ============================================ */
.jscp-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 20px !important;
    border-bottom: 1px solid var(--jscp-border) !important;
    flex-shrink: 0 !important;
    background: var(--jscp-bg) !important;
}

.jscp-header-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.jscp-header-title span {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
}

.jscp-header-title h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
    margin: 0 !important;
}

.jscp-header-icon {
    width: 20px !important;
    height: 20px !important;
    stroke: var(--jscp-primary) !important;
    flex-shrink: 0 !important;
}

.jscp-header-count {
    font-size: 13px !important;
    color: var(--jscp-text-muted) !important;
    font-weight: 400 !important;
}

.jscp-close-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--jscp-bg-light) !important;
    color: var(--jscp-text-muted) !important;
    cursor: pointer !important;
    transition: all var(--jscp-transition-fast) !important;
}

.jscp-close-btn:hover {
    background: var(--jscp-bg-hover) !important;
    color: var(--jscp-text) !important;
}

.jscp-close-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

/* ============================================
   SHIPPING BAR
   ============================================ */
.jscp-shipping-bar {
    padding: 12px 20px 16px !important;
    background: var(--jscp-bg-light) !important;
    flex-shrink: 0 !important;
}

.jscp-shipping-message {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: var(--jscp-text) !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
}

.jscp-shipping-icon {
    width: 18px !important;
    height: 18px !important;
    stroke: var(--jscp-accent) !important;
    flex-shrink: 0 !important;
}

.jscp-shipping-complete .jscp-shipping-icon {
    stroke: var(--jscp-success) !important;
}

.jscp-shipping-complete .jscp-shipping-message {
    color: var(--jscp-success) !important;
}

.jscp-shipping-progress {
    width: 100% !important;
    height: 6px !important;
    background: var(--jscp-shipping-bar-bg) !important;
    border-radius: 3px !important;
    overflow: hidden !important;
}

.jscp-shipping-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, var(--jscp-shipping-bar), var(--jscp-accent)) !important;
    border-radius: 3px !important;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.jscp-shipping-complete .jscp-shipping-progress-bar {
    background: linear-gradient(90deg, var(--jscp-success), #10b981) !important;
}

/* ============================================
   CART CONTENT AREA
   ============================================ */
.jscp-body,
.jscp-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
}

/* Custom scrollbar for body */
.jscp-body::-webkit-scrollbar {
    width: 6px !important;
}

.jscp-body::-webkit-scrollbar-track {
    background: transparent !important;
}

.jscp-body::-webkit-scrollbar-thumb {
    background: var(--jscp-border) !important;
    border-radius: 3px !important;
}

.jscp-body::-webkit-scrollbar-thumb:hover {
    background: var(--jscp-text-light) !important;
}

/* Custom scrollbar */
.jscp-content::-webkit-scrollbar {
    width: 6px !important;
}

.jscp-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.jscp-content::-webkit-scrollbar-thumb {
    background: var(--jscp-border) !important;
    border-radius: 3px !important;
}

.jscp-content::-webkit-scrollbar-thumb:hover {
    background: var(--jscp-text-light) !important;
}

/* ============================================
   CART ITEMS
   ============================================ */
.jscp-cart-items {
    padding: 0 !important;
}

.jscp-cart-item {
    display: flex !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--jscp-border-light) !important;
    transition: background var(--jscp-transition-fast) !important;
}

.jscp-cart-item:hover {
    background: var(--jscp-bg-light) !important;
}

.jscp-cart-item:last-child {
    border-bottom: none !important;
}

.jscp-item-image {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
    border-radius: var(--jscp-radius-sm) !important;
    overflow: hidden !important;
    background: var(--jscp-bg-light) !important;
}

.jscp-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.jscp-item-details {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.jscp-item-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
}

.jscp-item-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.jscp-item-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--jscp-text) !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.4 !important;
}

/* Inline discount badge next to product title */
.jscp-discount-badge-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 1px 5px !important;
    background: var(--jscp-success);
    color: #ffffff;
    font-size: 9px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
}

.jscp-discount-badge-inline::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'%3E%3C/path%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.jscp-item-variation {
    font-size: 12px !important;
    color: var(--jscp-text-muted) !important;
    margin: 0 !important;
}

.jscp-item-remove,
.jscp-remove-item {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 6px !important;
    color: var(--jscp-text-light) !important;
    cursor: pointer !important;
    transition: all var(--jscp-transition-fast) !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    outline: none !important;
    margin-left: 8px !important;
}

.jscp-item-remove:hover,
.jscp-remove-item:hover {
    background: #fee2e2 !important;
    color: var(--jscp-urgency) !important;
}

.jscp-item-remove svg,
.jscp-remove-item svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
    display: block !important;
}

.jscp-item-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: 4px !important;
    gap: 12px !important;
}

.jscp-item-price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
    flex-shrink: 0 !important;
}

/* Sale Price Display */
.jscp-price-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.jscp-price-wrapper.jscp-on-sale {
    flex-direction: row !important;
}

.jscp-regular-price {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--jscp-text-muted) !important;
    text-decoration: line-through !important;
    opacity: 0.7 !important;
}

.jscp-regular-price .woocommerce-Price-amount {
    color: inherit !important;
    font-weight: inherit !important;
}

.jscp-sale-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--jscp-sale-color, #e53935) !important;
    text-decoration: none !important;
    background: none !important;
}

.jscp-sale-price .woocommerce-Price-amount {
    color: inherit !important;
    font-weight: inherit !important;
}

.jscp-discount-percent {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: var(--jscp-sale-color, #e53935) !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Item Variations */
.jscp-item-variations {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    margin-top: 2px !important;
}

.jscp-variation {
    font-size: 11px;
    color: var(--jscp-text-muted);
    background: var(--jscp-bg-light);
    padding: 2px 6px !important;
    border-radius: 3px !important;
}

/* Bundle Discount Display in Cart Items */
.jscp-bundle-item {
    background: linear-gradient(to right, #f0fdf4, var(--jscp-bg)) !important;
}

.jscp-bundle-discount {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
}

.jscp-bundle-discount .jscp-discount-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 2px 8px !important;
    background: #ecfdf5;
    color: var(--jscp-success);
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: var(--jscp-radius-xs) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.jscp-bundle-discount .jscp-discount-icon {
    width: 12px !important;
    height: 12px !important;
    stroke: #166534 !important;
    flex-shrink: 0 !important;
}

.jscp-bundle-discount .jscp-savings-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    margin-top: 0 !important;
}

.jscp-bundle-discount .jscp-savings-badge .woocommerce-Price-amount {
    font-weight: 700 !important;
}

.jscp-bundle-discount .jscp-total-savings {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 8px !important;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    color: #065f46 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

.jscp-bundle-discount .jscp-total-savings .woocommerce-Price-amount {
    font-weight: 700 !important;
}

/* Bundle price styling in item footer */
.jscp-item-price .jscp-bundle-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px !important;
}

.jscp-item-price .jscp-bundle-price .jscp-regular-price {
    font-size: 11px !important;
    color: var(--jscp-text-muted) !important;
    text-decoration: line-through !important;
}

.jscp-item-price .jscp-bundle-price .jscp-sale-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jscp-success, #059669) !important;
    background: none !important;
    text-decoration: none !important;
}

/* Quantity Controls */
.jscp-quantity-controls,
.jscp-quantity-control {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    border: 1px solid var(--jscp-border) !important;
    border-radius: var(--jscp-radius-xs) !important;
    overflow: hidden !important;
    background: var(--jscp-bg) !important;
}

.jscp-qty-btn {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--jscp-text-muted) !important;
    cursor: pointer !important;
    transition: all var(--jscp-transition-fast) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    user-select: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.jscp-qty-btn:hover {
    background: var(--jscp-bg-hover) !important;
    color: var(--jscp-text) !important;
}

.jscp-qty-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
    display: block !important;
}

.jscp-qty-input {
    width: 32px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--jscp-text) !important;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid var(--jscp-border) !important;
    border-right: 1px solid var(--jscp-border) !important;
    border-top: none !important;
    border-bottom: none !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

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

/* ============================================
   UPSELLS SECTION - Horizontal Carousel Design
   ============================================ */
.jscp-upsells {
    padding: 16px 20px !important;
    border-top: 1px solid var(--jscp-border) !important;
    background: var(--jscp-bg) !important;
}

/* Header with title and navigation arrows */
.jscp-upsells-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.jscp-upsells-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
    margin: 0 !important;
}

/* Navigation arrows */
.jscp-upsells-nav {
    display: flex !important;
    gap: 4px !important;
}

.jscp-upsells-arrow {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--jscp-bg-light) !important;
    border: 1px solid var(--jscp-border) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.jscp-upsells-arrow:hover {
    background: var(--jscp-accent) !important;
    border-color: var(--jscp-accent) !important;
    color: #fff !important;
}

.jscp-upsells-arrow:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.jscp-upsells-arrow svg {
    width: 14px !important;
    height: 14px !important;
}

/* Carousel container */
.jscp-upsells-carousel {
    overflow: hidden !important;
    position: relative !important;
}

.jscp-upsells-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: transform 0.3s ease !important;
}

/* Horizontal card layout */
.jscp-upsell-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: var(--jscp-bg-light) !important;
    border: 1px solid var(--jscp-border) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.jscp-upsell-card:hover {
    border-color: var(--jscp-accent) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Product image - left side */
.jscp-upsell-card-image {
    flex-shrink: 0 !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid var(--jscp-border) !important;
}

.jscp-upsell-card-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.jscp-upsell-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Product info - middle */
.jscp-upsell-card-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.jscp-upsell-card-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--jscp-text) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.jscp-upsell-card-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.jscp-upsell-card-name a:hover {
    color: var(--jscp-accent) !important;
}

.jscp-upsell-card-price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
}

.jscp-upsell-card-price del {
    color: var(--jscp-text-light) !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    margin-right: 4px !important;
}

.jscp-upsell-card-price ins {
    text-decoration: none !important;
    color: var(--jscp-accent) !important;
}

/* Actions - right side */
.jscp-upsell-card-actions {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Variation selector dropdown */
.jscp-upsell-variation-select {
    width: 70px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    border: 1px solid var(--jscp-border) !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: var(--jscp-text) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    padding-right: 24px !important;
}

.jscp-upsell-variation-select:focus {
    outline: none !important;
    border-color: var(--jscp-accent) !important;
}

/* Circular Plus Add Button */
.jscp-upsell-add-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--jscp-accent) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.jscp-upsell-add-btn:hover {
    background: var(--jscp-primary) !important;
    transform: scale(1.1) !important;
}

.jscp-upsell-add-btn svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #fff !important;
}

.jscp-upsell-add-btn.jscp-upsell-select-options {
    background: transparent !important;
    border: 1px solid var(--jscp-accent) !important;
}

.jscp-upsell-add-btn.jscp-upsell-select-options svg {
    stroke: var(--jscp-accent) !important;
}

.jscp-upsell-add-btn.jscp-upsell-select-options:hover {
    background: var(--jscp-accent) !important;
}

.jscp-upsell-add-btn.jscp-upsell-select-options:hover svg {
    stroke: #fff !important;
}

/* Unavailable state */
.jscp-upsell-unavailable {
    font-size: 11px !important;
    color: var(--jscp-text-light) !important;
    font-style: italic !important;
}

/* Loading state */
.jscp-upsell-add-btn.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Legacy support for old classes */
.jscp-upsell-btn,
.jscp-upsell-add,
.jscp-upsell-card-add {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--jscp-accent) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.jscp-upsell-btn:hover,
.jscp-upsell-add:hover,
.jscp-upsell-card-add:hover {
    background: var(--jscp-primary) !important;
    transform: scale(1.1) !important;
}

/* ============================================
   SHIPPING PROTECTION - Clean Horizontal Design
   ============================================ */

/* Simple horizontal row layout matching reference design */
.jscp-protection-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    background: #f8faf8 !important;
    border: 1px solid #e8f0e8 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.jscp-protection-row:hover {
    background: #f0f7f0 !important;
    border-color: #d0e0d0 !important;
}

.jscp-protection-row.jscp-protection-active {
    background: #eef7ee !important;
    border-color: #10b981 !important;
}

/* Icon - Package/document with checkmark */
.jscp-protection-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.jscp-protection-icon svg {
    width: 36px !important;
    height: 36px !important;
    color: #10b981 !important;
}

/* Info section - title and description */
.jscp-protection-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.jscp-protection-title {
    font-size: 14px;
    font-weight: 600 !important;
    color: var(--jscp-text, #1f2937);
    margin: 0 !important;
    line-height: 1.3 !important;
}

.jscp-protection-desc {
    font-size: 12px;
    color: var(--jscp-text-muted, #6b7280);
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Right side - price and toggle */
.jscp-protection-right {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.jscp-protection-price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jscp-text, #1f2937) !important;
    white-space: nowrap !important;
}

.jscp-protection-price .woocommerce-Price-amount {
    color: inherit !important;
    font-weight: inherit !important;
}

.jscp-protection-active .jscp-protection-price {
    color: #10b981 !important;
}

/* Hide old complex design elements */
.jscp-protection-wrapper,
.jscp-protection-card,
.jscp-protection-badge,
.jscp-protection-main,
.jscp-protection-icon-wrapper,
.jscp-protection-icon-bg,
.jscp-protection-content,
.jscp-protection-top,
.jscp-protection-pricing,
.jscp-protection-description,
.jscp-protection-features,
.jscp-protection-action,
.jscp-protection-toggle-wrapper,
.jscp-protection-toggle-track,
.jscp-protection-toggle-thumb,
.jscp-protection-toggle-text {
    display: none !important;
}

/* Legacy support */
.jscp-protection {
    display: none !important;
}

/* Toggle Switch */
.jscp-toggle {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.jscp-toggle input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.jscp-toggle-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--jscp-border) !important;
    border-radius: 24px !important;
    transition: background 0.3s ease !important;
}

.jscp-toggle-slider::before {
    position: absolute !important;
    content: '' !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background: var(--jscp-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.jscp-toggle input:checked + .jscp-toggle-slider {
    background: var(--jscp-success) !important;
}

.jscp-toggle input:checked + .jscp-toggle-slider::before {
    transform: translateX(20px) !important;
}

/* Legacy protection toggle support */
.jscp-protection-toggle {
    width: 40px !important;
    height: 22px !important;
    background: var(--jscp-border) !important;
    border-radius: 11px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    transition: background var(--jscp-transition-fast) !important;
}

.jscp-protection-toggle::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 18px !important;
    height: 18px !important;
    background: var(--jscp-bg) !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: transform var(--jscp-transition-fast) !important;
}

.jscp-protection-active .jscp-protection-toggle {
    background: var(--jscp-success) !important;
}

.jscp-protection-active .jscp-protection-toggle::after {
    transform: translateX(18px) !important;
}

/* ============================================
   DISCOUNTS
   ============================================ */
.jscp-discounts {
    padding: 16px 20px !important;
    border-top: 1px solid var(--jscp-border) !important;
}

.jscp-discounts-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
    margin: 0 0 12px !important;
}

.jscp-discounts-title svg {
    width: 16px !important;
    height: 16px !important;
    stroke: var(--jscp-success) !important;
}

.jscp-discount-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.jscp-discount-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
}

.jscp-discount-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 2px 8px !important;
    background: #ecfdf5 !important;
    color: var(--jscp-success) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: var(--jscp-radius-xs) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

.jscp-discount-badge::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'%3E%3C/path%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.jscp-discount-code {
    color: var(--jscp-success) !important;
}

.jscp-discount-amount {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--jscp-success) !important;
    opacity: 0.8 !important;
}

.jscp-discount-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    margin-left: auto !important;
    background: transparent !important;
    cursor: pointer !important;
    opacity: 0.5 !important;
    transition: opacity var(--jscp-transition-fast) !important;
}

.jscp-discount-remove:hover {
    opacity: 1 !important;
}

.jscp-discount-remove svg {
    width: 14px !important;
    height: 14px !important;
    stroke: var(--jscp-success) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.jscp-footer {
    position: relative !important;
    padding: 16px 20px 20px !important;
    border-top: 1px solid var(--jscp-border) !important;
    background: var(--jscp-bg) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

/* Cart Totals */
.jscp-totals {
    margin-bottom: 16px !important;
}

.jscp-totals-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
}

.jscp-totals-label {
    font-size: 14px !important;
    color: var(--jscp-text-muted) !important;
}

.jscp-totals-value {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--jscp-text) !important;
}

.jscp-totals-row.jscp-totals-total {
    padding-top: 12px !important;
    margin-top: 8px !important;
    border-top: 1px solid var(--jscp-border) !important;
}

.jscp-totals-total .jscp-totals-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
}

.jscp-totals-total .jscp-totals-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--jscp-text) !important;
}

.jscp-totals-row.jscp-total {
    padding-top: 12px !important;
    margin-top: 8px !important;
    border-top: 1px solid var(--jscp-border) !important;
}

.jscp-total .jscp-totals-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
}

.jscp-total .jscp-totals-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--jscp-text) !important;
}

.jscp-discount-value {
    color: var(--jscp-success) !important;
}

/* Savings Badge */
.jscp-savings-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    margin-top: 12px !important;
    background: #ecfdf5 !important;
    color: var(--jscp-success) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: var(--jscp-radius-xs) !important;
}

.jscp-savings-badge svg {
    width: 14px !important;
    height: 14px !important;
    stroke: var(--jscp-success) !important;
}

/* Checkout Button - Fully Isolated from Theme/Elementor */
.jscp-checkout-btn {
    /* Complete isolation - reset ALL inherited styles */
    all: unset !important;

    /* Re-apply box model */
    box-sizing: border-box !important;
    -webkit-box-sizing: border-box !important;

    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 24px !important;
    margin: 0 !important;

    /* Typography - Explicit colors that WON'T inherit */
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;

    /* EXPLICIT COLOR VALUES - No inheritance possible */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    /* Background */
    background-color: var(--jscp-primary, #1e3a5f) !important;
    background-image: none !important;

    /* Border */
    border: none !important;
    border-radius: var(--jscp-radius-sm, 8px) !important;
    outline: none !important;

    /* Visual Effects */
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2) !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* Interaction */
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;

    /* Transitions */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;

    /* Appearance reset */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Position context */
    position: relative !important;
    z-index: 1 !important;
}

/* Hover state - also with explicit colors */
.jscp-checkout-btn:hover,
.jscp-checkout-btn:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: var(--jscp-accent, #2563eb) !important;
    background-image: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Active/Pressed state */
.jscp-checkout-btn:active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

/* Visited state (for links) */
.jscp-checkout-btn:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Icon styling */
.jscp-checkout-btn svg {
    width: 18px !important;
    height: 18px !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
    stroke: #ffffff !important;
    fill: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Ensure span inside button also inherits correct color */
.jscp-checkout-btn span,
.jscp-checkout-btn .jscp-btn-text {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Express Checkout */
.jscp-express-checkout {
    margin-top: 12px !important;
}

.jscp-express-divider {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.jscp-express-divider::before,
.jscp-express-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: var(--jscp-border) !important;
}

.jscp-express-divider span {
    font-size: 11px !important;
    color: var(--jscp-text-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.jscp-express-buttons {
    display: flex !important;
    gap: 8px !important;
}

.jscp-express-btn {
    flex: 1 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--jscp-radius-xs) !important;
    cursor: pointer !important;
    transition: all var(--jscp-transition-fast) !important;
    border: 1px solid var(--jscp-border) !important;
    background: var(--jscp-bg) !important;
}

.jscp-express-btn:hover {
    border-color: var(--jscp-text-muted) !important;
}

.jscp-express-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
}

.jscp-express-btn span {
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Apple Pay Button - Clean black button with white Apple Pay logo */
.jscp-express-btn.jscp-apple-pay {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: var(--jscp-radius-sm) !important;
}

.jscp-express-btn.jscp-apple-pay svg {
    width: 100% !important;
    height: 40px !important;
    display: block !important;
}

/* Style the Apple Pay SVG - keep the black rounded rectangle background visible */
.jscp-express-btn.jscp-apple-pay svg path:first-child {
    fill: #000000 !important;
    rx: 8 !important;
}

/* Ensure Apple logo stays white */
.jscp-express-btn.jscp-apple-pay svg path:not(:first-child) {
    fill: #ffffff !important;
}

.jscp-express-btn.jscp-apple-pay:hover svg path:first-child {
    fill: #1a1a1a !important;
}

/* Google Pay Button - Clean white button with colorful logo */
.jscp-express-btn.jscp-google-pay {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: var(--jscp-radius-sm) !important;
}

.jscp-express-btn.jscp-google-pay svg {
    width: 100% !important;
    height: 40px !important;
    display: block !important;
}

/* Style the Google Pay SVG - keep the white rounded rectangle background visible */
.jscp-express-btn.jscp-google-pay svg path:first-child {
    fill: #ffffff !important;
    stroke: #dadce0 !important;
    stroke-width: 1 !important;
}

.jscp-express-btn.jscp-google-pay:hover svg path:first-child {
    fill: #f8f9fa !important;
}

.jscp-express-btn.jscp-shop-pay {
    background: #5a31f4 !important;
    border-color: #5a31f4 !important;
}

.jscp-express-btn.jscp-shop-pay svg {
    fill: #ffffff !important;
    stroke: none !important;
    width: 60px !important;
    height: 16px !important;
}

.jscp-express-btn.jscp-paypal {
    background: #ffc439 !important;
    border-color: #ffc439 !important;
}

.jscp-express-btn.jscp-paypal svg {
    fill: #003087 !important;
    stroke: none !important;
    width: 60px !important;
    height: 16px !important;
}

/* Express button text visibility */
.jscp-express-btn.jscp-apple-pay span,
.jscp-express-btn.jscp-shop-pay span {
    color: #ffffff !important;
}

.jscp-express-btn.jscp-google-pay span {
    color: var(--jscp-text) !important;
}

.jscp-express-btn.jscp-paypal span {
    color: #003087 !important;
}

.jscp-express-btn img {
    height: 20px !important;
    width: auto !important;
}

.jscp-express-btn.jscp-apple-pay:hover {
    background: #1a1a1a !important;
}

/* Google Pay hover is defined above with the button */

.jscp-express-btn.jscp-shop-pay:hover {
    background: #4a28c9 !important;
}

.jscp-express-btn.jscp-paypal:hover {
    background: #f0b72a !important;
}

/* Continue Shopping */
.jscp-continue,
.jscp-continue-shopping {
    display: block !important;
    text-align: center !important;
    padding: 12px 0 0 !important;
    font-size: 13px !important;
    color: var(--jscp-text-muted) !important;
    cursor: pointer !important;
    transition: color var(--jscp-transition-fast) !important;
}

.jscp-continue:hover,
.jscp-continue-shopping:hover {
    color: var(--jscp-accent) !important;
}

/* Trust Badges - Clean and Professional */
.jscp-trust-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 16px 12px !important;
    margin-top: 12px !important;
    border-top: 1px solid var(--jscp-border-light) !important;
    background: transparent !important;
}

.jscp-trust-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--jscp-badges-text, #6b7280) !important;
    opacity: 1 !important;
    transition: all var(--jscp-transition-fast) !important;
    flex: 1 !important;
    min-width: 60px !important;
    max-width: 80px !important;
    text-align: center !important;
    cursor: default !important;
}

.jscp-trust-badge:hover {
    color: var(--jscp-text) !important;
}

.jscp-trust-badge:hover svg {
    transform: scale(1.1) !important;
}

.jscp-trust-badge svg {
    width: 28px !important;
    height: 28px !important;
    stroke: var(--jscp-badges-icon, #2563eb) !important;
    stroke-width: 1.75 !important;
    opacity: 1 !important;
    transition: transform var(--jscp-transition-fast) !important;
}

.jscp-trust-badge span {
    white-space: nowrap !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

/* ============================================
   EMPTY CART STATE
   ============================================ */
.jscp-empty-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 40px !important;
    text-align: center !important;
}

.jscp-empty-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 24px !important;
    opacity: 0.5 !important;
}

.jscp-empty-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: var(--jscp-text-light) !important;
}

.jscp-empty-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--jscp-text) !important;
    margin: 0 0 8px !important;
}

.jscp-empty-message {
    font-size: 14px !important;
    color: var(--jscp-text-muted) !important;
    margin: 0 0 24px !important;
}

.jscp-empty-btn,
.jscp-empty-button,
.jscp-sidecart .jscp-empty-button,
.jscp-sidecart a.jscp-empty-button,
a.jscp-empty-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: var(--jscp-accent) !important;
    border-radius: var(--jscp-radius-sm) !important;
    cursor: pointer !important;
    transition: all var(--jscp-transition) !important;
    text-decoration: none !important;
    border: none !important;
}

.jscp-empty-btn:hover,
.jscp-empty-button:hover,
.jscp-sidecart .jscp-empty-button:hover,
.jscp-sidecart a.jscp-empty-button:hover,
a.jscp-empty-button:hover {
    background: var(--jscp-primary) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.jscp-empty-btn:visited,
.jscp-empty-button:visited,
.jscp-sidecart a.jscp-empty-button:visited,
a.jscp-empty-button:visited {
    color: #ffffff !important;
}

.jscp-empty-btn:active,
.jscp-empty-button:active,
.jscp-sidecart a.jscp-empty-button:active,
a.jscp-empty-button:active {
    color: #ffffff !important;
}

.jscp-empty-btn svg,
.jscp-empty-button svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #ffffff !important;
}

/* ============================================
   FLOATING CART TRIGGER
   ============================================ */
.jscp-cart-trigger {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--jscp-primary, #1e3a5f) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 999990 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.jscp-cart-trigger:hover {
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.5) !important;
}

.jscp-cart-icon,
.jscp-cart-trigger > svg,
.jscp-cart-trigger svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
    fill: none !important;
    display: block !important;
}

.jscp-cart-count,
.jscp-trigger-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: var(--jscp-urgency, #dc2626) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.jscp-cart-count[data-count="0"] {
    display: none !important;
}

/* ============================================
   LOADING STATE - Subtle, No Flicker
   ============================================ */
.jscp-loading {
    /* NO position relative or overlay - prevents content shift */
    pointer-events: none !important;
}

/* Subtle loading indicator in footer instead of full overlay */
.jscp-loading .jscp-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, var(--jscp-accent), transparent) !important;
    animation: jscp-loading-bar 1s ease-in-out infinite !important;
    z-index: 20 !important;
}

@keyframes jscp-loading-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Subtle opacity reduction during loading - but keep content visible */
.jscp-loading .jscp-body {
    opacity: 0.85 !important;
    transition: opacity 0.15s ease !important;
}

.jscp-spinner {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid var(--jscp-border) !important;
    border-top-color: var(--jscp-accent) !important;
    border-radius: 50% !important;
    animation: jscp-spin 0.6s linear infinite !important;
}

@keyframes jscp-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   CART ITEM ANIMATIONS - Smooth Transitions
   ============================================ */
.jscp-cart-item {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.jscp-cart-item.jscp-removing {
    opacity: 0 !important;
    transform: translateX(20px) scale(0.95) !important;
    pointer-events: none !important;
}

.jscp-cart-item.jscp-item-adding {
    animation: jscp-item-slide-in 0.3s ease forwards !important;
}

@keyframes jscp-item-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth value updates */
.jscp-qty-input,
.jscp-item-price,
.jscp-subtotal-value,
.jscp-total-value,
.jscp-shipping-value {
    transition: color 0.2s ease !important;
}

/* Flash effect when value changes */
.jscp-count-updating {
    animation: jscp-count-pulse 0.3s ease !important;
}

@keyframes jscp-count-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--jscp-accent); }
}

/* Protection card smooth toggle */
.jscp-protection-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

/* Progress bar smooth animation */
.jscp-progress-fill {
    transition: width 0.5s ease !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media screen and (max-width: 480px) {
    .jscp-sidecart {
        width: 100vw !important;
    }

    .jscp-cart-trigger {
        bottom: 16px !important;
        right: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }

    .jscp-upsell-item {
        flex: 0 0 120px !important;
    }

    .jscp-upsell-image {
        height: 80px !important;
    }

    .jscp-express-buttons {
        flex-wrap: wrap !important;
    }

    .jscp-express-btn {
        flex: 1 1 calc(50% - 4px) !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes jscp-slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only apply slide-in animation on initial page load, not during AJAX updates */
.jscp-sidecart:not(.jscp-updated) .jscp-cart-item {
    animation: jscp-slideIn 0.3s ease forwards !important;
}

.jscp-sidecart:not(.jscp-updated) .jscp-cart-item:nth-child(1) { animation-delay: 0s; }
.jscp-sidecart:not(.jscp-updated) .jscp-cart-item:nth-child(2) { animation-delay: 0.05s; }
.jscp-sidecart:not(.jscp-updated) .jscp-cart-item:nth-child(3) { animation-delay: 0.1s; }
.jscp-sidecart:not(.jscp-updated) .jscp-cart-item:nth-child(4) { animation-delay: 0.15s; }
.jscp-sidecart:not(.jscp-updated) .jscp-cart-item:nth-child(5) { animation-delay: 0.2s; }

/* After first AJAX update, disable auto-animation to prevent flicker */
.jscp-sidecart.jscp-updated .jscp-cart-item {
    animation: none !important;
}

/* Price Update Animation */
@keyframes jscp-priceFlash {
    0% {
        color: var(--jscp-success, #059669);
        transform: scale(1.05);
    }
    100% {
        color: inherit;
        transform: scale(1);
    }
}

.jscp-price-updated {
    animation: jscp-priceFlash 0.3s ease-out !important;
}

.jscp-totals-value {
    transition: color 0.2s ease, transform 0.2s ease !important;
}

/* Loading state improvements */
.jscp-sidecart.jscp-loading .jscp-totals-value {
    opacity: 0.6 !important;
}

.jscp-sidecart.jscp-loading .jscp-qty-input {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

/* Item updating state (during quantity change) */
.jscp-cart-item.jscp-updating {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.jscp-cart-item.jscp-updating .jscp-qty-input {
    background-color: var(--jscp-bg-secondary, #f1f5f9) !important;
}
