| 1 |
.king-addons-satc { |
| 2 |
--ka-satc-bg: #ffffff; |
| 3 |
--ka-satc-text: #1f2933; |
| 4 |
--ka-satc-btn-bg: #1f2933; |
| 5 |
--ka-satc-btn-text: #ffffff; |
| 6 |
position: fixed; |
| 7 |
left: 0; |
| 8 |
right: 0; |
| 9 |
z-index: 9998; |
| 10 |
background: var(--ka-satc-bg); |
| 11 |
color: var(--ka-satc-text); |
| 12 |
box-shadow: 0 -2px 18px rgba(0, 0, 0, .12); |
| 13 |
transform: translateY(100%); |
| 14 |
transition: transform 260ms ease; |
| 15 |
} |
| 16 |
|
| 17 |
.king-addons-satc--bottom { bottom: 0; } |
| 18 |
|
| 19 |
.king-addons-satc--top { |
| 20 |
top: 0; |
| 21 |
bottom: auto; |
| 22 |
transform: translateY(-100%); |
| 23 |
box-shadow: 0 2px 18px rgba(0, 0, 0, .12); |
| 24 |
} |
| 25 |
|
| 26 |
.king-addons-satc.is-visible { transform: translateY(0); } |
| 27 |
|
| 28 |
.king-addons-satc__inner { |
| 29 |
display: flex; |
| 30 |
align-items: center; |
| 31 |
gap: 16px; |
| 32 |
max-width: 1200px; |
| 33 |
margin: 0 auto; |
| 34 |
padding: 10px 20px; |
| 35 |
} |
| 36 |
|
| 37 |
.king-addons-satc__thumb img { |
| 38 |
display: block; |
| 39 |
width: 48px; |
| 40 |
height: 48px; |
| 41 |
object-fit: cover; |
| 42 |
border-radius: 4px; |
| 43 |
} |
| 44 |
|
| 45 |
.king-addons-satc__meta { |
| 46 |
display: flex; |
| 47 |
flex-direction: column; |
| 48 |
gap: 2px; |
| 49 |
min-width: 0; |
| 50 |
flex: 1 1 auto; |
| 51 |
} |
| 52 |
|
| 53 |
.king-addons-satc__title { |
| 54 |
font-weight: 600; |
| 55 |
line-height: 1.25; |
| 56 |
overflow: hidden; |
| 57 |
text-overflow: ellipsis; |
| 58 |
white-space: nowrap; |
| 59 |
} |
| 60 |
|
| 61 |
.king-addons-satc__price { font-size: .95em; } |
| 62 |
|
| 63 |
.king-addons-satc__button { |
| 64 |
flex: 0 0 auto; |
| 65 |
background: var(--ka-satc-btn-bg); |
| 66 |
color: var(--ka-satc-btn-text); |
| 67 |
padding: 12px 26px; |
| 68 |
border-radius: 4px; |
| 69 |
text-decoration: none; |
| 70 |
line-height: 1.2; |
| 71 |
} |
| 72 |
|
| 73 |
.king-addons-satc__button:hover, |
| 74 |
.king-addons-satc__button:focus { color: var(--ka-satc-btn-text); opacity: .9; } |
| 75 |
|
| 76 |
@media (max-width: 600px) { |
| 77 |
.king-addons-satc__inner { gap: 10px; padding: 8px 12px; } |
| 78 |
.king-addons-satc__thumb { display: none; } |
| 79 |
.king-addons-satc__button { padding: 10px 16px; } |
| 80 |
} |
| 81 |
|
| 82 |
@media (prefers-reduced-motion: reduce) { |
| 83 |
.king-addons-satc { transition: none; } |
| 84 |
} |
| 85 |
|