| 1 |
/* === Deactivation Feedback Modal === */ |
| 2 |
|
| 3 |
.wdkit-modal { |
| 4 |
position: fixed; |
| 5 |
z-index: 99999; |
| 6 |
top: 0; |
| 7 |
right: 0; |
| 8 |
bottom: 0; |
| 9 |
left: 0; |
| 10 |
backdrop-filter: blur(4px); |
| 11 |
display: none; |
| 12 |
box-sizing: border-box; |
| 13 |
overflow: auto; |
| 14 |
opacity: 0; |
| 15 |
visibility: hidden; |
| 16 |
transition: opacity .3s, visibility .3s, backdrop-filter .3s; |
| 17 |
} |
| 18 |
|
| 19 |
.wdkit-modal *, |
| 20 |
.wdkit-modal *::before, |
| 21 |
.wdkit-modal *::after { |
| 22 |
font-family: Outfit, sans-serif, WDesignKit !important; |
| 23 |
box-sizing: border-box; |
| 24 |
} |
| 25 |
|
| 26 |
.wdkit-modal.modal-active { |
| 27 |
display: flex; |
| 28 |
align-items: center; |
| 29 |
justify-content: center; |
| 30 |
opacity: 1; |
| 31 |
visibility: visible; |
| 32 |
overflow-y: auto; |
| 33 |
} |
| 34 |
|
| 35 |
#wdkit-deactive-modal { |
| 36 |
background: rgba(0, 0, 0, 0.4); |
| 37 |
padding: 20px; |
| 38 |
} |
| 39 |
|
| 40 |
.wdkit-modal-wrap { |
| 41 |
width: 100%; |
| 42 |
max-width: 540px; |
| 43 |
background: #fff; |
| 44 |
border-radius: 10px; |
| 45 |
overflow: hidden; |
| 46 |
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); |
| 47 |
|
| 48 |
max-height: calc(100vh - 40px); |
| 49 |
overflow-y: auto; |
| 50 |
} |
| 51 |
|
| 52 |
.wdkit-modal-wrap::-webkit-scrollbar { |
| 53 |
width: 6px; |
| 54 |
} |
| 55 |
|
| 56 |
.wdkit-modal-wrap::-webkit-scrollbar-thumb { |
| 57 |
background: rgba(0,0,0,0.2); |
| 58 |
border-radius: 10px; |
| 59 |
} |
| 60 |
|
| 61 |
.wdkit-modal-wrap::-webkit-scrollbar-track { |
| 62 |
background: transparent; |
| 63 |
} |
| 64 |
|
| 65 |
/* ===================== |
| 66 |
Header |
| 67 |
===================== */ |
| 68 |
#wdkit-deactive-modal .wdkit-modal-header { |
| 69 |
padding: 20px 24px 16px; |
| 70 |
display: flex; |
| 71 |
align-items: flex-start; |
| 72 |
justify-content: space-between; |
| 73 |
gap: 12px; |
| 74 |
} |
| 75 |
|
| 76 |
.wdkit-modal-header-content { |
| 77 |
display: flex; |
| 78 |
flex-direction: column; |
| 79 |
gap: 5px; |
| 80 |
} |
| 81 |
|
| 82 |
#wdkit-deactive-modal .wdkit-feed-head-title { |
| 83 |
margin: 0; |
| 84 |
padding: 0; |
| 85 |
font-size: 18px; |
| 86 |
font-weight: 700; |
| 87 |
color: #020202; |
| 88 |
line-height: 1.3; |
| 89 |
} |
| 90 |
|
| 91 |
.wdkit-feed-head-subtitle { |
| 92 |
margin: 0; |
| 93 |
padding: 0; |
| 94 |
font-size: 13px; |
| 95 |
color: #808080; |
| 96 |
line-height: 1.5; |
| 97 |
} |
| 98 |
|
| 99 |
.wdkit-modal-close { |
| 100 |
background: none; |
| 101 |
border: none; |
| 102 |
cursor: pointer; |
| 103 |
color: #808080; |
| 104 |
padding: 2px; |
| 105 |
line-height: 1; |
| 106 |
display: flex; |
| 107 |
align-items: center; |
| 108 |
justify-content: center; |
| 109 |
flex-shrink: 0; |
| 110 |
border-radius: 4px; |
| 111 |
transition: color 0.2s, background 0.2s; |
| 112 |
box-shadow: none !important; |
| 113 |
outline: none !important; |
| 114 |
} |
| 115 |
|
| 116 |
.wdkit-modal-close:hover { |
| 117 |
color: #020202; |
| 118 |
background: #F5F5FA; |
| 119 |
} |
| 120 |
|
| 121 |
/* ===================== |
| 122 |
Body |
| 123 |
===================== */ |
| 124 |
#wdkit-deactive-modal .wdkit-modal-body { |
| 125 |
padding: 8px 24px 20px; |
| 126 |
display: flex; |
| 127 |
flex-direction: column; |
| 128 |
gap: 22px; |
| 129 |
} |
| 130 |
|
| 131 |
/* ===================== |
| 132 |
Reason Cards — flex wrap (from Figma) |
| 133 |
===================== */ |
| 134 |
.wdkit-modal-input { |
| 135 |
display: flex; |
| 136 |
flex-wrap: wrap; |
| 137 |
gap: 14px; |
| 138 |
align-items: stretch; |
| 139 |
} |
| 140 |
|
| 141 |
/* Each card: ~50% minus half the gap */ |
| 142 |
.wdkit-reason-card { |
| 143 |
display: flex; |
| 144 |
flex-direction: row; |
| 145 |
gap: 8px; |
| 146 |
align-items: flex-start; |
| 147 |
width: calc(50% - 7px); |
| 148 |
background: #fff; |
| 149 |
border: 1px solid #f1f1f1; |
| 150 |
border-radius: 8px; |
| 151 |
padding: 12px; |
| 152 |
cursor: pointer; |
| 153 |
overflow: hidden; |
| 154 |
transition: border-color 0.2s; |
| 155 |
box-sizing: border-box; |
| 156 |
} |
| 157 |
|
| 158 |
.wdkit-reason-card:hover { |
| 159 |
border-color: #aaa; |
| 160 |
} |
| 161 |
|
| 162 |
.wdkit-reason-card.wdkit-card-selected { |
| 163 |
border-color: #020202; |
| 164 |
} |
| 165 |
|
| 166 |
/* Radio wrapper — aligns radio to top of text with padding-top: 6px */ |
| 167 |
.wdkit-radio-wrap { |
| 168 |
display: flex; |
| 169 |
align-items: center; |
| 170 |
padding-top: 4px; |
| 171 |
flex-shrink: 0; |
| 172 |
} |
| 173 |
|
| 174 |
/* Native radio — let WP/browser handle rendering */ |
| 175 |
.wdkit-radion-input { |
| 176 |
width: 14px; |
| 177 |
height: 14px; |
| 178 |
min-width: 14px; |
| 179 |
margin: 0 !important; |
| 180 |
cursor: pointer; |
| 181 |
flex-shrink: 0; |
| 182 |
} |
| 183 |
|
| 184 |
.wdkit-radio-wrap .wdkit-radion-input:checked { |
| 185 |
background: unset; |
| 186 |
border-color: unset; |
| 187 |
} |
| 188 |
|
| 189 |
.wdkit-radion-input:checked::before { |
| 190 |
background: #020202 !important; |
| 191 |
width: 8px !important; |
| 192 |
height: 8px !important; |
| 193 |
border: none !important; |
| 194 |
} |
| 195 |
|
| 196 |
.wdkit-radion-input:focus { |
| 197 |
box-shadow: none !important; |
| 198 |
outline: none !important; |
| 199 |
} |
| 200 |
|
| 201 |
/* Card label = text wrapper: flex-1, flex-col, gap: 6px */ |
| 202 |
.wdkit-reason-card label { |
| 203 |
display: flex; |
| 204 |
flex-direction: column; |
| 205 |
gap: 6px; |
| 206 |
align-items: flex-start; |
| 207 |
justify-content: center; |
| 208 |
flex: 1 0 0; |
| 209 |
min-width: 0; |
| 210 |
cursor: pointer; |
| 211 |
} |
| 212 |
|
| 213 |
/* Card title: 14px / Medium 500 / line-height 20px */ |
| 214 |
.wdkit-reason-title { |
| 215 |
display: block; |
| 216 |
font-size: 14px; |
| 217 |
font-weight: 500; |
| 218 |
color: #020202; |
| 219 |
line-height: 20px; |
| 220 |
width: 100%; |
| 221 |
} |
| 222 |
|
| 223 |
/* Card description: 12px / Regular / line-height 16px / letter-spacing 0.2px */ |
| 224 |
.wdkit-reason-desc { |
| 225 |
display: block; |
| 226 |
font-size: 12px; |
| 227 |
font-weight: 400; |
| 228 |
color: #808080; |
| 229 |
line-height: 16px; |
| 230 |
letter-spacing: 0.2px; |
| 231 |
width: 100%; |
| 232 |
} |
| 233 |
|
| 234 |
/* ===================== |
| 235 |
Textarea section |
| 236 |
===================== */ |
| 237 |
.wdkit-textarea-wrap { |
| 238 |
display: none; |
| 239 |
flex-direction: column; |
| 240 |
gap: 6px; |
| 241 |
margin-top: 14px; |
| 242 |
} |
| 243 |
|
| 244 |
/* Label: 14px / Regular / line-height 20px */ |
| 245 |
.wdkit-textarea-label { |
| 246 |
font-size: 14px; |
| 247 |
font-weight: 400; |
| 248 |
color: #020202; |
| 249 |
line-height: 20px; |
| 250 |
} |
| 251 |
|
| 252 |
/* Textarea: matches Figma Input component */ |
| 253 |
.wdkit-reason-txt-deails { |
| 254 |
display: block; |
| 255 |
width: 100%; |
| 256 |
height: 80px; |
| 257 |
min-height: 80px; |
| 258 |
border: 1px solid #f1f1f1; |
| 259 |
border-radius: 6px; |
| 260 |
padding: 8px 12px; |
| 261 |
font-size: 12px; |
| 262 |
font-weight: 400; |
| 263 |
color: #020202; |
| 264 |
letter-spacing: 0.2px; |
| 265 |
resize: none; |
| 266 |
background: #fff; |
| 267 |
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05); |
| 268 |
transition: border-color 0.2s; |
| 269 |
margin-top: 6px; |
| 270 |
} |
| 271 |
|
| 272 |
.wdkit-reason-txt-deails::placeholder { |
| 273 |
color: rgba(2, 2, 2, 0.5); |
| 274 |
font-size: 12px; |
| 275 |
font-weight: 400; |
| 276 |
letter-spacing: 0.2px; |
| 277 |
} |
| 278 |
|
| 279 |
.wdkit-reason-txt-deails:focus { |
| 280 |
box-shadow: none; |
| 281 |
outline: none; |
| 282 |
border-color: #020202; |
| 283 |
} |
| 284 |
|
| 285 |
/* ===================== |
| 286 |
Bottom section: checkbox + help text |
| 287 |
(flex-col, gap: 14px — from Figma node 9053:36577) |
| 288 |
===================== */ |
| 289 |
.wdkit-bottom-section { |
| 290 |
display: flex; |
| 291 |
flex-direction: column; |
| 292 |
gap: 14px; |
| 293 |
padding: 0 24px 20px; |
| 294 |
} |
| 295 |
|
| 296 |
/* Email Consent row: flex, gap: 8px, items-center */ |
| 297 |
.wdkit-email-consent { |
| 298 |
display: flex; |
| 299 |
align-items: center; |
| 300 |
gap: 8px; |
| 301 |
} |
| 302 |
|
| 303 |
/* wkit-check-box — ported from build/index.css */ |
| 304 |
#wdkit-deactive-modal .wkit-check-box { |
| 305 |
appearance: none; |
| 306 |
-webkit-appearance: none; |
| 307 |
background: #fff; |
| 308 |
border: 1px solid #020202; |
| 309 |
border-radius: 4px; |
| 310 |
width: 16px; |
| 311 |
height: 16px; |
| 312 |
min-width: 16px; |
| 313 |
margin: 0; |
| 314 |
cursor: pointer; |
| 315 |
flex-shrink: 0; |
| 316 |
position: relative; |
| 317 |
} |
| 318 |
|
| 319 |
#wdkit-deactive-modal .wkit-check-box:focus { |
| 320 |
border-color: #020202; |
| 321 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important; |
| 322 |
outline: 0 solid transparent !important; |
| 323 |
} |
| 324 |
|
| 325 |
#wdkit-deactive-modal .wkit-check-box:checked { |
| 326 |
background-color: #020202; |
| 327 |
display: flex; |
| 328 |
align-items: center; |
| 329 |
justify-content: center; |
| 330 |
} |
| 331 |
|
| 332 |
#wdkit-deactive-modal .wkit-check-box:checked::before { |
| 333 |
content: ""; |
| 334 |
position: absolute; |
| 335 |
top: 1px; |
| 336 |
margin-left: 1px; |
| 337 |
width: 5px; |
| 338 |
height: 10px; |
| 339 |
border: 2px solid #fff; |
| 340 |
border-left: 0; |
| 341 |
border-top: 0; |
| 342 |
box-sizing: content-box; |
| 343 |
transform: rotate(40deg); |
| 344 |
} |
| 345 |
|
| 346 |
/* Checkbox label: 12px / Regular / #808080 / letter-spacing 0.2px */ |
| 347 |
.wdkit-email-consent label { |
| 348 |
font-size: 12px; |
| 349 |
font-weight: 400; |
| 350 |
color: #808080; |
| 351 |
line-height: 16px; |
| 352 |
letter-spacing: 0.2px; |
| 353 |
cursor: pointer; |
| 354 |
} |
| 355 |
|
| 356 |
/* Help text: 12px / Regular / #808080 */ |
| 357 |
.wdkit-help-link { |
| 358 |
padding: 0; |
| 359 |
} |
| 360 |
|
| 361 |
.wdkit-help-link span { |
| 362 |
font-size: 12px; |
| 363 |
font-weight: 400; |
| 364 |
color: #808080; |
| 365 |
line-height: 16px; |
| 366 |
letter-spacing: 0.2px; |
| 367 |
} |
| 368 |
|
| 369 |
.wdkit-help-link span a { |
| 370 |
color: #020202; |
| 371 |
font-weight: 400; |
| 372 |
text-decoration: none; |
| 373 |
} |
| 374 |
|
| 375 |
.wdkit-help-link span a:hover { |
| 376 |
text-decoration: underline; |
| 377 |
} |
| 378 |
|
| 379 |
.wdkit-help-link span a:focus { |
| 380 |
box-shadow: none; |
| 381 |
outline: none; |
| 382 |
} |
| 383 |
|
| 384 |
/* ===================== |
| 385 |
Footer |
| 386 |
===================== */ |
| 387 |
#wdkit-deactive-modal .wdkit-modal-footer { |
| 388 |
padding: 14px 24px; |
| 389 |
display: flex; |
| 390 |
align-items: center; |
| 391 |
justify-content: flex-end; |
| 392 |
gap: 16px; |
| 393 |
border-top: 1px solid #f1f1f1; |
| 394 |
} |
| 395 |
|
| 396 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-deactive { |
| 397 |
display: inline-flex; |
| 398 |
align-items: center; |
| 399 |
justify-content: center; |
| 400 |
cursor: pointer; |
| 401 |
font-size: 13px; |
| 402 |
font-weight: 500; |
| 403 |
color: #020202; |
| 404 |
padding: 9px 16px; |
| 405 |
border-radius: 6px; |
| 406 |
border: 1px solid transparent; |
| 407 |
background: transparent; |
| 408 |
transition: all 0.2s; |
| 409 |
text-decoration: none; |
| 410 |
line-height: 1; |
| 411 |
min-width: 136px; |
| 412 |
min-height: 35px; |
| 413 |
} |
| 414 |
|
| 415 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-deactive:hover { |
| 416 |
border-color: #020202; |
| 417 |
} |
| 418 |
|
| 419 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-submit { |
| 420 |
display: inline-flex; |
| 421 |
align-items: center; |
| 422 |
justify-content: center; |
| 423 |
cursor: pointer; |
| 424 |
font-size: 13px; |
| 425 |
font-weight: 700; |
| 426 |
color: #fff; |
| 427 |
padding: 9px 24px; |
| 428 |
background-color: #020202; |
| 429 |
border: 1px solid #020202; |
| 430 |
border-radius: 6px; |
| 431 |
transition: all 0.2s; |
| 432 |
text-decoration: none; |
| 433 |
line-height: 1; |
| 434 |
min-width: 93px; |
| 435 |
min-height: 35px; |
| 436 |
} |
| 437 |
|
| 438 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-submit:hover { |
| 439 |
background-color: #333; |
| 440 |
border-color: #333; |
| 441 |
} |
| 442 |
|
| 443 |
/* Focus states */ |
| 444 |
#wdkit-deactive-modal .wdkit-modal-deactive:focus, |
| 445 |
#wdkit-deactive-modal .wdkit-modal-submit:focus { |
| 446 |
border-color: #020202 !important; |
| 447 |
box-shadow: none !important; |
| 448 |
outline: none !important; |
| 449 |
} |
| 450 |
|
| 451 |
/* ===================== |
| 452 |
Loading spinner |
| 453 |
===================== */ |
| 454 |
@keyframes wdkit-btn-spin { |
| 455 |
to { transform: rotate(360deg); } |
| 456 |
} |
| 457 |
|
| 458 |
/* Clicked button: spinner + disabled look */ |
| 459 |
#wdkit-deactive-modal .wdkit-modal-submit.wdkit-loading, |
| 460 |
#wdkit-deactive-modal .wdkit-modal-deactive.wdkit-loading { |
| 461 |
cursor: not-allowed; |
| 462 |
opacity: 0.5; |
| 463 |
} |
| 464 |
|
| 465 |
/* Other button: disabled via parent class — no spinner, just disabled look */ |
| 466 |
#wdkit-deactive-modal .wdkit-modal-footer.wdkit-footer-disabled .wdkit-modal-submit:not(.wdkit-loading), |
| 467 |
#wdkit-deactive-modal .wdkit-modal-footer.wdkit-footer-disabled .wdkit-modal-deactive:not(.wdkit-loading) { |
| 468 |
cursor: not-allowed; |
| 469 |
opacity: 0.5; |
| 470 |
} |
| 471 |
|
| 472 |
#wdkit-deactive-modal .wdkit-modal-submit.wdkit-loading::before { |
| 473 |
content: ""; |
| 474 |
display: inline-block; |
| 475 |
width: 14px; |
| 476 |
height: 14px; |
| 477 |
border: 2px solid rgba(255, 255, 255, 0.35); |
| 478 |
border-top-color: #fff; |
| 479 |
border-radius: 50%; |
| 480 |
animation: wdkit-btn-spin 0.8s linear infinite; |
| 481 |
vertical-align: middle; |
| 482 |
flex-shrink: 0; |
| 483 |
} |
| 484 |
|
| 485 |
#wdkit-deactive-modal .wdkit-modal-deactive.wdkit-loading::before { |
| 486 |
content: ""; |
| 487 |
display: inline-block; |
| 488 |
width: 14px; |
| 489 |
height: 14px; |
| 490 |
border: 2px solid rgba(2, 2, 2, 0.2); |
| 491 |
border-top-color: #020202; |
| 492 |
border-radius: 50%; |
| 493 |
animation: wdkit-btn-spin 0.8s linear infinite; |
| 494 |
vertical-align: middle; |
| 495 |
flex-shrink: 0; |
| 496 |
} |
| 497 |
|
| 498 |
/* ===================== |
| 499 |
Responsive |
| 500 |
===================== */ |
| 501 |
|
| 502 |
/* Tablet */ |
| 503 |
@media (max-width: 600px) { |
| 504 |
#wdkit-deactive-modal { |
| 505 |
padding: 12px; |
| 506 |
align-items: flex-end; |
| 507 |
} |
| 508 |
|
| 509 |
.wdkit-modal-wrap { |
| 510 |
max-width: 100%; |
| 511 |
border-radius: 12px 12px 0 0; |
| 512 |
} |
| 513 |
|
| 514 |
#wdkit-deactive-modal .wdkit-modal-header { |
| 515 |
padding: 16px 16px 12px; |
| 516 |
} |
| 517 |
|
| 518 |
#wdkit-deactive-modal .wdkit-feed-head-title { |
| 519 |
font-size: 16px; |
| 520 |
} |
| 521 |
|
| 522 |
#wdkit-deactive-modal .wdkit-modal-body { |
| 523 |
padding: 8px 16px 16px; |
| 524 |
gap: 16px; |
| 525 |
} |
| 526 |
|
| 527 |
.wdkit-bottom-section { |
| 528 |
padding: 0 16px 16px; |
| 529 |
gap: 12px; |
| 530 |
} |
| 531 |
|
| 532 |
#wdkit-deactive-modal .wdkit-modal-footer { |
| 533 |
padding: 12px 16px; |
| 534 |
} |
| 535 |
} |
| 536 |
|
| 537 |
/* Mobile — single column, bottom sheet */ |
| 538 |
@media (max-width: 420px) { |
| 539 |
#wdkit-deactive-modal { |
| 540 |
padding: 0; |
| 541 |
align-items: flex-end; |
| 542 |
} |
| 543 |
|
| 544 |
.wdkit-modal-wrap { |
| 545 |
border-radius: 16px 16px 0 0; |
| 546 |
max-height: 90vh; |
| 547 |
} |
| 548 |
|
| 549 |
#wdkit-deactive-modal .wdkit-modal-header { |
| 550 |
padding: 14px 14px 10px; |
| 551 |
position: sticky; |
| 552 |
top: 0; |
| 553 |
background: #fff; |
| 554 |
z-index: 1; |
| 555 |
} |
| 556 |
|
| 557 |
#wdkit-deactive-modal .wdkit-feed-head-title { |
| 558 |
font-size: 15px; |
| 559 |
} |
| 560 |
|
| 561 |
#wdkit-deactive-modal .wdkit-modal-body { |
| 562 |
padding: 8px 14px 14px; |
| 563 |
gap: 14px; |
| 564 |
} |
| 565 |
|
| 566 |
/* Single column on mobile */ |
| 567 |
.wdkit-reason-card { |
| 568 |
width: 100%; |
| 569 |
} |
| 570 |
|
| 571 |
.wdkit-bottom-section { |
| 572 |
padding: 0 14px 14px; |
| 573 |
gap: 12px; |
| 574 |
} |
| 575 |
|
| 576 |
#wdkit-deactive-modal .wdkit-modal-footer { |
| 577 |
padding: 12px 14px; |
| 578 |
position: sticky; |
| 579 |
bottom: 0; |
| 580 |
background: #fff; |
| 581 |
} |
| 582 |
|
| 583 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-deactive, |
| 584 |
#wdkit-deactive-modal .wdkit-modal-footer .wdkit-modal-submit { |
| 585 |
font-size: 12px; |
| 586 |
padding: 8px 14px; |
| 587 |
} |
| 588 |
} |
| 589 |
|