.design-create {
    max-width: 1200px;
    margin: 0;
    padding: 20px;
}

.page-header {
    margin-bottom: 30px;
}

.back-link {
    color: #666;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.back-link:hover {
    color: #333;
}

.design-form {
    background: #fff;
    padding: 30px;
    border-radius: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
}
input#designName {
    width: 100%;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s ease;
    border: 2px solid #cdc6c4 !important;
    background-color: #f2ebe9;
    color: #000;
}

textarea.description_design {
    width: 100%;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s ease;
    border: 2px solid #cdc6c4 !important;
    background-color: #f2ebe9;
    color: #000;
}
select.royalty {
    width: 30%;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 16px;
    transition: border-color 0.3s ease;
    border: 2px solid #cdc6c4 !important;
    background-color: #f2ebe9;
    color: #000;
}
.price-info {
    display: inline-block;
    width: 60%;
    vertical-align: top;
    padding-left: 32px;
}
.price-info .disclaimer {
    display: block;
    font-size: 14px;
    line-height: 16px;
    color: #939393;
    margin-top: 10px;
}

.file-requirements {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
}

.file-requirements h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.file-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.file-requirements li {
    margin-bottom: 5px;
}
.product-type-options .form-check-input[type=radio] {
    position: absolute;
    left: 62%;
}
.product-type-options .form-check-input:checked[type=radio] {

}

.photos-grid {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-direction: column;
}

.photo-upload-group {

}

.photo-upload-group .form-label {
    color: #495057;
    font-size: 14px;
    display: block;
}

/* Стилизуем input type="file" */
.photo-upload-group input[type="file"],
.source-file-section input[type="file"] {
    border: 1px dashed #ced4da !important;
    background: none;
    padding: 10px 17px;
    font-size: 14px;
    color: #000;
}

.photo-upload-group input[type="file"]:hover,
.source-file-section input[type="file"] {
    border-color: #007bff;
}

/* Добавляем подсказку об опциональности */
.photo-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.good-example, .bad-example {
    text-align: center;
}

.good-example h4, .bad-example h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.photo-examples img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0;
    margin-bottom: 15px;
    border: 2px solid #f2ebe9;
}

.example-notes {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0;
}

.source-file-section {
    margin-top: 40px;
}

.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    color: #fff;
}
.btn i {
    font-size: 20px;
    margin-right: 10px;
}
.btn.btn-sub {
    padding: 12px 24px 12px 10px;
    background: #3e9188;
}
.btn.btn-brand {
    padding: 12px 24px 12px 10px;
    background: #d07e6a;
}
.btn.btn-tg {
    padding: 12px 24px 12px 10px;
    background: #1c9fb6;
}
.btn:hover {
    background: #4bbdb1;
    color: #fff;
}

.btn-primary {
    background: #3e9188;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}
.btn-edit,
.btn-delete {
    background: none;
    border: none;
    padding: 0;
    color: #eb5d3a;
}
.btn-edit:hover,
.btn-delete:hover {
    background: none;
    border: none;
    padding: 0;
    color: #4bbdb1;
}

.alert {
    border-left: 4px solid;
}

.alert-info {
    background: #f8f9fa;
    border-left-color: #17a2b8;
}

.product-type-options .form-check {
    margin: 0;
    display: inline-flex;
    background-color: #f2ebe9;
    vertical-align: top;
    color: #212529;
    text-align: center;
    flex-direction: column;
    padding: 12px;
    position: relative;
}
.product-type-options .form-check img {
    max-width: 64px;
    margin: 20px auto 0;
    filter: brightness(0.4);
}

.form-check.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.limits-badge {
    transform: translateY(-50%);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 12px;
}

.form-check:not(.disabled):hover {
    border-color: #007bff;
}

.form-check input[type="radio"]:disabled + label {
    cursor: not-allowed;
}

/* Добавляем подсказку при наведении на заблокированный вариант */
.form-check.disabled:hover::after {
    content: 'Достигнут лимит в текущем тарифе';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}