| 1 |
.bkbg-ai-settings { |
| 2 |
--bkbg-settings-ink: #202124; |
| 3 |
--bkbg-settings-muted: #646970; |
| 4 |
--bkbg-settings-border: #e0e2e5; |
| 5 |
max-width: 1080px; |
| 6 |
margin: 28px 24px 36px 2px; |
| 7 |
color: var(--bkbg-settings-ink); |
| 8 |
} |
| 9 |
.bkbg-ai-settings *, .bkbg-ai-settings *::before, .bkbg-ai-settings *::after { box-sizing: border-box; } |
| 10 |
.bkbg-ai-settings [hidden] { display: none !important; } |
| 11 |
.bkbg-ai-settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; } |
| 12 |
.bkbg-ai-settings-eyebrow { margin: 0 0 7px !important; color: var(--bkbg-settings-muted); font-size: 11px !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; } |
| 13 |
.bkbg-ai-settings-header h1 { padding: 0; font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: -.65px; } |
| 14 |
.bkbg-ai-settings-header p { margin: 10px 0 0; color: var(--bkbg-settings-muted); font-size: 14px; } |
| 15 |
.bkbg-ai-status { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--bkbg-settings-border); border-radius: 99px; background: #fff; color: #50575e; font-size: 12px; margin-top: 25px; } |
| 16 |
.bkbg-ai-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8c8f94; } |
| 17 |
.bkbg-ai-status.is-configured .bkbg-ai-status-dot { background: #32834d; } |
| 18 |
.bkbg-ai-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } |
| 19 |
.bkbg-ai-settings-card { min-width: 0; padding: 24px; border: 1px solid var(--bkbg-settings-border); border-radius: 11px; background: #fff; } |
| 20 |
.bkbg-ai-card-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 24px; } |
| 21 |
.bkbg-ai-card-heading > .dashicons { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex-shrink: 0; border-radius: 8px; background: #f4f4f5; color: #50575e; font-size: 18px; } |
| 22 |
.bkbg-ai-card-heading h2 { margin: 1px 0 5px; font-size: 15px; font-weight: 600; } |
| 23 |
.bkbg-ai-card-heading p { margin: 0; color: var(--bkbg-settings-muted); font-size: 12px; line-height: 1.5; } |
| 24 |
.bkbg-ai-settings .bkbg-ai-field-label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 600; } |
| 25 |
.bkbg-ai-settings input[type="text"], .bkbg-ai-settings input[type="password"], .bkbg-ai-settings textarea, .bkbg-ai-settings select { width: 100%; max-width: 100%; min-height: 38px; margin: 0; padding: 7px 10px; border: 1px solid #c9cdd2; border-radius: 6px; background-color: #fff; color: var(--bkbg-settings-ink); font-size: 13px; line-height: 1.5; } |
| 26 |
.bkbg-ai-settings input:disabled { background: #f6f7f7; color: #8c8f94; border-color: #dcdcde; } |
| 27 |
.bkbg-ai-settings textarea { display: block; min-height: 184px; resize: vertical; } |
| 28 |
.bkbg-ai-settings select { padding-right: 28px; white-space: nowrap; text-overflow: ellipsis; } |
| 29 |
.bkbg-ai-settings input[type="number"] { width: 94px; min-height: 35px; border-color: #c9cdd2; border-radius: 6px; } |
| 30 |
.bkbg-ai-settings input:focus, .bkbg-ai-settings textarea:focus, .bkbg-ai-settings select:focus { border-color: #3c434a; box-shadow: 0 0 0 1px #3c434a; outline: 2px solid transparent; } |
| 31 |
.bkbg-ai-settings input[type="checkbox"], .bkbg-ai-settings input[type="radio"] { flex-shrink: 0; margin: 1px 0 0; } |
| 32 |
.bkbg-ai-settings .bkbg-ai-help { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--bkbg-settings-muted); } |
| 33 |
.bkbg-ai-field-note { margin-top: 16px; padding: 11px 12px; background: #f6f7f7; border-radius: 6px; color: #50575e; font-size: 12px; line-height: 1.55; } |
| 34 |
.bkbg-ai-card-heading + .bkbg-ai-field-note { margin-top: 0; margin-bottom: 20px; } |
| 35 |
.bkbg-ai-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; } |
| 36 |
.bkbg-ai-remove-key { margin-top: 13px; color: #646970; } |
| 37 |
.bkbg-ai-field-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; } |
| 38 |
.bkbg-ai-settings .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 0 12px; line-height: 1.2; border-color: #c9cdd2; border-radius: 6px; background: #fff; color: #2c3338; box-shadow: none; } |
| 39 |
.bkbg-ai-settings .button:hover { border-color: #8c8f94; background: #f6f7f7; color: #202124; } |
| 40 |
.bkbg-ai-settings .button:focus-visible, .bkbg-ai-settings a:focus-visible, .bkbg-ai-settings summary:focus-visible { outline: 2px solid #2271b1; outline-offset: 3px; box-shadow: none; } |
| 41 |
.bkbg-ai-settings .button:disabled { opacity: .6; } |
| 42 |
.bkbg-ai-settings .button .dashicons, |
| 43 |
.bkbg-ai-field-actions .dashicons { |
| 44 |
display: block; |
| 45 |
width: 16px; |
| 46 |
height: 16px; |
| 47 |
font-size: 16px; |
| 48 |
line-height: 1; |
| 49 |
vertical-align: middle; |
| 50 |
transform: translateY(1px); |
| 51 |
} |
| 52 |
.bkbg-ai-settings .button .dashicons:before, |
| 53 |
.bkbg-ai-field-actions .dashicons:before { line-height: 1; } |
| 54 |
.bkbg-ai-field-actions a { display: inline-flex; align-items: center; gap: 4px; color: #50575e; font-size: 12px; text-decoration: none; } |
| 55 |
.bkbg-ai-field-actions a:hover { color: #1d2327; text-decoration: underline; } |
| 56 |
.bkbg-ai-inline-status { margin: 12px 0 0; font-size: 12px; line-height: 1.5; } |
| 57 |
.bkbg-ai-inline-status:empty { display: none; } |
| 58 |
.bkbg-ai-inline-status.is-success { color: #246c3b; } |
| 59 |
.bkbg-ai-inline-status.is-error { color: #b32d2e; } |
| 60 |
.bkbg-ai-model-price { margin: 9px 0 0; color: #50575e; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; } |
| 61 |
.bkbg-ai-model-price:empty { display: none; } |
| 62 |
.bkbg-ai-model-combobox { position: relative; } |
| 63 |
.bkbg-ai-settings .bkbg-ai-model-combobox__trigger { |
| 64 |
display: flex; |
| 65 |
align-items: center; |
| 66 |
justify-content: space-between; |
| 67 |
gap: 8px; |
| 68 |
width: 100%; |
| 69 |
min-height: 38px; |
| 70 |
margin: 0; |
| 71 |
padding: 7px 10px; |
| 72 |
border: 1px solid #c9cdd2; |
| 73 |
border-radius: 6px; |
| 74 |
background: #fff; |
| 75 |
color: var(--bkbg-settings-ink); |
| 76 |
font-family: inherit; |
| 77 |
font-size: 13px; |
| 78 |
line-height: 1.5; |
| 79 |
text-align: left; |
| 80 |
cursor: pointer; |
| 81 |
box-shadow: none; |
| 82 |
} |
| 83 |
.bkbg-ai-settings .bkbg-ai-model-combobox.is-open .bkbg-ai-model-combobox__trigger, |
| 84 |
.bkbg-ai-settings .bkbg-ai-model-combobox__trigger:focus { |
| 85 |
border-color: #3c434a; |
| 86 |
box-shadow: 0 0 0 1px #3c434a; |
| 87 |
outline: 2px solid transparent; |
| 88 |
} |
| 89 |
.bkbg-ai-model-combobox__value { |
| 90 |
min-width: 0; |
| 91 |
overflow: hidden; |
| 92 |
text-overflow: ellipsis; |
| 93 |
white-space: nowrap; |
| 94 |
} |
| 95 |
.bkbg-ai-model-combobox__trigger .dashicons { |
| 96 |
flex-shrink: 0; |
| 97 |
width: 16px; |
| 98 |
height: 16px; |
| 99 |
font-size: 16px; |
| 100 |
color: #646970; |
| 101 |
} |
| 102 |
.bkbg-ai-model-combobox__panel { |
| 103 |
position: absolute; |
| 104 |
z-index: 20; |
| 105 |
top: calc(100% + 4px); |
| 106 |
left: 0; |
| 107 |
right: 0; |
| 108 |
padding: 8px; |
| 109 |
border: 1px solid #c9cdd2; |
| 110 |
border-radius: 8px; |
| 111 |
background: #fff; |
| 112 |
box-shadow: 0 10px 30px rgba(16, 24, 32, .12); |
| 113 |
} |
| 114 |
.bkbg-ai-model-combobox__panel input[type="search"] { |
| 115 |
width: 100%; |
| 116 |
min-height: 34px; |
| 117 |
margin: 0 0 6px; |
| 118 |
padding: 5px 9px; |
| 119 |
} |
| 120 |
.bkbg-ai-model-combobox__results { |
| 121 |
max-height: min(320px, 50vh); |
| 122 |
overflow-y: auto; |
| 123 |
overscroll-behavior: contain; |
| 124 |
scrollbar-width: thin; |
| 125 |
} |
| 126 |
.bkbg-ai-model-combobox__group { |
| 127 |
position: sticky; |
| 128 |
top: 0; |
| 129 |
z-index: 1; |
| 130 |
display: flex; |
| 131 |
justify-content: space-between; |
| 132 |
gap: 8px; |
| 133 |
padding: 8px 8px 4px; |
| 134 |
background: #fff; |
| 135 |
color: #646970; |
| 136 |
font-size: 10px; |
| 137 |
font-weight: 600; |
| 138 |
letter-spacing: .06em; |
| 139 |
text-transform: uppercase; |
| 140 |
} |
| 141 |
.bkbg-ai-settings .bkbg-ai-model-combobox__option { |
| 142 |
display: flex; |
| 143 |
flex-direction: column; |
| 144 |
align-items: flex-start; |
| 145 |
gap: 1px; |
| 146 |
width: 100%; |
| 147 |
min-height: 0; |
| 148 |
margin: 0; |
| 149 |
padding: 7px 8px; |
| 150 |
border: 0; |
| 151 |
border-radius: 5px; |
| 152 |
background: transparent; |
| 153 |
color: var(--bkbg-settings-ink); |
| 154 |
font-family: inherit; |
| 155 |
font-size: 13px; |
| 156 |
line-height: 1.35; |
| 157 |
text-align: left; |
| 158 |
cursor: pointer; |
| 159 |
box-shadow: none; |
| 160 |
} |
| 161 |
.bkbg-ai-model-combobox__option small { |
| 162 |
color: var(--bkbg-settings-muted); |
| 163 |
font-size: 11px; |
| 164 |
overflow-wrap: anywhere; |
| 165 |
} |
| 166 |
.bkbg-ai-settings .bkbg-ai-model-combobox__option:hover, |
| 167 |
.bkbg-ai-settings .bkbg-ai-model-combobox__option.is-active { |
| 168 |
background: #f0f0f1; |
| 169 |
color: var(--bkbg-settings-ink); |
| 170 |
} |
| 171 |
.bkbg-ai-settings .bkbg-ai-model-combobox__option.is-selected { |
| 172 |
background: #edf0f3; |
| 173 |
} |
| 174 |
.bkbg-ai-model-combobox__empty { |
| 175 |
margin: 8px; |
| 176 |
color: var(--bkbg-settings-muted); |
| 177 |
font-size: 12px; |
| 178 |
} |
| 179 |
#bkbg-ai-custom-model-wrap:not(:first-child) { margin-top: 12px; } |
| 180 |
.bkbg-ai-image-choices { display: grid; gap: 9px; } |
| 181 |
.bkbg-ai-radio-card { display: flex; gap: 9px; padding: 12px; border: 1px solid #dcdcde; border-radius: 7px; cursor: pointer; } |
| 182 |
.bkbg-ai-radio-card:has(input:checked) { border-color: #646970; background: #f6f7f7; } |
| 183 |
.bkbg-ai-radio-card strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; } |
| 184 |
.bkbg-ai-radio-card small { display: block; font-size: 12px; line-height: 1.5; color: var(--bkbg-settings-muted); } |
| 185 |
.bkbg-ai-image-model-field { margin-top: 19px; } |
| 186 |
.bkbg-ai-image-model-field.is-inactive .bkbg-ai-field-label { color: #646970; } |
| 187 |
.bkbg-ai-image-model-field.is-inactive .bkbg-ai-model-combobox__trigger { |
| 188 |
background: #f6f7f7; |
| 189 |
color: #8c8f94; |
| 190 |
border-color: #dcdcde; |
| 191 |
cursor: default; |
| 192 |
} |
| 193 |
#bkbg-ai-image-custom-model-wrap:not(:first-child) { margin-top: 12px; } |
| 194 |
.bkbg-ai-settings-advanced { margin-top: 18px; border: 1px solid var(--bkbg-settings-border); border-radius: 10px; background: #fff; } |
| 195 |
.bkbg-ai-settings-advanced summary { display: flex; align-items: center; gap: 9px; padding: 17px 21px; cursor: pointer; list-style: none; font-weight: 600; font-size: 13px; } |
| 196 |
.bkbg-ai-settings-advanced summary::-webkit-details-marker { display: none; } |
| 197 |
.bkbg-ai-settings-advanced summary::after { content: '\203A'; margin-left: auto; color: #646970; font-size: 21px; font-weight: 400; transform: rotate(90deg); } |
| 198 |
.bkbg-ai-settings-advanced[open] summary::after { transform: rotate(-90deg); } |
| 199 |
.bkbg-ai-settings-advanced summary .dashicons { width: 17px; height: 17px; color: #646970; font-size: 17px; } |
| 200 |
.bkbg-ai-settings-advanced summary small { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--bkbg-settings-muted); } |
| 201 |
.bkbg-ai-advanced-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding: 8px 24px 24px; } |
| 202 |
.bkbg-ai-advanced-fields > div:first-child { padding-top: 3px; } |
| 203 |
.bkbg-ai-advanced-fields .bkbg-ai-check { font-weight: 600; } |
| 204 |
.bkbg-ai-settings-footer { display: flex; align-items: center; gap: 16px; padding-top: 20px; } |
| 205 |
.bkbg-ai-settings .button-primary { min-height: 38px; padding: 4px 18px; border-color: #242628; background: #242628; color: #fff; font-weight: 500; } |
| 206 |
.bkbg-ai-settings .button-primary:hover { border-color: #101112; background: #101112; color: #fff; } |
| 207 |
.bkbg-ai-settings-footer > span { font-size: 12px; color: var(--bkbg-settings-muted); } |
| 208 |
.bkbg-ai-settings .notice { margin: 0 0 20px; } |
| 209 |
@media (max-width: 1100px) { |
| 210 |
.bkbg-ai-settings { max-width: 780px; } |
| 211 |
.bkbg-ai-settings-card { padding: 20px; } |
| 212 |
.bkbg-ai-settings-grid { gap: 14px; } |
| 213 |
} |
| 214 |
@media (max-width: 820px) { |
| 215 |
.bkbg-ai-settings { margin-right: 12px; } |
| 216 |
.bkbg-ai-settings-grid { grid-template-columns: minmax(0, 1fr); } |
| 217 |
.bkbg-ai-advanced-fields { grid-template-columns: 1fr; gap: 20px; } |
| 218 |
.bkbg-ai-settings-header { flex-wrap: wrap; gap: 13px; } |
| 219 |
.bkbg-ai-status { margin-top: 0; } |
| 220 |
.bkbg-ai-settings-advanced summary small { display: none; } |
| 221 |
.bkbg-ai-settings-footer { flex-wrap: wrap; } |
| 222 |
} |
| 223 |
|