#yclients-widget-root {
    max-width: 520px;
    margin: 32px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #253242;
    background: none;
}

/* Карточки мастеров */
.yclients-masters-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.yclients-master-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 16px #d8e5ef33;
    padding: 18px 20px 14px 18px;
    gap: 18px;
    position: relative;
    transition: box-shadow 0.2s;
}

.yclients-master-card:hover {
    box-shadow: 0 6px 32px #b0cee733;
}

.yclients-master-photo {
    min-width: 56px;
    width: 56px;
    height: 56px;
    background: #eee center center/cover no-repeat;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 0 2px #f4f8fa;
}

.yclients-master-info {
    flex: 1 1 auto;
    min-width: 0;
}
.yclients-master-name {
    font-weight: bold;
    font-size: 1.12em;
    margin-bottom: 2px;
    color: #264078;
}
.yclients-master-role {
    font-size: 0.98em;
    color: #909faf;
    margin-bottom: 6px;
}
.yclients-master-rating {
    font-size: 0.99em;
    color: #ffb300;
    display: flex;
    align-items: center;
    gap: 7px;
}
.yclients-stars {
    letter-spacing: 1px;
    font-size: 1.08em;
}
.yclients-rating-val {
    color: #253242;
    font-weight: 600;
    margin-left: 1px;
}
.yclients-reviews {
    color: #adb3bb;
    font-size: 0.97em;
    margin-left: 4px;
}

.yclients-master-slots {
    min-width: 160px;
    padding-left: 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.yclients-widget-loading {
    font-size: 1em;
    color: #a3adc0;
    padding: 10px 0;
}
.yclients-no-slots {
    color: #c34c3d;
    font-size: 0.98em;
    padding: 7px 0;
}

/* Слоты времени (кнопки) */
.yclients-date-label {
    color: #264078;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 7px;
    margin-top: 2px;
}
.yclients-slot-list, .yclients-calendar-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 9px;
    margin-bottom: 9px;
}
.yclients-slot-btn {
    background: #f4f8fa;
    border: 1.5px solid #2b85ea;
    border-radius: 8px;
    color: #1a3e7b;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 13px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
.yclients-slot-btn:hover,
.yclients-slot-btn:focus {
    background: #2b85ea;
    color: #fff;
    border-color: #2b85ea;
}

.yclients-more-btn {
    background: #fff;
    color: #2b85ea;
    border: 1.5px solid #2b85ea;
    border-radius: 7px;
    font-size: 1em;
    font-weight: 600;
    padding: 7px 16px;
    margin-top: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.yclients-more-btn:hover {
    background: #e9f2fd;
    color: #1a3e7b;
}

/* Календарь (jQuery UI) */
.yclients-calendar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.yclients-calendar-header .yclients-master-photo {
    margin: 0;
    width: 44px;
    height: 44px;
}
.yclients-calendar-header .yclients-master-name {
    font-size: 1.12em;
    font-weight: 600;
    color: #2b85ea;
}
.yclients-back-masters {
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 8px;
    color: #7296c5;
    font-size: 1em;
    font-weight: 500;
    padding: 5px 13px;
    margin-right: 3px;
    cursor: pointer;
    transition: border 0.2s, color 0.2s;
}
.yclients-back-masters:hover {
    color: #2b85ea;
    border-color: #2b85ea;
}
.yclients-calendar-ui {
    display: flex;
    gap: 0 22px;
    align-items: flex-start;
}
#yclients-calendar-date {
    width: 160px;
    font-size: 1.06em;
    padding: 8px;
    margin-bottom: 10px;
    border: 1.5px solid #dbe6ef;
    border-radius: 8px;
}
.yclients-calendar-slots {
    min-width: 190px;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 9px;
}

/* Форма бронирования */
.yclients-booking-confirm {
    max-width: 320px;
    margin: 30px auto 0;
    padding: 21px 22px 15px;
    background: #f8fafc;
    border-radius: 13px;
    box-shadow: 0 2px 18px #dbe6ef22;
    font-size: 1.08em;
}
.yclients-form-fields input[type="text"],
.yclients-form-fields input[type="tel"],
.yclients-form-fields input[type="email"] {
    display: block;
    width: 100%;
    margin: 9px 0 13px 0;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1.5px solid #bdd0e3;
    font-size: 1em;
    background: #fff;
}
#yclients-book-btn,
#yclients-cancel-btn {
    background: #2b85ea;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.18s;
}
#yclients-cancel-btn {
    background: #adb3bb;
}
#yclients-book-btn:disabled {
    background: #95bcdb;
    cursor: not-allowed;
}
.yclients-booking-msg {
    margin-top: 12px;
    min-height: 24px;
    font-size: 1em;
}

@media (max-width: 600px) {
    #yclients-widget-root { max-width: 99vw; }
    .yclients-masters-list { gap: 12px; }
    .yclients-master-card { flex-direction: column; align-items: stretch; gap: 7px; padding: 13px 9px 8px; }
    .yclients-master-photo { width: 43px; height: 43px; }
    .yclients-master-slots { min-width: 0; padding-left: 0; }
    .yclients-calendar-ui { flex-direction: column; gap: 0; }
}
