/**
 * Advanced Product Customizer - Frontend Custom CSS
 * Add your custom styles here
 */

.advprodcustom-fields-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.product-customization-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-custom-field {
    margin-bottom: 20px;
}

.product-custom-field label {
    text-align: left;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-custom-field .required {
    color: #f00;
}

.product-custom-field .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-custom-field .form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Checkbox Options Styles */
.checkbox-options-container {
    padding: 5px 0;
}

.checkbox-option {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0,123,255,0.1);
}

.checkbox-option label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
}

.checkbox-price {
    color: #28a745;
    font-weight: 600;
    margin-left: 10px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label {
    font-weight: 600;
}

/* Datepicker Styles */
.advprodcustom-datepicker {
    cursor: pointer;
    background-color: white;
}

/* Main datepicker container */
.ui-datepicker {
    z-index: 9999 !important;
    padding: 0;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    width: auto !important;
    max-width: 350px !important;
    overflow: hidden !important;
}

/* Datepicker header */
.ui-datepicker .ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 10px !important;
    color: white !important;
}

.ui-datepicker .ui-datepicker-title {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
}

.ui-datepicker .ui-datepicker-title select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-weight: 500;
}

/* Navigation buttons */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    border: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    cursor: pointer;
    top: 12px !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    background-image: none !important;
    text-indent: 0 !important;
}

.ui-datepicker .ui-datepicker-prev span:before {
    content: "◀";
    color: white;
    font-size: 14px;
}

.ui-datepicker .ui-datepicker-next span:before {
    content: "▶";
    color: white;
    font-size: 14px;
}

/* Calendar table */
.ui-datepicker table {
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

.ui-datepicker thead {
    background: #f8f9fa !important;
}

.ui-datepicker th {
    padding: 10px 5px !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #667eea !important;
    font-size: 13px !important;
    border: none !important;
}

.ui-datepicker td {
    padding: 2px !important;
    border: none !important;
}

/* Regular days */
.ui-datepicker td a,
.ui-datepicker td span {
    padding: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    display: block !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    color: #333 !important;
}

.ui-datepicker td a:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
    transform: scale(1.05);
}

/* Selected/Today */
.ui-datepicker td .ui-state-active,
.ui-datepicker td .ui-state-highlight {
    background: #667eea !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Disabled dates (Sundays and dates before min) */
.ui-datepicker td .ui-state-disabled {
    opacity: 0.3 !important;
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

.ui-datepicker td .ui-state-disabled:hover {
    background: #f5f5f5 !important;
    color: #999 !important;
    transform: none !important;
}

/* Other month dates */
.ui-datepicker td .ui-priority-secondary {
    opacity: 0.4 !important;
}

/* Datepicker footer (if needed) */
.ui-datepicker-buttonpane {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 10px !important;
    border-radius: 0 0 8px 8px !important;
}

/* Input field with icon */
.product-custom-field .advprodcustom-datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23667eea" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px !important;
}
