/**
 * Tech Repair Checkout Styles
 */

/* Контейнер для полей даты и времени */
.tech-repair-date-time-fields {
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body html .tech-repair-date-time-fields h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    text-transform: uppercase;
}

/* Стили для поля даты */
.tech-repair-date-field {
    position: relative;
    margin-bottom: 20px;
}

.tech-repair-date-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.tech-repair-date-field input {
    width: 100%;
    padding: 12px 40px 12px 15px !important;
    background-color: #fff !important;
    cursor: pointer;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tech-repair-date-field input:focus,
.tech-repair-date-field input:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

.tech-repair-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.tech-repair-date-icon:hover {
    opacity: 1;
}

/* Стили для поля времени */
.tech-repair-time-field {
    margin-bottom: 20px;
}

.tech-repair-time-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.tech-repair-time-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.tech-repair-time-field select:focus,
.tech-repair-time-field select:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

/* Стили для jQuery UI Datepicker */
.ui-datepicker {
    width: 320px;
    padding: 0;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 15px;
    margin-bottom: 0;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    transition: background-color 0.3s ease;
}

.ui-datepicker .ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker .ui-datepicker-next {
    right: 5px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -8px;
    margin-top: -8px;
}

.ui-datepicker .ui-datepicker-title {
    margin: 0;
    line-height: 1.8em;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.ui-datepicker .ui-datepicker-title select {
    font-size: 1em;
    margin: 1px 0;
}

.ui-datepicker-calendar {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 10px;
}

.ui-datepicker th {
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    border: 0;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
}

.ui-datepicker td {
    border: 0;
    padding: 2px;
    text-align: center;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ui-datepicker .ui-state-default {
    background-color: #f8f9fa;
    border: none;
    color: #333;
}

.ui-datepicker .ui-state-hover {
    background-color: #e9ecef;
}

.ui-datepicker .ui-state-active {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
}

.ui-datepicker .ui-state-highlight {
    background-color: #e9ecef;
    border: 1px solid #007bff;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.35;
    filter: Alpha(Opacity=35);
    background-image: none;
}

.ui-datepicker .ui-state-disabled .ui-state-default {
    background-color: #f5f5f5;
    color: #ccc;
}

.ui-datepicker-buttonpane {
    border-top: 1px solid #eee;
    padding: 10px;
    text-align: right;
}

.ui-datepicker-buttonpane button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.ui-datepicker-buttonpane button:hover {
    background-color: #0069d9;
}

/* Адаптивные стили */
@media (max-width: 767px) {
    .tech-repair-date-time-fields {
        padding: 20px 15px;
    }
    
    .ui-datepicker {
        width: 290px;
    }
    
    .ui-datepicker td span,
    .ui-datepicker td a {
        padding: 6px;
        font-size: 13px;
    }
    
    .tech-repair-date-field input,
    .tech-repair-time-field select {
        font-size: 15px;
        padding: 10px 15px;
    }
}
