/**
 * Side Cart Admin Styles
 * Styles for the Side Cart configuration page
 */

.ckfylt25-side-cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ckfylt25-side-cart-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.ckfylt25-side-cart-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.ckfylt25-side-cart-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.ckfylt25-side-cart-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ckfylt25-side-cart-tip h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
}

.ckfylt25-side-cart-tip p {
    color: #856404;
    margin: 0;
}

.ckfylt25-side-cart-checkbox {
    margin-bottom: 20px;
}

.ckfylt25-side-cart-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.ckfylt25-side-cart-checkbox .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.ckfylt25-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ckfylt25-color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.ckfylt25-color-picker-wrapper .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* Preview Styles */
.ckfylt25-side-cart-preview {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.ckfylt25-side-cart-preview h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.ckfylt25-preview-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 200px;
}

.ckfylt25-preview-side-cart {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.ckfylt25-preview-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ckfylt25-preview-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ckfylt25-preview-close {
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.ckfylt25-preview-items {
    padding: 15px;
}

.ckfylt25-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ckfylt25-preview-item:last-child {
    border-bottom: none;
}

.ckfylt25-preview-item-name {
    font-weight: 500;
    color: #333;
}

.ckfylt25-preview-item-price {
    font-weight: 600;
    color: #0073aa;
}

.ckfylt25-preview-footer {
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #eee;
}

.ckfylt25-preview-total {
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
}

.ckfylt25-preview-checkout {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.ckfylt25-preview-floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ckfylt25-preview-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Popup Modal Preview Styles */
.ckfylt25-preview-modal {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: white;
    transform: scale(0.9);
}

.ckfylt25-preview-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ckfylt25-preview-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ckfylt25-preview-modal-body {
    padding: 20px;
    max-height: 150px;
    overflow-y: auto;
}

.ckfylt25-preview-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #eee;
}

.ckfylt25-preview-modal-footer .ckfylt25-preview-total {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.ckfylt25-preview-modal-footer .ckfylt25-preview-checkout {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox and Color Picker Styles */
.ckfylt25-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.ckfylt25-checkbox-wrapper input[type="checkbox"] {
    margin-top: 3px;
}

.ckfylt25-checkbox-wrapper .description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ckfylt25-color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ckfylt25-color-picker {
    width: 50px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.ckfylt25-color-picker-wrapper .description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.ckfylt25-radio-group {
    margin-bottom: 15px;
}

.ckfylt25-radio-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.ckfylt25-radio-group input[type="radio"] {
    margin-right: 8px;
}

.ckfylt25-radio-group .description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ckfylt25-preview-container {
        flex-direction: column;
        align-items: center;
    }
    
    .ckfylt25-preview-side-cart,
    .ckfylt25-preview-modal {
        width: 100%;
        max-width: 300px;
    }
} 