/* DigiCenter Cross Sell - Modern Inline Design */
/* Based on Tailwind CSS design patterns with custom styling */

/* Ensure sticky elements work properly - don't interfere with theme sticky functionality */
.dcs-cross-sells-wrapper {
    /* Allow sticky positioning to work properly */
    position: relative;
    z-index: 1;
}

/* Prevent horizontal scroll - Only for plugin wrapper */
.dcs-cross-sells-wrapper {
    /* Removed overflow-x: hidden to prevent sticky conflicts */
    width: 100% !important;
    max-width: 100% !important;
    contain: layout style !important;
    box-sizing: border-box !important;
}

/* Ensure proper box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix for potential layout issues */
.dcs-cross-sells-wrapper * {
    max-width: 100%;
}

/* Plugin-specific overflow prevention */
.dcs-cross-sells-wrapper * {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.dcs-cross-sells-wrapper * {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Prevent text overflow */
.dcs-product-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Plugin-specific image overflow prevention */
.dcs-cross-sells-wrapper img:not(.dcs-product-image img) {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent SVG overflow */
.dcs-cross-sells-wrapper svg:not(.dcs-product-image svg) {
    max-width: 100% !important;
    height: auto !important;
}

/* Base Wrapper */
.dcs-cross-sells-wrapper {
    font-family: 'IRANYekanX', sans-serif !important;
    max-width: 64rem !important;
    margin: 1.5rem auto !important;
    direction: rtl !important;
    text-align: right !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    /* Removed overflow-x: hidden to prevent sticky conflicts */
    box-sizing: border-box !important;
}

/* Header Section */
.dcs-header-section {
    margin-bottom: 1rem !important;
    text-align: right !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    position: relative !important;
    /* Removed overflow: hidden to prevent sticky conflicts */
}

.dcs-header-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 100px !important;
    height: 100px !important;
    background: radial-gradient(circle, rgba(212, 20, 31, 0.1) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    transform: translate(30px, -30px) !important;
}

.dcs-header-section::after {
    content: '🛍️' !important;
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    font-size: 1.5rem !important;
    opacity: 0.6 !important;
}

.dcs-section-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.4 !important;
    font-family: 'IRANYekanX' !important;
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.dcs-section-title::before {
    content: '' !important;
    width: 4px !important;
    height: 20px !important;
    background: linear-gradient(to bottom, #d4141f, #ef4444) !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}



/* Product List Container */
.dcs-products-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* Individual Product Box */
.dcs-cross-sell-box {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #f3f4f6 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Removed overflow: hidden to prevent sticky conflicts */
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.dcs-cross-sell-box:hover {
    background-color: #fafafa !important;
}

/* Custom Checkbox */
.dcs-cross-sell-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 3px !important;
    background: white !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.dcs-cross-sell-checkbox:checked {
    background: #d4141f !important;
    border-color: #d4141f !important;
}

.dcs-cross-sell-checkbox:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: bold !important;
}

.dcs-cross-sell-checkbox:hover {
    border-color: #d4141f !important;
}

/* Product Image */
.dcs-product-image {
    flex-shrink: 0 !important;
    width: 3rem !important;
    height: 3rem !important;
}

.dcs-product-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.dcs-product-image .image-placeholder {
    width: 3rem !important;
    height: 3rem !important;
    background-color: #f3f4f6 !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dcs-product-image img {
    width: 3rem !important;
    height: 3rem !important;
    object-fit: contain !important;
    border-radius: 0.375rem !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.dcs-product-image svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: #6b7280 !important;
}

/* Product Info */
.dcs-product-info {
    flex: 1 !important;
    min-width: 0 !important;
    /* Removed overflow: hidden to prevent sticky conflicts */
}

.dcs-product-title {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
    margin: 0 !important;
}

/* Product Price and Details */
.dcs-product-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
}

.dcs-product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.dcs-custom-price {
    color: #059669;
    font-weight: 700;
    font-size: 0.9rem;
}

/* View Details Link */
.dcs-view-details {
    font-size: 0.75rem !important;
    color: #d4141f !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.dcs-view-details:hover {
    text-decoration: underline !important;
    color: #b91c1c !important;
}



/* Action Bar */
.dcs-action-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    background-color: #f9fafb !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
}

.dcs-action-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dcs-select-all-btn {
    font-size: 0.875rem;
    color: #d4141f;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}

.dcs-select-all-btn:hover {
    text-decoration: underline;
}

.dcs-selected-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.dcs-action-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dcs-total-price {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.dcs-add-selected-btn {
    background-color: #d4141f !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.dcs-add-selected-btn:hover:not(:disabled) {
    background-color: #b91c1c !important;
}

.dcs-add-selected-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Loading State */
.dcs-add-selected-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.dcs-add-selected-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Modern Notification System */
.dcs-notification-container {
    margin-bottom: 1rem !important;
}

.dcs-message {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    font-family: 'IRANYekanX' !important;
    position: relative !important;
    /* Removed overflow: hidden to prevent sticky conflicts */
    opacity: 1 !important;
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.dcs-message::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    opacity: 0.1 !important;
    transform: translate(20px, -20px) !important;
}

.dcs-message-icon {
    font-size: 1.25rem !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
    position: relative !important;
}

.dcs-message-content {
    flex: 1 !important;
    z-index: 1 !important;
    position: relative !important;
}

.dcs-message-close {
    /* Reset all possible theme interference */
    all: unset !important;
    
    /* Core styles */
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 1 !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    /* Reset inherited properties */
    font-family: inherit !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    text-align: center !important;
}

/* Icon-only close button */
.dcs-message-close.icon-only {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    /* Removed overflow: hidden to prevent sticky conflicts */
}

.dcs-message-close.icon-only:before,
.dcs-message-close.icon-only:after {
    display: none !important;
}

.dcs-message-close.icon-only:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

.dcs-message-close.icon-only:active {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(0.95) !important;
}

/* Success Message */
.dcs-message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
}

.dcs-message.success::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%) !important;
}

/* Error Message */
.dcs-message.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: 1px solid #dc2626 !important;
}

.dcs-message.error::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%) !important;
}

/* Warning Message */
.dcs-message.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 1px solid #d97706 !important;
}

.dcs-message.warning::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%) !important;
}

/* Animation */
@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dcs-message.fade-out {
    animation: fadeOutNotification 0.3s ease forwards !important;
}

@keyframes fadeOutNotification {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Responsive Design - Card Layout for Mobile */
@media (max-width: 768px) {
    .dcs-cross-sells-wrapper {
        margin: 1rem auto;
        padding: 1rem;
        /* Removed overflow-x: hidden to prevent sticky conflicts */
        box-sizing: border-box;
    }
    
    /* Card-based layout for mobile */
    .dcs-cross-sell-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid #e5e7eb !important;
        background: #ffffff !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    .dcs-cross-sell-box:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
        background-color: #ffffff !important;
        border-color: #d4141f !important;
    }
    
    /* Selected card styling */
    .dcs-cross-sell-box.selected {
        border-color: #d4141f !important;
        background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
        box-shadow: 0 4px 16px rgba(212, 20, 31, 0.2) !important;
        transform: translateY(-1px) !important;
    }
    
    .dcs-cross-sell-box.selected:hover {
        border-color: #b91c1c !important;
        background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%) !important;
        box-shadow: 0 6px 20px rgba(212, 20, 31, 0.25) !important;
    }
    
    /* Mobile checkbox positioning - larger and more prominent */
    .dcs-cross-sell-checkbox {
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 24px !important;
        height: 24px !important;
        z-index: 2 !important;
        cursor: pointer !important;
        border: 2px solid #d4141f !important;
        border-radius: 4px !important;
        background: white !important;
        transition: all 0.2s ease !important;
    }
    
    .dcs-cross-sell-checkbox:checked {
        background: #d4141f !important;
        border-color: #d4141f !important;
        transform: scale(1.1) !important;
    }
    
    .dcs-cross-sell-checkbox:checked::after {
        content: '✓' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
    }
    
    /* Mobile product image */
    .dcs-product-image {
        width: 100% !important;
        height: 120px !important;
        margin-bottom: 0.5rem !important;
        border-radius: 0.5rem !important;
        overflow: hidden !important;
        background: #f8fafc !important;
    }
    
    .dcs-product-image a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .dcs-product-image .image-placeholder,
    .dcs-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0.5rem !important;
    }
    
    .dcs-product-image .dcs-product-placeholder {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f1f5f9 !important;
    }
    
    .dcs-product-image .dcs-placeholder-icon {
        width: 2rem !important;
        height: 2rem !important;
        color: #94a3b8 !important;
    }
    
    /* Mobile product info */
    .dcs-product-info {
        flex: 1 !important;
        min-width: 0 !important;
        padding-right: 2rem !important; /* Space for checkbox */
    }
    
    .dcs-product-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        color: #1e293b !important;
    }
    
    /* Mobile product actions */
    .dcs-product-actions {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        margin-top: 0.5rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px solid #f1f5f9 !important;
    }
    
    .dcs-product-price {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: #059669 !important;
    }
    
    .dcs-custom-price {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #059669 !important;
    }
    
    .dcs-view-details {
        font-size: 0.875rem !important;
        padding: 0.5rem 1rem !important;
        background: #d4141f !important;
        color: white !important;
        border-radius: 0.375rem !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
    }
    
    .dcs-view-details:hover {
        background: #b91c1c !important;
        color: white !important;
        text-decoration: none !important;
        transform: translateY(-1px) !important;
    }
    
    /* Mobile action bar */
    .dcs-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1rem !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-radius: 0.75rem !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .dcs-action-left,
    .dcs-action-right {
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .dcs-action-left {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .dcs-action-right {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .dcs-total-price {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        text-align: center !important;
        padding: 0.75rem !important;
        background: white !important;
        border-radius: 0.5rem !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .dcs-add-selected-btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 0.5rem !important;
        box-sizing: border-box !important;
        background: linear-gradient(135deg, #d4141f 0%, #ef4444 100%) !important;
        box-shadow: 0 2px 8px rgba(212, 20, 31, 0.3) !important;
    }
    
    .dcs-add-selected-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(212, 20, 31, 0.4) !important;
    }
    
    /* Mobile header improvements */
    .dcs-header-section {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .dcs-section-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 480px) {
    .dcs-cross-sells-wrapper {
        margin: 0.5rem auto;
        padding: 0.75rem;
        /* Removed overflow-x: hidden to prevent sticky conflicts */
        box-sizing: border-box;
    }
    
    /* Smaller mobile cards */
    .dcs-cross-sell-box {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
        border-radius: 0.5rem !important;
        /* Removed overflow: hidden to prevent sticky conflicts */
        box-sizing: border-box !important;
    }
    
    /* Smaller mobile product image */
    .dcs-product-image {
        height: 100px !important;
        margin-bottom: 0.375rem !important;
    }
    
    .dcs-product-image .image-placeholder,
    .dcs-product-image img {
        border-radius: 0.375rem !important;
    }
    
    /* Smaller mobile checkbox - still larger than before */
    .dcs-cross-sell-checkbox {
        width: 22px !important;
        height: 22px !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        border: 2px solid #d4141f !important;
        border-radius: 4px !important;
    }
    
    .dcs-cross-sell-checkbox:checked::after {
        font-size: 12px !important;
    }
    
    /* Smaller mobile product info */
    .dcs-product-info {
        padding-right: 1.5rem !important; /* Space for smaller checkbox */
    }
    
    .dcs-product-title {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 0.375rem !important;
    }
    
    /* Smaller mobile product actions */
    .dcs-product-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        margin-top: 0.375rem !important;
        padding-top: 0.5rem !important;
    }
    
    .dcs-product-price {
        font-size: 0.875rem !important;
        text-align: center !important;
    }
    
    .dcs-custom-price {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .dcs-view-details {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0.75rem !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Smaller mobile action bar */
    .dcs-action-bar {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
        /* Removed overflow: hidden to prevent sticky conflicts */
        box-sizing: border-box !important;
    }
    
    .dcs-total-price {
        font-size: 1rem !important;
        padding: 0.5rem !important;
    }
    
    .dcs-add-selected-btn {
        padding: 0.875rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Smaller mobile header */
    .dcs-header-section {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .dcs-section-title {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
    }
    
    .dcs-section-description {
        font-size: 0.8125rem;
    }
}

/* RTL Support */
[dir="rtl"] .dcs-cross-sells-wrapper {
    text-align: right;
}

[dir="rtl"] .dcs-add-selected-btn.loading::after {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dcs-cross-sell-box {
        border-color: #000;
    }
    
    .dcs-cross-sell-checkbox {
        border-color: #000;
    }
    
    .dcs-action-bar {
        border-color: #000;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 320px) {
    .dcs-cross-sells-wrapper {
        margin: 0.25rem auto;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Very small mobile cards */
    .dcs-cross-sell-box {
        padding: 0.5rem !important;
        gap: 0.375rem !important;
        border-radius: 0.375rem !important;
    }
    
    /* Very small mobile product image */
    .dcs-product-image {
        height: 80px !important;
        margin-bottom: 0.25rem !important;
    }
    
    .dcs-product-image .image-placeholder,
    .dcs-product-image img {
        border-radius: 0.25rem !important;
    }
    
    /* Very small mobile checkbox - still touch-friendly */
    .dcs-cross-sell-checkbox {
        width: 20px !important;
        height: 20px !important;
        top: 0.375rem !important;
        right: 0.375rem !important;
        border: 2px solid #d4141f !important;
        border-radius: 4px !important;
    }
    
    .dcs-cross-sell-checkbox:checked::after {
        font-size: 11px !important;
    }
    
    /* Very small mobile product info */
    .dcs-product-info {
        padding-right: 1.25rem !important; /* Space for very small checkbox */
    }
    
    .dcs-product-title {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Very small mobile product actions */
    .dcs-product-actions {
        gap: 0.375rem !important;
        margin-top: 0.25rem !important;
        padding-top: 0.375rem !important;
    }
    
    .dcs-product-price {
        font-size: 0.8125rem !important;
    }
    
    .dcs-custom-price {
        font-size: 0.875rem !important;
    }
    
    .dcs-view-details {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem !important;
    }
    
    /* Very small mobile action bar */
    .dcs-action-bar {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .dcs-total-price {
        font-size: 0.875rem !important;
        padding: 0.375rem !important;
    }
    
    .dcs-add-selected-btn {
        padding: 0.75rem !important;
        font-size: 0.8125rem !important;
    }
    
    /* Very small mobile header */
    .dcs-header-section {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .dcs-section-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
}

/* Prevent layout shift */
.dcs-cross-sells-wrapper {
    contain: layout style paint;
}

/* Ensure smooth animations */
.dcs-cross-sell-box {
    will-change: transform;
}

/* Optimize for performance */
.dcs-product-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}