/* AI Generator Styles */

/* Form */
.form-prompt .fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-prompt .field {
    margin-bottom: 20px;
}

.label-prompt {
    display: block;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.numeration {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #4a90d9;
    color: #fff;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 14px;
}

textarea#prompt {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

textarea#prompt:focus {
    border-color: #4a90d9;
    outline: none;
}

.suggestion-notes {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 10px;
}

.prompt-suggestions {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.prompt-suggestions:focus {
    border-color: #4a90d9;
    outline: none;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    background: #fafafa;
}

.dropzone:hover {
    border-color: #4a90d9;
}

.dropzone .dz-message {
    font-size: 16px;
    color: #666;
}

.dropzone .dz-preview {
    display: inline-block;
    margin: 10px;
    position: relative;
}

.dropzone .dz-preview .dz-image {
    border-radius: 6px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    border: 2px solid #eee;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropzone .dz-preview .dz-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

/* Selects */
.ai-configs {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.ai-configs.error-empty-select {
    border-color: #e74c3c;
}

/* Buttons */
.actions-toolbar {
    margin-top: 20px;
}

.actions-toolbar .buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-toolbar .primary button {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.actions-toolbar .primary button:hover:not(:disabled) {
    background: #357abd;
}

.actions-toolbar .primary button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.actions-toolbar .secondary button {
    background: #eee;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.actions-toolbar .secondary button:hover:not(:disabled) {
    background: #ddd;
}

/* Result */
.img-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.remove-background-img {
    margin-top: 15px;
    text-align: center;
}

.remove-background {
    margin-top: 10px;
    text-align: center;
}

.remove-background input[type="checkbox"] {
    margin-right: 8px;
}

.button-to-catalog {
    display: block;
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.button-to-catalog:hover {
    background: #218838;
}

/* Loader */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-mask .loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4a90d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-mask ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.loading-mask ul li {
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.loading-mask ul li.visible {
    display: block;
    opacity: 1;
}

/* Hint */
.hint {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.hint .hint__logo img {
    width: 40px;
    height: 40px;
}

.hint .hint__content h3 {
    margin: 0;
    font-size: 16px;
    color: #856404;
}
.try-ai-preview .button-to-catalog{
background: #FCC449;
      min-width: 290px;
      height: 56px;
      border: 2px solid var(--black);
      border-radius: 12px;
      font-size: 20px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.25s ease;
      text-transform: unset;
	  margin: 0 auto;
	  max-width: 350px;
}