| 1 |
.king-addons-comparison-matrix-cards { |
| 2 |
--kng-cmc-gap: 24px; |
| 3 |
--kng-cmc-columns: 3; |
| 4 |
--kng-cmc-card-min-width: 260px; |
| 5 |
--kng-cmc-border-color: #e5e7eb; |
| 6 |
--kng-cmc-text: #0f172a; |
| 7 |
--kng-cmc-muted: #64748b; |
| 8 |
--kng-cmc-accent: #1d4ed8; |
| 9 |
--kng-cmc-included: #16a34a; |
| 10 |
--kng-cmc-excluded: #dc2626; |
| 11 |
--kng-cmc-limited: #f59e0b; |
| 12 |
--kng-cmc-tooltip-bg: #111827; |
| 13 |
--kng-cmc-tooltip-text: #ffffff; |
| 14 |
--kng-cmc-unique-bg: rgba(29, 78, 216, 0.08); |
| 15 |
--kng-cmc-unique-border: rgba(29, 78, 216, 0.32); |
| 16 |
--kng-cmc-unique-text: #1d4ed8; |
| 17 |
--kng-cmc-divider-color: rgba(148, 163, 184, 0.4); |
| 18 |
--kng-cmc-divider-style: dashed; |
| 19 |
--kng-cmc-divider-width: 1px; |
| 20 |
--kng-cmc-header-gap: 8px; |
| 21 |
--kng-cmc-group-bg: transparent; |
| 22 |
--kng-cmc-group-radius: 0px; |
| 23 |
--kng-cmc-group-padding: 6px 0 0 0; |
| 24 |
--kng-cmc-card-hover-translate: 0px; |
| 25 |
--kng-cmc-dim-opacity: 0.45; |
| 26 |
--kng-cmc-sticky-offset: 0px; |
| 27 |
--kng-cmc-sticky-bg: #ffffff; |
| 28 |
--kng-cmc-sticky-divider: rgba(148, 163, 184, 0.4); |
| 29 |
--kng-cmc-sticky-shadow: rgba(15, 23, 42, 0.18); |
| 30 |
--kng-cmc-search-bg: #ffffff; |
| 31 |
--kng-cmc-search-border: #e5e7eb; |
| 32 |
--kng-cmc-search-text: #0f172a; |
| 33 |
} |
| 34 |
|
| 35 |
.king-addons-comparison-matrix-cards__controls { |
| 36 |
display: flex; |
| 37 |
flex-wrap: wrap; |
| 38 |
align-items: center; |
| 39 |
gap: 12px; |
| 40 |
margin-bottom: 20px; |
| 41 |
} |
| 42 |
|
| 43 |
.king-addons-comparison-matrix-cards__search { |
| 44 |
flex: 1 1 240px; |
| 45 |
} |
| 46 |
|
| 47 |
.king-addons-comparison-matrix-cards__search-input { |
| 48 |
width: 100%; |
| 49 |
padding: 10px 14px; |
| 50 |
border-radius: 12px; |
| 51 |
border: 1px solid var(--kng-cmc-search-border); |
| 52 |
background: var(--kng-cmc-search-bg); |
| 53 |
color: var(--kng-cmc-search-text); |
| 54 |
font-size: 14px; |
| 55 |
outline: none; |
| 56 |
transition: border-color 0.2s ease, box-shadow 0.2s ease; |
| 57 |
} |
| 58 |
|
| 59 |
.king-addons-comparison-matrix-cards__search-input:focus { |
| 60 |
border-color: var(--kng-cmc-accent); |
| 61 |
box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); |
| 62 |
} |
| 63 |
|
| 64 |
.king-addons-comparison-matrix-cards__highlight-toggle { |
| 65 |
display: inline-flex; |
| 66 |
align-items: center; |
| 67 |
gap: 8px; |
| 68 |
font-size: 14px; |
| 69 |
color: var(--kng-cmc-text); |
| 70 |
cursor: pointer; |
| 71 |
position: relative; |
| 72 |
} |
| 73 |
|
| 74 |
.king-addons-comparison-matrix-cards__highlight-input { |
| 75 |
position: absolute; |
| 76 |
opacity: 0; |
| 77 |
width: 0; |
| 78 |
height: 0; |
| 79 |
} |
| 80 |
|
| 81 |
.king-addons-comparison-matrix-cards__toggle-indicator { |
| 82 |
position: relative; |
| 83 |
width: 42px; |
| 84 |
height: 22px; |
| 85 |
border-radius: 999px; |
| 86 |
background: #cbd5f5; |
| 87 |
transition: background 0.2s ease; |
| 88 |
} |
| 89 |
|
| 90 |
.king-addons-comparison-matrix-cards__toggle-indicator::after { |
| 91 |
content: ""; |
| 92 |
position: absolute; |
| 93 |
top: 3px; |
| 94 |
left: 3px; |
| 95 |
width: 16px; |
| 96 |
height: 16px; |
| 97 |
border-radius: 50%; |
| 98 |
background: #ffffff; |
| 99 |
transition: transform 0.2s ease; |
| 100 |
} |
| 101 |
|
| 102 |
.king-addons-comparison-matrix-cards__highlight-input:checked + .king-addons-comparison-matrix-cards__toggle-indicator { |
| 103 |
background: var(--kng-cmc-accent); |
| 104 |
} |
| 105 |
|
| 106 |
.king-addons-comparison-matrix-cards__highlight-input:focus + .king-addons-comparison-matrix-cards__toggle-indicator { |
| 107 |
box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2); |
| 108 |
} |
| 109 |
|
| 110 |
.king-addons-comparison-matrix-cards__highlight-input:checked + .king-addons-comparison-matrix-cards__toggle-indicator::after { |
| 111 |
transform: translateX(20px); |
| 112 |
} |
| 113 |
|
| 114 |
.king-addons-comparison-matrix-cards__grid { |
| 115 |
display: grid; |
| 116 |
grid-template-columns: repeat(var(--kng-cmc-columns), minmax(0, 1fr)); |
| 117 |
gap: var(--kng-cmc-gap); |
| 118 |
} |
| 119 |
|
| 120 |
.king-addons-comparison-matrix-cards__card { |
| 121 |
display: flex; |
| 122 |
flex-direction: column; |
| 123 |
gap: 18px; |
| 124 |
padding: 28px; |
| 125 |
background: #ffffff; |
| 126 |
border: 1px solid var(--kng-cmc-border-color); |
| 127 |
border-radius: 16px; |
| 128 |
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); |
| 129 |
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease; |
| 130 |
} |
| 131 |
|
| 132 |
.king-addons-comparison-matrix-cards__card:hover { |
| 133 |
transform: translateY(var(--kng-cmc-card-hover-translate)); |
| 134 |
} |
| 135 |
|
| 136 |
.king-addons-comparison-matrix-cards--preset-minimal .king-addons-comparison-matrix-cards__card { |
| 137 |
box-shadow: none; |
| 138 |
border-color: transparent; |
| 139 |
background: #f8fafc; |
| 140 |
} |
| 141 |
|
| 142 |
.king-addons-comparison-matrix-cards--preset-bordered .king-addons-comparison-matrix-cards__card { |
| 143 |
border-width: 2px; |
| 144 |
} |
| 145 |
|
| 146 |
.king-addons-comparison-matrix-cards--preset-soft .king-addons-comparison-matrix-cards__card { |
| 147 |
background: #ffffff; |
| 148 |
border-color: rgba(148, 163, 184, 0.35); |
| 149 |
} |
| 150 |
|
| 151 |
.king-addons-comparison-matrix-cards--equal-height .king-addons-comparison-matrix-cards__card { |
| 152 |
height: 100%; |
| 153 |
} |
| 154 |
|
| 155 |
.king-addons-comparison-matrix-cards__header { |
| 156 |
display: flex; |
| 157 |
flex-direction: column; |
| 158 |
gap: var(--kng-cmc-header-gap); |
| 159 |
} |
| 160 |
|
| 161 |
.king-addons-comparison-matrix-cards.is-sticky-enabled .king-addons-comparison-matrix-cards__header { |
| 162 |
position: sticky; |
| 163 |
top: var(--kng-cmc-sticky-offset); |
| 164 |
z-index: 2; |
| 165 |
background: var(--kng-cmc-sticky-bg); |
| 166 |
padding-bottom: 8px; |
| 167 |
border-bottom: 1px solid var(--kng-cmc-sticky-divider); |
| 168 |
} |
| 169 |
|
| 170 |
.king-addons-comparison-matrix-cards.has-sticky-shadow .king-addons-comparison-matrix-cards__header { |
| 171 |
box-shadow: 0 10px 20px -16px var(--kng-cmc-sticky-shadow); |
| 172 |
} |
| 173 |
|
| 174 |
.king-addons-comparison-matrix-cards__badge { |
| 175 |
align-self: flex-start; |
| 176 |
padding: 4px 10px; |
| 177 |
border-radius: 999px; |
| 178 |
background: rgba(29, 78, 216, 0.12); |
| 179 |
color: var(--kng-cmc-accent); |
| 180 |
font-size: 12px; |
| 181 |
font-weight: 600; |
| 182 |
} |
| 183 |
|
| 184 |
.king-addons-comparison-matrix-cards__title { |
| 185 |
margin: 0; |
| 186 |
color: var(--kng-cmc-text); |
| 187 |
font-size: 20px; |
| 188 |
font-weight: 700; |
| 189 |
line-height: 1.3; |
| 190 |
} |
| 191 |
|
| 192 |
.king-addons-comparison-matrix-cards__description { |
| 193 |
margin: 0; |
| 194 |
color: var(--kng-cmc-muted); |
| 195 |
font-size: 14px; |
| 196 |
line-height: 1.5; |
| 197 |
} |
| 198 |
|
| 199 |
.king-addons-comparison-matrix-cards__price { |
| 200 |
font-size: 32px; |
| 201 |
font-weight: 700; |
| 202 |
color: var(--kng-cmc-text); |
| 203 |
} |
| 204 |
|
| 205 |
.king-addons-comparison-matrix-cards__subtitle { |
| 206 |
font-size: 14px; |
| 207 |
color: var(--kng-cmc-muted); |
| 208 |
} |
| 209 |
|
| 210 |
.king-addons-comparison-matrix-cards__button { |
| 211 |
display: inline-flex; |
| 212 |
align-items: center; |
| 213 |
justify-content: center; |
| 214 |
padding: 10px 18px; |
| 215 |
border-radius: 999px; |
| 216 |
background: var(--kng-cmc-accent); |
| 217 |
color: #ffffff; |
| 218 |
text-decoration: none; |
| 219 |
font-weight: 600; |
| 220 |
transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; |
| 221 |
} |
| 222 |
|
| 223 |
.king-addons-comparison-matrix-cards__button:hover { |
| 224 |
transform: translateY(-2px); |
| 225 |
box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25); |
| 226 |
} |
| 227 |
|
| 228 |
.king-addons-comparison-matrix-cards__features { |
| 229 |
flex: 1 1 auto; |
| 230 |
} |
| 231 |
|
| 232 |
.king-addons-comparison-matrix-cards__feature-list { |
| 233 |
list-style: none; |
| 234 |
margin: 0; |
| 235 |
padding: 0; |
| 236 |
display: flex; |
| 237 |
flex-direction: column; |
| 238 |
gap: 14px; |
| 239 |
} |
| 240 |
|
| 241 |
.king-addons-comparison-matrix-cards__feature { |
| 242 |
display: flex; |
| 243 |
align-items: center; |
| 244 |
justify-content: space-between; |
| 245 |
gap: 16px; |
| 246 |
padding-bottom: 12px; |
| 247 |
border-bottom: var(--kng-cmc-divider-width) var(--kng-cmc-divider-style) var(--kng-cmc-divider-color); |
| 248 |
transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; |
| 249 |
} |
| 250 |
|
| 251 |
.king-addons-comparison-matrix-cards__feature:last-child { |
| 252 |
border-bottom: none; |
| 253 |
padding-bottom: 0; |
| 254 |
} |
| 255 |
|
| 256 |
.king-addons-comparison-matrix-cards__feature.is-filter-hidden, |
| 257 |
.king-addons-comparison-matrix-cards__feature.is-highlight-hidden { |
| 258 |
display: none; |
| 259 |
} |
| 260 |
|
| 261 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-background .king-addons-comparison-matrix-cards__feature.is-unique { |
| 262 |
background: var(--kng-cmc-unique-bg); |
| 263 |
border: 1px solid var(--kng-cmc-unique-border); |
| 264 |
color: var(--kng-cmc-unique-text); |
| 265 |
padding: 10px 12px; |
| 266 |
border-radius: 12px; |
| 267 |
border-bottom: none; |
| 268 |
} |
| 269 |
|
| 270 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-background .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__feature-value, |
| 271 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-background .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__feature-label { |
| 272 |
color: var(--kng-cmc-unique-text); |
| 273 |
} |
| 274 |
|
| 275 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-border .king-addons-comparison-matrix-cards__feature.is-unique { |
| 276 |
background: transparent; |
| 277 |
border: 2px solid var(--kng-cmc-unique-border); |
| 278 |
color: var(--kng-cmc-unique-text); |
| 279 |
padding: 10px 12px; |
| 280 |
border-radius: 12px; |
| 281 |
border-bottom: none; |
| 282 |
} |
| 283 |
|
| 284 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-border .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__feature-value, |
| 285 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-border .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__feature-label { |
| 286 |
color: var(--kng-cmc-unique-text); |
| 287 |
} |
| 288 |
|
| 289 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-icon .king-addons-comparison-matrix-cards__feature.is-unique { |
| 290 |
border-bottom-color: transparent; |
| 291 |
} |
| 292 |
|
| 293 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-icon .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__icon, |
| 294 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-unique.is-highlight-style-icon .king-addons-comparison-matrix-cards__feature.is-unique .king-addons-comparison-matrix-cards__feature-value { |
| 295 |
color: var(--kng-cmc-unique-text); |
| 296 |
} |
| 297 |
|
| 298 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-dim .king-addons-comparison-matrix-cards__feature.is-identical { |
| 299 |
opacity: var(--kng-cmc-dim-opacity); |
| 300 |
} |
| 301 |
|
| 302 |
.king-addons-comparison-matrix-cards.is-highlight-active.is-highlight-mode-hide .king-addons-comparison-matrix-cards__feature.is-identical { |
| 303 |
display: none; |
| 304 |
} |
| 305 |
|
| 306 |
.king-addons-comparison-matrix-cards__feature-label { |
| 307 |
display: inline-flex; |
| 308 |
align-items: center; |
| 309 |
gap: 6px; |
| 310 |
color: var(--kng-cmc-text); |
| 311 |
font-size: 14px; |
| 312 |
font-weight: 500; |
| 313 |
} |
| 314 |
|
| 315 |
.king-addons-comparison-matrix-cards__feature-value { |
| 316 |
display: inline-flex; |
| 317 |
align-items: center; |
| 318 |
gap: 6px; |
| 319 |
color: var(--kng-cmc-text); |
| 320 |
font-weight: 600; |
| 321 |
} |
| 322 |
|
| 323 |
.king-addons-comparison-matrix-cards__feature-group { |
| 324 |
padding: var(--kng-cmc-group-padding); |
| 325 |
background: var(--kng-cmc-group-bg); |
| 326 |
border-radius: var(--kng-cmc-group-radius); |
| 327 |
} |
| 328 |
|
| 329 |
.king-addons-comparison-matrix-cards__feature-group.is-hidden { |
| 330 |
display: none; |
| 331 |
} |
| 332 |
|
| 333 |
.king-addons-comparison-matrix-cards__group { |
| 334 |
font-size: 12px; |
| 335 |
letter-spacing: 0.08em; |
| 336 |
text-transform: uppercase; |
| 337 |
color: var(--kng-cmc-muted); |
| 338 |
font-weight: 600; |
| 339 |
} |
| 340 |
|
| 341 |
.king-addons-comparison-matrix-cards__footer { |
| 342 |
font-size: 12px; |
| 343 |
color: var(--kng-cmc-muted); |
| 344 |
} |
| 345 |
|
| 346 |
.king-addons-comparison-matrix-cards__icon { |
| 347 |
display: inline-flex; |
| 348 |
align-items: center; |
| 349 |
justify-content: center; |
| 350 |
width: 18px; |
| 351 |
height: 18px; |
| 352 |
} |
| 353 |
|
| 354 |
.king-addons-comparison-matrix-cards__icon.is-included { |
| 355 |
color: var(--kng-cmc-included); |
| 356 |
} |
| 357 |
|
| 358 |
.king-addons-comparison-matrix-cards__icon.is-excluded { |
| 359 |
color: var(--kng-cmc-excluded); |
| 360 |
} |
| 361 |
|
| 362 |
.king-addons-comparison-matrix-cards__icon.is-limited { |
| 363 |
color: var(--kng-cmc-limited); |
| 364 |
} |
| 365 |
|
| 366 |
.king-addons-comparison-matrix-cards__tooltip { |
| 367 |
position: relative; |
| 368 |
display: inline-flex; |
| 369 |
align-items: center; |
| 370 |
justify-content: center; |
| 371 |
cursor: help; |
| 372 |
} |
| 373 |
|
| 374 |
.king-addons-comparison-matrix-cards__tooltip-text { |
| 375 |
position: absolute; |
| 376 |
left: 50%; |
| 377 |
bottom: calc(100% + 10px); |
| 378 |
transform: translateX(-50%); |
| 379 |
min-width: 180px; |
| 380 |
padding: 10px 12px; |
| 381 |
border-radius: 10px; |
| 382 |
background: var(--kng-cmc-tooltip-bg); |
| 383 |
color: var(--kng-cmc-tooltip-text); |
| 384 |
font-size: 12px; |
| 385 |
line-height: 1.4; |
| 386 |
opacity: 0; |
| 387 |
pointer-events: none; |
| 388 |
transition: opacity 0.2s ease, transform 0.2s ease; |
| 389 |
transform-origin: bottom center; |
| 390 |
z-index: 5; |
| 391 |
} |
| 392 |
|
| 393 |
.king-addons-comparison-matrix-cards__tooltip:hover .king-addons-comparison-matrix-cards__tooltip-text, |
| 394 |
.king-addons-comparison-matrix-cards__tooltip:focus .king-addons-comparison-matrix-cards__tooltip-text, |
| 395 |
.king-addons-comparison-matrix-cards__tooltip:focus-within .king-addons-comparison-matrix-cards__tooltip-text { |
| 396 |
opacity: 1; |
| 397 |
transform: translateX(-50%) translateY(-2px); |
| 398 |
pointer-events: auto; |
| 399 |
} |
| 400 |
|
| 401 |
@media (max-width: 767px) { |
| 402 |
.king-addons-comparison-matrix-cards__grid { |
| 403 |
grid-template-columns: 1fr; |
| 404 |
} |
| 405 |
|
| 406 |
.king-addons-comparison-matrix-cards--mobile-scroll .king-addons-comparison-matrix-cards__grid { |
| 407 |
grid-auto-flow: column; |
| 408 |
grid-auto-columns: minmax(var(--kng-cmc-card-min-width), 1fr); |
| 409 |
overflow-x: auto; |
| 410 |
scroll-snap-type: x mandatory; |
| 411 |
padding-bottom: 10px; |
| 412 |
} |
| 413 |
|
| 414 |
.king-addons-comparison-matrix-cards--mobile-scroll .king-addons-comparison-matrix-cards__card { |
| 415 |
scroll-snap-align: start; |
| 416 |
min-width: var(--kng-cmc-card-min-width); |
| 417 |
} |
| 418 |
|
| 419 |
.king-addons-comparison-matrix-cards.is-sticky-mobile-off .king-addons-comparison-matrix-cards__header { |
| 420 |
position: static; |
| 421 |
box-shadow: none; |
| 422 |
border-bottom: none; |
| 423 |
padding-bottom: 0; |
| 424 |
} |
| 425 |
|
| 426 |
.king-addons-comparison-matrix-cards.is-sticky-compact .king-addons-comparison-matrix-cards__description, |
| 427 |
.king-addons-comparison-matrix-cards.is-sticky-compact .king-addons-comparison-matrix-cards__subtitle { |
| 428 |
display: none; |
| 429 |
} |
| 430 |
} |
| 431 |
|
| 432 |
.king-addons-comparison-matrix-cards--hide-scrollbar .king-addons-comparison-matrix-cards__grid { |
| 433 |
scrollbar-width: none; |
| 434 |
} |
| 435 |
|
| 436 |
.king-addons-comparison-matrix-cards--hide-scrollbar .king-addons-comparison-matrix-cards__grid::-webkit-scrollbar { |
| 437 |
display: none; |
| 438 |
} |
| 439 |
|
| 440 |
@media (prefers-reduced-motion: reduce) { |
| 441 |
.king-addons-comparison-matrix-cards__card, |
| 442 |
.king-addons-comparison-matrix-cards__button, |
| 443 |
.king-addons-comparison-matrix-cards__tooltip-text, |
| 444 |
.king-addons-comparison-matrix-cards__feature, |
| 445 |
.king-addons-comparison-matrix-cards__toggle-indicator, |
| 446 |
.king-addons-comparison-matrix-cards__toggle-indicator::after, |
| 447 |
.king-addons-comparison-matrix-cards__search-input { |
| 448 |
transition: none; |
| 449 |
} |
| 450 |
} |
| 451 |
|