| 1 |
/** |
| 2 |
* King Addons Wishlist Styles |
| 3 |
* |
| 4 |
* @package King_Addons |
| 5 |
*/ |
| 6 |
|
| 7 |
/* Button Base */ |
| 8 |
.king-addons-wishlist-button { |
| 9 |
display: inline-flex; |
| 10 |
align-items: center; |
| 11 |
gap: 6px; |
| 12 |
padding: 8px 14px; |
| 13 |
border: 1px solid #e5e7eb; |
| 14 |
background: #ffffff; |
| 15 |
color: #111827; |
| 16 |
cursor: pointer; |
| 17 |
border-radius: 6px; |
| 18 |
font-size: 14px; |
| 19 |
font-weight: 500; |
| 20 |
line-height: 1.4; |
| 21 |
transition: all 0.2s ease; |
| 22 |
} |
| 23 |
|
| 24 |
.king-addons-wishlist-button:hover { |
| 25 |
border-color: #f87171; |
| 26 |
background: #fef2f2; |
| 27 |
color: #b91c1c; |
| 28 |
} |
| 29 |
|
| 30 |
.king-addons-wishlist-button:focus { |
| 31 |
outline: 2px solid #f87171; |
| 32 |
outline-offset: 2px; |
| 33 |
} |
| 34 |
|
| 35 |
.king-addons-wishlist-button:disabled { |
| 36 |
opacity: 0.6; |
| 37 |
cursor: not-allowed; |
| 38 |
} |
| 39 |
|
| 40 |
/* Button Added State */ |
| 41 |
.king-addons-wishlist-button--added { |
| 42 |
border-color: #f87171; |
| 43 |
background: #fef2f2; |
| 44 |
color: #b91c1c; |
| 45 |
} |
| 46 |
|
| 47 |
.king-addons-wishlist-button--added:hover { |
| 48 |
border-color: #ef4444; |
| 49 |
background: #fee2e2; |
| 50 |
color: #991b1b; |
| 51 |
} |
| 52 |
|
| 53 |
/* Button Icon */ |
| 54 |
.king-addons-wishlist-button__icon { |
| 55 |
display: inline-flex; |
| 56 |
align-items: center; |
| 57 |
justify-content: center; |
| 58 |
flex-shrink: 0; |
| 59 |
} |
| 60 |
|
| 61 |
.king-addons-wishlist-button__icon i { |
| 62 |
display: inline-block; |
| 63 |
font-size: 16px; |
| 64 |
line-height: 1; |
| 65 |
transition: transform 0.2s ease; |
| 66 |
} |
| 67 |
|
| 68 |
.king-addons-wishlist-button__heart { |
| 69 |
display: block; |
| 70 |
width: 1em; |
| 71 |
height: 1em; |
| 72 |
min-width: 16px; |
| 73 |
min-height: 16px; |
| 74 |
fill: none; |
| 75 |
stroke: currentColor; |
| 76 |
stroke-width: 2; |
| 77 |
stroke-linecap: round; |
| 78 |
stroke-linejoin: round; |
| 79 |
transition: transform 0.2s ease, fill 0.2s ease; |
| 80 |
} |
| 81 |
|
| 82 |
.king-addons-wishlist-button:hover .king-addons-wishlist-button__icon i, |
| 83 |
.king-addons-wishlist-button:hover .king-addons-wishlist-button__heart { |
| 84 |
transform: scale(1.1); |
| 85 |
} |
| 86 |
|
| 87 |
.king-addons-wishlist-button--added .king-addons-wishlist-button__heart { |
| 88 |
fill: currentColor; |
| 89 |
} |
| 90 |
|
| 91 |
/* Button Label */ |
| 92 |
.king-addons-wishlist-button__label { |
| 93 |
white-space: nowrap; |
| 94 |
} |
| 95 |
|
| 96 |
/* Single Product Position */ |
| 97 |
.king-addons-wishlist-button--single { |
| 98 |
margin: 10px 0; |
| 99 |
} |
| 100 |
|
| 101 |
/* Loop/Archive Button */ |
| 102 |
.king-addons-wishlist-button--loop { |
| 103 |
padding: 6px 10px; |
| 104 |
font-size: 13px; |
| 105 |
} |
| 106 |
|
| 107 |
.ka-woo-products-grid__actions .king-addons-wishlist-button--loop { |
| 108 |
margin: 0; |
| 109 |
} |
| 110 |
|
| 111 |
/* Table Remove Button */ |
| 112 |
.king-addons-wishlist-button--table-remove { |
| 113 |
padding: 6px 12px; |
| 114 |
font-size: 13px; |
| 115 |
border-color: #fca5a5; |
| 116 |
background: #fef2f2; |
| 117 |
color: #dc2626; |
| 118 |
} |
| 119 |
|
| 120 |
.king-addons-wishlist-button--table-remove:hover { |
| 121 |
background: #fee2e2; |
| 122 |
border-color: #ef4444; |
| 123 |
} |
| 124 |
|
| 125 |
/* Counter */ |
| 126 |
.king-addons-wishlist-counter { |
| 127 |
display: inline-flex; |
| 128 |
align-items: center; |
| 129 |
justify-content: center; |
| 130 |
min-width: 24px; |
| 131 |
height: 24px; |
| 132 |
padding: 0 8px; |
| 133 |
background: #111827; |
| 134 |
color: #ffffff; |
| 135 |
border-radius: 999px; |
| 136 |
font-weight: 600; |
| 137 |
font-size: 12px; |
| 138 |
line-height: 1; |
| 139 |
} |
| 140 |
|
| 141 |
.king-addons-wishlist-counter--icon { |
| 142 |
position: absolute; |
| 143 |
top: -6px; |
| 144 |
right: -6px; |
| 145 |
min-width: 18px; |
| 146 |
height: 18px; |
| 147 |
padding: 0 5px; |
| 148 |
font-size: 11px; |
| 149 |
background: #ef4444; |
| 150 |
} |
| 151 |
|
| 152 |
.king-addons-wishlist-fab .king-addons-wishlist-counter[data-count="0"] { |
| 153 |
opacity: 0.55; |
| 154 |
} |
| 155 |
|
| 156 |
/* Floating Action Button (FAB) */ |
| 157 |
.king-addons-wishlist-fab { |
| 158 |
position: relative; |
| 159 |
display: inline-flex; |
| 160 |
align-items: center; |
| 161 |
justify-content: center; |
| 162 |
width: 48px; |
| 163 |
height: 48px; |
| 164 |
background: #111827; |
| 165 |
color: #ffffff; |
| 166 |
border-radius: 50%; |
| 167 |
cursor: pointer; |
| 168 |
transition: transform 0.2s ease, box-shadow 0.2s ease; |
| 169 |
} |
| 170 |
|
| 171 |
.king-addons-wishlist-fab:hover { |
| 172 |
transform: scale(1.05); |
| 173 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); |
| 174 |
} |
| 175 |
|
| 176 |
.king-addons-wishlist-fab .king-addons-wishlist-button__heart { |
| 177 |
width: 22px; |
| 178 |
height: 22px; |
| 179 |
min-width: 22px; |
| 180 |
min-height: 22px; |
| 181 |
fill: currentColor; |
| 182 |
stroke: none; |
| 183 |
} |
| 184 |
|
| 185 |
.king-addons-wishlist-fab__link { |
| 186 |
text-decoration: none; |
| 187 |
color: inherit; |
| 188 |
} |
| 189 |
|
| 190 |
/* Wishlist Page Table */ |
| 191 |
.king-addons-wishlist-page { |
| 192 |
width: 100%; |
| 193 |
overflow-x: auto; |
| 194 |
-webkit-overflow-scrolling: touch; |
| 195 |
} |
| 196 |
|
| 197 |
.king-addons-wishlist-table { |
| 198 |
width: 100%; |
| 199 |
min-width: 760px; |
| 200 |
border-collapse: collapse; |
| 201 |
background: #ffffff; |
| 202 |
border: 1px solid #e5e7eb; |
| 203 |
border-radius: 8px; |
| 204 |
overflow: hidden; |
| 205 |
} |
| 206 |
|
| 207 |
.king-addons-wishlist-table__heading { |
| 208 |
padding: 14px 12px; |
| 209 |
background: #f9fafb; |
| 210 |
border-bottom: 1px solid #e5e7eb; |
| 211 |
text-align: left; |
| 212 |
font-weight: 600; |
| 213 |
font-size: 13px; |
| 214 |
color: #374151; |
| 215 |
text-transform: uppercase; |
| 216 |
letter-spacing: 0.05em; |
| 217 |
} |
| 218 |
|
| 219 |
.king-addons-wishlist-table__cell { |
| 220 |
padding: 16px 12px; |
| 221 |
border-bottom: 1px solid #e5e7eb; |
| 222 |
text-align: left; |
| 223 |
vertical-align: middle; |
| 224 |
} |
| 225 |
|
| 226 |
.king-addons-wishlist-table__row:last-child .king-addons-wishlist-table__cell { |
| 227 |
border-bottom: none; |
| 228 |
} |
| 229 |
|
| 230 |
.king-addons-wishlist-table__row:hover { |
| 231 |
background: #f9fafb; |
| 232 |
} |
| 233 |
|
| 234 |
.king-addons-wishlist-table__add-to-cart { |
| 235 |
display: inline-flex; |
| 236 |
align-items: center; |
| 237 |
justify-content: center; |
| 238 |
gap: 8px; |
| 239 |
padding: 10px 16px; |
| 240 |
border-radius: 8px; |
| 241 |
border: 1px solid #111827; |
| 242 |
background-color: #111827; |
| 243 |
color: #ffffff; |
| 244 |
text-decoration: none; |
| 245 |
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; |
| 246 |
position: relative; |
| 247 |
} |
| 248 |
|
| 249 |
.king-addons-wishlist-table__add-to-cart:hover { |
| 250 |
background-color: #0b1220; |
| 251 |
border-color: #0b1220; |
| 252 |
} |
| 253 |
|
| 254 |
.king-addons-wishlist-table__add-to-cart.loading { |
| 255 |
opacity: 0.7; |
| 256 |
pointer-events: none; |
| 257 |
padding-right: 32px; |
| 258 |
} |
| 259 |
|
| 260 |
.king-addons-wishlist-table__add-to-cart.added { |
| 261 |
opacity: 1; |
| 262 |
} |
| 263 |
|
| 264 |
.king-addons-wishlist-table__add-to-cart.loading::after, |
| 265 |
.king-addons-wishlist-table__add-to-cart.added::after { |
| 266 |
content: ''; |
| 267 |
position: absolute; |
| 268 |
right: 10px; |
| 269 |
width: 14px; |
| 270 |
height: 14px; |
| 271 |
border-radius: 50%; |
| 272 |
} |
| 273 |
|
| 274 |
.king-addons-wishlist-table__add-to-cart.loading::after { |
| 275 |
border: 2px solid currentColor; |
| 276 |
border-top-color: transparent; |
| 277 |
animation: king-addons-spin 0.75s linear infinite; |
| 278 |
} |
| 279 |
|
| 280 |
.king-addons-wishlist-table__add-to-cart.added::after { |
| 281 |
border: 2px solid currentColor; |
| 282 |
border-color: currentColor; |
| 283 |
mask: none; |
| 284 |
-webkit-mask: none; |
| 285 |
background: currentColor; |
| 286 |
clip-path: polygon(14% 53%, 0 39%, 0 61%, 14% 75%, 54% 34%, 40% 20%); |
| 287 |
} |
| 288 |
|
| 289 |
.king-addons-wishlist-table .added_to_cart { |
| 290 |
display: inline-flex; |
| 291 |
align-items: center; |
| 292 |
justify-content: center; |
| 293 |
margin-left: 12px; |
| 294 |
padding: 8px 12px; |
| 295 |
border-radius: 6px; |
| 296 |
border: 1px solid #111827; |
| 297 |
background-color: transparent; |
| 298 |
color: #111827; |
| 299 |
text-decoration: none; |
| 300 |
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; |
| 301 |
} |
| 302 |
|
| 303 |
.king-addons-wishlist-table .added_to_cart:hover { |
| 304 |
background-color: #111827; |
| 305 |
color: #ffffff; |
| 306 |
border-color: #111827; |
| 307 |
} |
| 308 |
|
| 309 |
@keyframes king-addons-spin { |
| 310 |
from { |
| 311 |
transform: rotate(0deg); |
| 312 |
} |
| 313 |
to { |
| 314 |
transform: rotate(360deg); |
| 315 |
} |
| 316 |
} |
| 317 |
|
| 318 |
/* Table Image */ |
| 319 |
.king-addons-wishlist-table__thumb { |
| 320 |
display: block; |
| 321 |
} |
| 322 |
|
| 323 |
.king-addons-wishlist-table__thumb img { |
| 324 |
max-width: 70px; |
| 325 |
height: auto; |
| 326 |
display: block; |
| 327 |
border-radius: 4px; |
| 328 |
transition: transform 0.2s ease; |
| 329 |
} |
| 330 |
|
| 331 |
.king-addons-wishlist-table__thumb:hover img { |
| 332 |
transform: scale(1.05); |
| 333 |
} |
| 334 |
|
| 335 |
/* Table Title */ |
| 336 |
.king-addons-wishlist-table__title { |
| 337 |
color: #111827; |
| 338 |
text-decoration: none; |
| 339 |
font-weight: 500; |
| 340 |
transition: color 0.2s ease; |
| 341 |
} |
| 342 |
|
| 343 |
.king-addons-wishlist-table__title:hover { |
| 344 |
color: #2563eb; |
| 345 |
} |
| 346 |
|
| 347 |
/* Table Price */ |
| 348 |
.king-addons-wishlist-table__price { |
| 349 |
font-weight: 600; |
| 350 |
color: #111827; |
| 351 |
} |
| 352 |
|
| 353 |
.king-addons-wishlist-table__price del { |
| 354 |
color: #9ca3af; |
| 355 |
font-weight: 400; |
| 356 |
} |
| 357 |
|
| 358 |
.king-addons-wishlist-table__price ins { |
| 359 |
text-decoration: none; |
| 360 |
color: #059669; |
| 361 |
} |
| 362 |
|
| 363 |
/* Table Stock */ |
| 364 |
.king-addons-wishlist-table__stock { |
| 365 |
display: inline-flex; |
| 366 |
align-items: center; |
| 367 |
gap: 4px; |
| 368 |
padding: 4px 8px; |
| 369 |
border-radius: 4px; |
| 370 |
font-size: 13px; |
| 371 |
font-weight: 500; |
| 372 |
} |
| 373 |
|
| 374 |
/* Empty State */ |
| 375 |
.king-addons-wishlist-table__empty { |
| 376 |
text-align: center; |
| 377 |
padding: 40px 16px; |
| 378 |
color: #6b7280; |
| 379 |
} |
| 380 |
|
| 381 |
.king-addons-wishlist-mini-list--no-titles .king-addons-wishlist-table__heading--title, |
| 382 |
.king-addons-wishlist-mini-list--no-titles .king-addons-wishlist-table__cell--title { |
| 383 |
display: none; |
| 384 |
} |
| 385 |
|
| 386 |
/* Notice */ |
| 387 |
.king-addons-wishlist__notice { |
| 388 |
padding: 16px; |
| 389 |
background: #fef3c7; |
| 390 |
border: 1px solid #fcd34d; |
| 391 |
border-radius: 6px; |
| 392 |
color: #92400e; |
| 393 |
text-align: center; |
| 394 |
} |
| 395 |
|
| 396 |
/* Pro Placeholder */ |
| 397 |
.king-addons-pro-placeholder { |
| 398 |
padding: 20px; |
| 399 |
background: #f3f4f6; |
| 400 |
border: 2px dashed #d1d5db; |
| 401 |
border-radius: 8px; |
| 402 |
text-align: center; |
| 403 |
color: #6b7280; |
| 404 |
} |
| 405 |
|
| 406 |
/* Share Buttons */ |
| 407 |
.king-addons-wishlist-share { |
| 408 |
display: flex; |
| 409 |
flex-wrap: wrap; |
| 410 |
gap: 8px; |
| 411 |
} |
| 412 |
|
| 413 |
/* Multiple lists switcher */ |
| 414 |
.king-addons-wishlist-switcher { |
| 415 |
display: flex; |
| 416 |
flex-wrap: wrap; |
| 417 |
gap: 8px; |
| 418 |
} |
| 419 |
|
| 420 |
.king-addons-wishlist-switcher__item { |
| 421 |
display: inline-flex; |
| 422 |
align-items: center; |
| 423 |
gap: 8px; |
| 424 |
padding: 8px 12px; |
| 425 |
border: 1px solid #e5e7eb; |
| 426 |
border-radius: 6px; |
| 427 |
text-decoration: none; |
| 428 |
color: #111827; |
| 429 |
} |
| 430 |
|
| 431 |
.king-addons-wishlist-switcher__item.is-active { |
| 432 |
border-color: #B45309; |
| 433 |
background: #FDE68A; |
| 434 |
color: #B45309; |
| 435 |
} |
| 436 |
|
| 437 |
.king-addons-wishlist-switcher__count { |
| 438 |
min-width: 1.25em; |
| 439 |
text-align: center; |
| 440 |
font-weight: 600; |
| 441 |
} |
| 442 |
|
| 443 |
/* Notes (Pro) */ |
| 444 |
.king-addons-wishlist-notes { |
| 445 |
min-width: 180px; |
| 446 |
} |
| 447 |
|
| 448 |
.king-addons-wishlist-notes__display { |
| 449 |
display: flex; |
| 450 |
align-items: flex-start; |
| 451 |
gap: 8px; |
| 452 |
} |
| 453 |
|
| 454 |
.king-addons-wishlist-notes__text { |
| 455 |
flex: 1; |
| 456 |
font-size: 13px; |
| 457 |
line-height: 1.4; |
| 458 |
color: #374151; |
| 459 |
word-break: break-word; |
| 460 |
} |
| 461 |
|
| 462 |
.king-addons-wishlist-notes__edit-btn { |
| 463 |
flex-shrink: 0; |
| 464 |
display: inline-flex; |
| 465 |
align-items: center; |
| 466 |
justify-content: center; |
| 467 |
width: 24px; |
| 468 |
height: 24px; |
| 469 |
padding: 0; |
| 470 |
background: transparent; |
| 471 |
border: none; |
| 472 |
color: #9ca3af; |
| 473 |
cursor: pointer; |
| 474 |
transition: color 0.2s ease; |
| 475 |
} |
| 476 |
|
| 477 |
.king-addons-wishlist-notes__edit-btn:hover { |
| 478 |
color: #2563eb; |
| 479 |
} |
| 480 |
|
| 481 |
.king-addons-wishlist-notes__edit-btn .dashicons { |
| 482 |
width: 16px; |
| 483 |
height: 16px; |
| 484 |
font-size: 16px; |
| 485 |
} |
| 486 |
|
| 487 |
.king-addons-wishlist-notes__form { |
| 488 |
display: flex; |
| 489 |
flex-direction: column; |
| 490 |
gap: 8px; |
| 491 |
} |
| 492 |
|
| 493 |
.king-addons-wishlist-notes__input { |
| 494 |
width: 100%; |
| 495 |
min-height: 50px; |
| 496 |
padding: 8px 10px; |
| 497 |
font-size: 13px; |
| 498 |
line-height: 1.4; |
| 499 |
border: 1px solid #d1d5db; |
| 500 |
border-radius: 4px; |
| 501 |
resize: vertical; |
| 502 |
transition: border-color 0.2s ease, box-shadow 0.2s ease; |
| 503 |
} |
| 504 |
|
| 505 |
.king-addons-wishlist-notes__input:focus { |
| 506 |
outline: none; |
| 507 |
border-color: #2563eb; |
| 508 |
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); |
| 509 |
} |
| 510 |
|
| 511 |
.king-addons-wishlist-notes__input::placeholder { |
| 512 |
color: #9ca3af; |
| 513 |
} |
| 514 |
|
| 515 |
.king-addons-wishlist-notes__actions { |
| 516 |
display: flex; |
| 517 |
gap: 6px; |
| 518 |
} |
| 519 |
|
| 520 |
.king-addons-wishlist-notes__save, |
| 521 |
.king-addons-wishlist-notes__cancel { |
| 522 |
padding: 4px 12px; |
| 523 |
font-size: 12px; |
| 524 |
font-weight: 500; |
| 525 |
border-radius: 4px; |
| 526 |
cursor: pointer; |
| 527 |
transition: all 0.2s ease; |
| 528 |
} |
| 529 |
|
| 530 |
.king-addons-wishlist-notes__save { |
| 531 |
background: #2563eb; |
| 532 |
border: 1px solid #2563eb; |
| 533 |
color: #ffffff; |
| 534 |
} |
| 535 |
|
| 536 |
.king-addons-wishlist-notes__save:hover { |
| 537 |
background: #1d4ed8; |
| 538 |
border-color: #1d4ed8; |
| 539 |
} |
| 540 |
|
| 541 |
.king-addons-wishlist-notes__save:disabled { |
| 542 |
opacity: 0.6; |
| 543 |
cursor: not-allowed; |
| 544 |
} |
| 545 |
|
| 546 |
.king-addons-wishlist-notes__cancel { |
| 547 |
background: #ffffff; |
| 548 |
border: 1px solid #d1d5db; |
| 549 |
color: #374151; |
| 550 |
} |
| 551 |
|
| 552 |
.king-addons-wishlist-notes__cancel:hover { |
| 553 |
background: #f9fafb; |
| 554 |
border-color: #9ca3af; |
| 555 |
} |
| 556 |
|
| 557 |
/* Mobile Responsive */ |
| 558 |
@media (max-width: 768px) { |
| 559 |
.king-addons-wishlist-table { |
| 560 |
display: block; |
| 561 |
} |
| 562 |
|
| 563 |
.king-addons-wishlist-table thead { |
| 564 |
display: none; |
| 565 |
} |
| 566 |
|
| 567 |
.king-addons-wishlist-table tbody, |
| 568 |
.king-addons-wishlist-table__row { |
| 569 |
display: block; |
| 570 |
} |
| 571 |
|
| 572 |
.king-addons-wishlist-table__row { |
| 573 |
padding: 16px; |
| 574 |
margin-bottom: 12px; |
| 575 |
border: 1px solid #e5e7eb; |
| 576 |
border-radius: 8px; |
| 577 |
} |
| 578 |
|
| 579 |
.king-addons-wishlist-table__cell { |
| 580 |
display: flex; |
| 581 |
justify-content: space-between; |
| 582 |
align-items: center; |
| 583 |
padding: 8px 0; |
| 584 |
border-bottom: 1px solid #f3f4f6; |
| 585 |
} |
| 586 |
|
| 587 |
.king-addons-wishlist-table__cell:last-child { |
| 588 |
border-bottom: none; |
| 589 |
} |
| 590 |
|
| 591 |
.king-addons-wishlist-table__cell::before { |
| 592 |
content: attr(data-label); |
| 593 |
font-weight: 600; |
| 594 |
color: #374151; |
| 595 |
} |
| 596 |
|
| 597 |
.king-addons-wishlist-table__cell--image { |
| 598 |
justify-content: center; |
| 599 |
} |
| 600 |
|
| 601 |
.king-addons-wishlist-table__cell--image::before { |
| 602 |
display: none; |
| 603 |
} |
| 604 |
} |
| 605 |
|