/* Основной стиль для чекбокса */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9e9e9e;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
}
/* Стиль для состояния "выбран" */
input[type="checkbox"]:checked {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
}
/* Стиль для галочки */
input[type="checkbox"]:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
}
/* Стиль при наведении */
input[type="checkbox"]:hover {
    border-color: #7f7f7f;
}

/* Стиль для фокуса */
input[type="checkbox"]:focus {
    box-shadow: 0 0 3px #b0b0b0;
}


.chef-profile-container {
    width: 100%;
    max-width: 1024px;
    margin: 20px 0;
    /*padding: 20px;*/
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
.dish-editor .chef-profile-container {
    border: none;
}

.chef-profile-header {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    /* margin-bottom: 20px; */
    background-color: #fff;
    padding: 10px 20px;
    /*border-top-left-radius: 10px;*/
    /*border-top-right-radius: 10px;*/
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
    justify-content: space-between;
}
.chef-profile-header h1 {
    margin: 0;
    font-size: 18px;
    color: #f05;
    font-weight: 500;
    width: 100%;
}

.chef-profile-save-button {
    flex-shrink: 0;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    /*position: absolute;*/
    left: 5px;
    max-height: 40px;
}
.chef-profile-save-button:hover {
    background-color: #e60000;
}

.chef-profile-section {
    background-color: white;
    padding: 20px;
    /*margin-bottom: 20px;*/
    /*border-radius: 5px;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/

    display: flex;
    flex-direction: column;
    /*gap: 30px;*/
    /*min-height: 100vh;*/
}
.chef-profile-section h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 400;
    color: #333;
}
.chef-profile-section p {
    margin: 10px 0;
    /*color: #666;*/
}

.chef-profile-link {
    background-color: #ffe9f9;
}

.chef-profile-photo ul {
    /*padding-left: 20px;*/
    color: #666;
}
.chef-profile-photo ul>li {
    margin-bottom: 10px;
    font-weight: 500;
}
.chef-profile-photo-grid {
    display: flex;
    gap: 10px;
}
.chef-profile-photo-item {
    flex: 1;
    background-color: #f0f0f0;
    text-align: center;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}
.chef-profile-photo-item img {
    max-width: 100%;
    height: auto;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.chef-profile-info input[disabled] {
    background-color: #f9f9f9;
}
.chef-profile-info input,
.chef-profile-bio textarea {
    width: 100%;
    padding: 14px 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-weight: 400;
    background-color: #fff;
}
/*.chef-profile-bio label {*/
/*    display: block;*/
/*    margin-bottom: 5px;*/
/*    font-weight: bold;*/
/*    color: #333;*/
/*}*/

#chef-profile-bio {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    height: 100px;
    resize: none;
}

.chef-profile-preview-image {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 5px;
}
.chef-profile-preview-image img {
    max-width: 100%;
    height: auto;
}

.chef-profile-social .chef-profile-placeholder {
    flex-shrink: 0;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    padding: 10px;
    color: #999;
    width: 130px;
    font-size: 13px;
    height: 41px;
    border-right: none;
}
.chef-profile-social input {
    flex: 1;
    border-radius: 0 5px 5px 0;
    margin-right: 10px;
    line-height: 20px;
    height: 41px;
}

.chef-profile-link .chef-profile-social a,
.chef-profile-social a {
    white-space: nowrap;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
.chef-profile-link .chef-profile-social a:hover,
.chef-profile-social a:hover {
    text-decoration: underline;
}

.chef-profile-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.chef-profile-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.chef-profile-select-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.chef-profile-links input,
.chef-profile-links select {
    width: 100%;
    padding: 10px;
    /*margin-bottom: 10px;*/
    border: 1px solid #ccc;
    /*border-radius: 5px;*/
    box-sizing: border-box;
}
.chef-profile-social {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    gap: 10px;
}
.chef-profile-link-value {
    border-radius: 0 !important;
    margin-right: 0 !important;
}
.chef-profile-link-copy {
    margin: 0;
    height: 41px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    font-size: 12px;
    width: unset;
}

.copied {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    top: -10px;
    left: 20px;
    padding: 2px 10px;
    opacity: 0;
    transition: all .6s;
}
.copied.active {
    opacity: 1;
}

@media (max-width: 768px) {

    .chef-profile-header h1 {
        font-size: 20px;
    }

    .chef-profile-save-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .chef-profile-section h2 {
        font-size: 18px;
    }

    .chef-profile-section p {
        font-size: 14px;
    }

    .chef-profile-photo-grid {
        flex-direction: column;
    }

    .chef-profile-links .chef-profile-social input {
        flex: 1;
        margin-right: 5px;
    }

    .chef-profile-link .chef-profile-social a {
        width: 70px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    .chef-profile-link-copy .text {
        display: none;
        width: 30px;
    }
    .chef-profile-link-copy {
        font-size: 16px;
    }

    .chef-warehouses,
    .chef-items {
        padding-top: 17px;
    }
}

@media (max-width: 480px) {
    .chef-profile-container {
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .chef-profile-save-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .chef-profile-photo-grid {
        flex-direction: column;
    }
}




/* Общие стили для блока */
.location-block {
    position: relative;
    /*background-color: white;*/
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    /*max-width: 600px;*/
    /*width: 100%;*/
    /*margin: auto;*/
}
/*.location-block h2 {*/
/*    font-size: 24px;*/
/*    margin-bottom: 10px;*/
/*}*/
.location-block p {
    /*font-size: 16px;*/
    /*color: #666;*/
    /*margin-bottom: 20px;*/
}

.location-block .disabled {
    position: relative;
}
.location-block .disabled div {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.7);
}

    /* Стили для радиокнопок */
.radioblock-option label {
    /* font-size: 18px; */
    /* display: block; */
    /* cursor: pointer; */
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}
.radioblock-option input {
    margin-right: 10px;
    vertical-align: middle;
}
.radioblock-option span {
    display: block;
    /* font-size: 14px; */
    /* color: #000; */
    margin-top: 5px;
    margin-left: 0;
    font-weight: 400;
}
.radioblock-option a {
    color: #007bff;
    text-decoration: none;
}

/* Стили для секции адреса */
.address-section {
    margin-top: 40px;
}
/*.address-section h3 {*/
/*    font-size: 20px;*/
/*    margin-bottom: 10px;*/
/*}*/
/*.address-section p {*/
/*    font-size: 16px;*/
/*    color: #666;*/
/*    margin-bottom: 10px;*/
/*}*/
.address-section label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}
.address-section .input-container {
    display: flex;
    align-items: center;
    /*background: #f8f8f8;*/
    padding: 0 0 0 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.address-section .input-container i {
    margin-right: 10px;
    color: #888;
}
.address-section .input-container input {
    border: none;
}
.address-section input {
    border: 1px solid #e0e0e0;
    background: none;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
    /*background: #f8f8f8;*/
    padding: 10px;
    outline: none;
}
.address-section input::placeholder {
    color: #888;
}

/* Стили для временных окон */
.time-windows {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    /*justify-content: space-between;*/
}
.time-windows label {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

/*.time-windows input[type="checkbox"] {*/
/*    appearance: none;*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    border: 2px solid #888;*/
/*    border-radius: 4px;*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    cursor: pointer;*/
/*    background-color: white;*/
/*}*/
/*.time-windows input[type="checkbox"]:checked {*/
/*    background-color: white;*/
/*    border-color: #e53935;*/
/*}*/
/*.time-windows input[type="checkbox"]:checked::after {*/
/*    content: '\f00c';*/
/*    font-family: 'Font Awesome 5 Free';*/
/*    font-weight: 900;*/
/*    color: #e53935;*/
/*    font-size: 14px;*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*}*/
/*.time-windows input[type="checkbox"]:checked + span {*/
/*    font-weight: bold;*/
/*}*/

/* Стили для input radio */
.radioblock-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
    position: absolute;
    left: 5px;
}
.radioblock-option input[type="radio"]:checked::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.chef-time-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}
.chef-time-buttons {
    display: flex;
    /*justify-content: space-between;*/
    /*margin-bottom: 20px;*/
}
.chef-time-tab-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.chef-time-tab-btn.active {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}
.chef-time-tab-btn:hover {
    background-color: #235386;
    color: #fff;
}

.chef-time-tab-content {
    /*display: none;*/
}

.chef-time-tab-content.active {
    /*display: block;*/
}

.chef-time-schedule {
    width: 100%;
    border-collapse: collapse;
}

.chef-time-schedule th, .chef-time-schedule td {
    padding: 10px;
    text-align: left;
}

.chef-time-schedule th {
    background-color: #f8f8f8;
    color: #333;
}

.chef-time-schedule tbody tr {
    border-bottom: 1px solid #ddd;
}

.chef-time-schedule tbody td:first-child label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chef-time-schedule tbody tr:last-child {
    border-bottom: none;
}

.chef-time-schedule input[type="time"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.chef-time-schedule input[type="checkbox"] {
    margin-right: 10px;
}

.chef-time-schedule tbody tr.disabled input[type="time"] {
    background-color: #f0f0f0;
    border-color: #ddd;
    pointer-events: none;
}

.chef-time-schedule tbody tr.disabled input[type="checkbox"] {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.chef-time-schedule tbody tr.disabled label {
    color: #aaa;
}

.time-windows label {
    /*display: block;*/
    margin-bottom: 10px;
}

.time-windows label input {
    margin-right: 10px;
}
