/* ==========================================================================
   Content Form Override (new layout only)
   ========================================================================== */

.sunpics-content-form.sunpics-content-form-new {
    background: #f9fafb;
    width: auto;
    padding: 0 15px;
}

/* ==========================================================================
   Section Title (orange left bar) — new layout only
   ========================================================================== */

.sunpics-content-form-new .form-section-title {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--sunDefault);
}

/* ==========================================================================
   Details Card (inputs & textarea) — new layout only
   ========================================================================== */

.sunpics-content-form-new .sun-attr-form__card .form-input-text {
    border-radius: 6px !important;
}

.sunpics-content-form-new .sun-attr-form__card textarea.form-input-text {
    width: 100%;
    resize: vertical;
    min-height: 70px;
}

/* ==========================================================================
   Toggle Component — new layout only
   ========================================================================== */

.sunpics-content-form-new .sun-attr-form__status-label {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    max-width: none !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.sunpics-content-form-new .sun-attr-form__status-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sunpics-content-form-new .sun-attr-form__toggle {
    width: 40px;
    height: 22px;
    background: #c4c8cf;
    border-radius: 11px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s;
}

.sunpics-content-form-new .sun-attr-form__toggle::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.sunpics-content-form-new .sun-attr-form__status-label input[type="checkbox"]:checked + .sun-attr-form__toggle {
    background: var(--sunDefault);
}

.sunpics-content-form-new .sun-attr-form__status-label input[type="checkbox"]:checked + .sun-attr-form__toggle::after {
    transform: translateX(18px);
}

/* ==========================================================================
   Upload Card Component (global — used in texture, color, etc.)
   ========================================================================== */

.sun-attr-form__card {
    background: #fff;
    border: 1px solid #e2e4ea;
    border-radius: 10px;
    padding: 15px;
}

.sun-attr-form__card--upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.sun-attr-form__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.sun-attr-form__card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
}

.sun-attr-form__tippy-icon {
    color: #9fa4ad;
    cursor: help;
    font-size: 18px;
}

.sun-attr-form__upload-preview {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 16px;
}

.sun-attr-form__upload-preview img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.sun-attr-form__btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--sunDefault);
    border-radius: 6px;
    color: var(--sunDefault);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sun-attr-form__btn-upload:hover {
    background: var(--sunDefault);
    color: #fff;
}

.sun-attr-form__btn-upload:focus {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   Color Palette Component — new layout only
   ========================================================================== */

.sunpics-content-form-new .sun-color-palette__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sunpics-content-form-new .sun-color-palette__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
}

.sunpics-content-form-new .sun-color-palette__hex {
    font-size: 13px;
    color: #555;
}

.sunpics-content-form-new .sun-color-palette__hex strong {
    color: var(--sunDefault);
    font-weight: 700;
}

.sunpics-content-form-new .sun-color-palette__body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sunpics-content-form-new .sun-color-palette__preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sunpics-content-form-new .sun-color-palette__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.sunpics-content-form-new .sun-color-palette__swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}

.sunpics-content-form-new .sun-color-palette__swatch:hover {
    transform: scale(1.08);
}

.sunpics-content-form-new .sun-color-palette__swatch--active {
    border-color: var(--sunDefault);
}

.sunpics-content-form-new .sun-color-palette__swatch--light {
    box-shadow: inset 0 0 0 1px #e2e4ea;
}

.sunpics-content-form-new .sun-color-palette__swatch--add {
    background: #fff !important;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--sunDefault);
}

.sunpics-content-form-new .sun-color-palette__swatch--add .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sunpics-content-form-new .sun-color-palette__swatch--add:hover {
    border-color: var(--sunDefault);
}

.sunpics-content-form-new .sun-color-palette__native-picker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none !important;
    padding: 0 !important;
}
