/* Quick View Modal Styles - Modern Design */
.epofw-modal-datepicker,
.epofw-modal-timepicker,
.epofw-modal-select2,
.epofw-modal-select2-dropdown,
.epofw-modal-colorpicker {
    z-index: 99999999 !important;
}

.epofw-quick-view-container {
    position: relative;
    margin-bottom: 15px;
}

/* Options Summary - Displays after Apply button */
.epofw-options-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
}

.epofw-options-summary .epofw-summary-content {
    margin-bottom: 8px;
}

.epofw-options-summary .epofw-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.epofw-options-summary .epofw-summary-list li {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(34, 197, 94, 0.3);
    font-size: 13px;
    line-height: 1.4;
}

.epofw-options-summary .epofw-summary-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.epofw-options-summary .epofw-summary-label {
    color: #166534;
    font-weight: 600;
    margin-right: 4px;
    flex-shrink: 0;
}

.epofw-options-summary .epofw-summary-value {
    color: #15803d;
    font-weight: 500;
    word-break: break-word;
}

.epofw-options-summary .epofw-edit-options {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.epofw-options-summary .epofw-edit-options:hover {
    background: #ffffff;
    color: #15803d;
    text-decoration: none;
    border-color: #22c55e;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.15);
}

.epofw-options-summary .epofw-edit-options::before {
    content: '✏️';
    font-size: 11px;
}

.epofw-quick-view-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.epofw-quick-view-summary:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.epofw-field-summary {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.epofw-quick-view-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
}

.epofw-quick-view-trigger:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.epofw-quick-view-trigger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Modal Styles - Modern Design */
.epofw-quick-view-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show modal when open class is added */
.epofw-quick-view-modal.epofw-modal-open {
    display: flex !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.epofw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    backdrop-filter: blur(4px);
}

.epofw-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.epofw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px 16px 0 0;
    min-height: 70px;
}

.epofw-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.epofw-modal-close {
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.epofw-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: scale(1.1);
}

.epofw-modal-close:active {
    transform: scale(0.95);
}

.epofw-modal-body {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

/* Enhanced Form Elements */
.epofw-modal-body input[type="number"],
.epofw-modal-body input[type="text"],
.epofw-modal-body input[type="email"],
.epofw-modal-body input[type="tel"],
.epofw-modal-body input[type="url"],
.epofw-modal-body input[type="password"],
.epofw-modal-body textarea,
.epofw-modal-body select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    box-sizing: border-box;
}

.epofw-modal-body select {
    padding: 4px 16px;
}

.epofw-modal-body input:focus,
.epofw-modal-body textarea:focus,
.epofw-modal-body select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.epofw-modal-body input:hover,
.epofw-modal-body textarea:hover,
.epofw-modal-body select:hover {
    border-color: #cbd5e1;
}

/* Modern Radio Buttons and Checkboxes */
.epofw-modal-body input[type="radio"],
.epofw-modal-body input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    accent-color: #3b82f6;
    transform: scale(1.2);
}

.epofw-modal-body input[type="radio"]:focus,
.epofw-modal-body input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Radio and Checkbox Labels */
.epofw-modal-body label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}

.epofw-modal-body label:hover {
    color: #1e293b;
}

/* Color Switcher Styles */
.epofw-modal-content .epofw-color-option {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.epofw-modal-content .epofw-color-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.epofw-modal-content .epofw-color-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.epofw-modal-content .epofw-color-option.selected::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Hide radio buttons in color switcher */
.epofw-modal-content .epofw-color-option input[type="radio"],
.epofw-modal-content .epofw-color-radio-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* Hide radio buttons in color switcher containers */
.epofw-modal-content .epofw_colorswitcher_field input[type="radio"],
.epofw-modal-content .epofw-color-switcher-container input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.epofw-modal-content .epofw-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-right: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
                linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.epofw-modal-content .epofw-color-swatch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--swatch-color, #e2e8f0);
    border-radius: 4px;
}

/* Fix for the specific color swatch span */
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
                linear-gradient(-45deg, transparent 75%, #f1f5f9 75%) !important;
    background-size: 8px 8px !important;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-right: 8px !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit !important;
    border-radius: 4px;
}

/* Active Color Swatch Styles - Override invalid inline styles */
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value.colorswitcher_active {
    background: var(--active-color, #3b82f6) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value.colorswitcher_active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--active-color, #3b82f6) !important;
    border-radius: 4px;
}

/* Override invalid inline background-color styles */
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color"] {
    background: var(--active-color, #3b82f6) !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--active-color, #3b82f6) !important;
    border-radius: 4px;
}

/* Specific color overrides for common colors */
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: red"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #ff0000"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(255,0,0)"] {
    background: #ef4444 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: blue"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #0000ff"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(0,0,255)"] {
    background: #3b82f6 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: green"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #00ff00"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(0,255,0)"] {
    background: #10b981 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: yellow"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #ffff00"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(255,255,0)"] {
    background: #f59e0b !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: purple"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #800080"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(128,0,128)"] {
    background: #8b5cf6 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: orange"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #ffa500"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(255,165,0)"] {
    background: #f97316 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: pink"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #ffc0cb"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(255,192,203)"] {
    background: #ec4899 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: black"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #000000"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(0,0,0)"] {
    background: #000000 !important;
}

.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: white"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #ffffff"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rgb(255,255,255)"] {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
}

/* Handle invalid color values */
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: rrrrrr"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: invalid"],
.epofw-modal-content .epofw_colorswitcher_span.epofw_switcher_value[style*="background-color: #invalid"] {
    background: #3b82f6 !important;
}

/* Override any existing styles for color switcher buttons */
.epofw-modal-content .epofw_colorswitcher_field .button {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    margin-right: 16px !important;
    margin-bottom: 12px !important;
}

.epofw-modal-content .epofw_colorswitcher_field .button:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.epofw-modal-content .epofw_colorswitcher_field .button.selected {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.epofw-modal-content .epofw_colorswitcher_field .button.selected::after {
    content: '✓' !important;
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    width: 20px !important;
    height: 20px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

.epofw-modal-content .epofw_colorswitcher_field .button span {
    display: inline-block !important;
    position: static !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-right: 8px !important;
}

.epofw-modal-content .epofw-color-swatch.primary {
    --swatch-color: #3b82f6;
}

.epofw-modal-content .epofw-color-swatch.secondary {
    --swatch-color: #10b981;
}

.epofw-modal-content .epofw-color-swatch.accent {
    --swatch-color: #f59e0b;
}

.epofw-modal-content .epofw-color-swatch.neutral {
    --swatch-color: #6b7280;
}

.epofw-modal-content .epofw-color-swatch.red {
    --swatch-color: #ef4444;
}

.epofw-modal-content .epofw-color-swatch.blue {
    --swatch-color: #3b82f6;
}

.epofw-modal-content .epofw-color-swatch.green {
    --swatch-color: #10b981;
}

.epofw-modal-content .epofw-color-swatch.yellow {
    --swatch-color: #f59e0b;
}

.epofw-modal-content .epofw-color-swatch.purple {
    --swatch-color: #8b5cf6;
}

.epofw-modal-content .epofw-color-swatch.pink {
    --swatch-color: #ec4899;
}

.epofw-modal-content .epofw-color-swatch.orange {
    --swatch-color: #f97316;
}

.epofw-modal-content .epofw-color-swatch.teal {
    --swatch-color: #14b8a6;
}

.epofw-modal-content .epofw-color-swatch.indigo {
    --swatch-color: #6366f1;
}

.epofw-modal-content .epofw-color-swatch.cyan {
    --swatch-color: #06b6d4;
}

.epofw-modal-content .epofw-color-swatch.lime {
    --swatch-color: #84cc16;
}

.epofw-modal-content .epofw-color-swatch.emerald {
    --swatch-color: #10b981;
}

.epofw-modal-content .epofw-color-swatch.rose {
    --swatch-color: #f43f5e;
}

.epofw-modal-content .epofw-color-swatch.slate {
    --swatch-color: #64748b;
}

.epofw-modal-content .epofw-color-swatch.gray {
    --swatch-color: #6b7280;
}

.epofw-modal-content .epofw-color-swatch.zinc {
    --swatch-color: #71717a;
}

.epofw-modal-content .epofw-color-swatch.stone {
    --swatch-color: #78716c;
}

.epofw-modal-content .epofw-color-swatch.white {
    --swatch-color: #ffffff;
    border: 2px solid #e2e8f0;
}

.epofw-modal-content .epofw-color-swatch.black {
    --swatch-color: #000000;
}

/* Color Switcher Container */
.epofw-modal-content .epofw-color-switcher-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.epofw-modal-content .epofw-color-option-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

.epofw-modal-content .epofw-color-option-price {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-left: 4px;
}

/* Enhanced Color Option States */
.epofw-modal-content .epofw-color-option:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.epofw-modal-content .epofw-color-option:focus .epofw-color-swatch {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Disabled State */
.epofw-modal-content .epofw-color-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.epofw-modal-content .epofw-color-option.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Color Switcher with Radio Button */
.epofw-modal-content .epofw-color-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.epofw-modal-content .epofw-color-radio-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.epofw-modal-content .epofw-color-radio-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.epofw-modal-content .epofw-color-radio-option.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.epofw-modal-content .epofw-color-radio-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.epofw-modal-content .epofw-color-radio-option input[type="radio"]:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Color Switcher Section Header */
.epofw-modal-content .epofw-color-switcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.epofw-modal-content .epofw-color-switcher-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.epofw-modal-content .epofw-color-switcher-price {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

/* Slider Styles */
.epofw-modal-content .epofw-slider-container {
    margin-bottom: 20px;
}

.epofw-modal-content .epofw-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 10px 0;
}

.epofw-modal-content .epofw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.epofw-modal-content .epofw-slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.epofw-modal-content .epofw-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.epofw-modal-content .epofw-slider-value {
    display: inline-block;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-left: 12px;
}

/* Section Headers */
.epofw-modal-content .epofw-section-header {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.epofw-modal-content .epofw-section-header.with-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.epofw-modal-content .epofw-price-addition {
    font-size: 14px;
    color: #059669;
    font-weight: 500;
}

/* Quantity Input Styling */
.epofw-modal-content .epofw-quantity-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.epofw-modal-content .epofw-quantity-input {
    width: 80px !important;
    text-align: center;
    font-weight: 600;
}

/* Option Groups */
.epofw-modal-content .epofw-option-group {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.epofw-modal-content .epofw-option-group:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.epofw-modal-content .epofw_fields_tag_class {
    margin-bottom: 20px;
}

.epofw-modal-content .epofw_td_label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.epofw-modal-content .epofw-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 16px 16px;
}

.epofw-modal-content .epofw-modal-apply,
.epofw-modal-content .epofw-modal-cancel {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    min-width: 100px;
}

.epofw-modal-content .epofw-modal-apply {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.epofw-modal-content .epofw-modal-apply:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.epofw-modal-content .epofw-modal-apply:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.epofw-modal-content .epofw-modal-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.epofw-modal-content .epofw-modal-cancel:hover {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.epofw-modal-content .epofw-modal-cancel:active {
    transform: translateY(0);
}

/* Body scroll prevention when modal is open */
.epofw-modal-open {
    overflow: hidden;
}

/* Custom scrollbar for modal body */
.epofw-modal-content .epofw-modal-body::-webkit-scrollbar {
    width: 6px;
}

.epofw-modal-content .epofw-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.epofw-modal-content .epofw-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.epofw-modal-content .epofw-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .epofw-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .epofw-modal-content .epofw-modal-header {
        padding: 20px 24px;
        border-radius: 12px 12px 0 0;
    }
    
    .epofw-modal-content .epofw-modal-body {
        padding: 24px;
    }
    
    .epofw-modal-content .epofw-modal-footer {
        padding: 20px 24px;
        border-radius: 0 0 12px 12px;
        flex-direction: column;
    }
    
    .epofw-modal-content .epofw-modal-apply,
    .epofw-modal-content .epofw-modal-cancel {
        width: 100%;
        padding: 14px 24px;
    }
    
    .epofw-modal-content .epofw-modal-header h3 {
        font-size: 18px;
    }
    
    .epofw-modal-content .epofw-quick-view-summary {
        padding: 16px 20px;
        border-radius: 8px;
    }
    
    .epofw-modal-content .epofw-quick-view-trigger {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .epofw-modal-content .epofw-color-option {
        margin-right: 12px;
        margin-bottom: 8px;
        padding: 6px 10px;
    }
    
    .epofw-modal-content .epofw-slider-value {
        margin-left: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .epofw-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .epofw-modal-header,
    .epofw-modal-body,
    .epofw-modal-footer {
        padding: 16px 20px;
    }
    
    .epofw-modal-header h3 {
        font-size: 16px;
    }
    
    .epofw-modal-content .epofw-color-option {
        margin-right: 8px;
        margin-bottom: 6px;
        padding: 4px 8px;
    }
    
    .epofw-modal-content .epofw-color-swatch {
        width: 20px;
        height: 20px;
    }

    .epofw-options-summary {
        padding: 10px 14px;
    }

    .epofw-options-summary .epofw-summary-list li {
        font-size: 12px;
        padding: 4px 0;
    }
}
