| 1 |
/** |
| 2 |
* King Addons - Rating Notice Styles |
| 3 |
*/ |
| 4 |
|
| 5 |
.king-addons-rating-notice { |
| 6 |
padding: 20px 25px; |
| 7 |
border-left-color: #5c3bfe !important; |
| 8 |
background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%); |
| 9 |
box-shadow: 0 1px 4px rgba(92, 59, 254, 0.08); |
| 10 |
position: relative; |
| 11 |
} |
| 12 |
|
| 13 |
.king-addons-rating-notice-inner { |
| 14 |
display: flex; |
| 15 |
align-items: flex-start; |
| 16 |
gap: 24px; |
| 17 |
} |
| 18 |
|
| 19 |
.king-addons-rating-notice-logo { |
| 20 |
flex-shrink: 0; |
| 21 |
width: 70px; |
| 22 |
height: 70px; |
| 23 |
background: linear-gradient(135deg, #5c3bfe 0%, #7c5cff 100%); |
| 24 |
border-radius: 16px; |
| 25 |
display: flex; |
| 26 |
align-items: center; |
| 27 |
justify-content: center; |
| 28 |
box-shadow: 0 4px 15px rgba(92, 59, 254, 0.3); |
| 29 |
} |
| 30 |
|
| 31 |
.king-addons-rating-notice-logo img { |
| 32 |
width: 45px; |
| 33 |
height: 45px; |
| 34 |
object-fit: contain; |
| 35 |
filter: brightness(0) invert(1); |
| 36 |
} |
| 37 |
|
| 38 |
.king-addons-rating-notice-content { |
| 39 |
flex: 1; |
| 40 |
} |
| 41 |
|
| 42 |
.king-addons-rating-notice-content h3 { |
| 43 |
margin: 0 0 8px 0; |
| 44 |
font-size: 18px; |
| 45 |
font-weight: 600; |
| 46 |
color: #1d2327; |
| 47 |
} |
| 48 |
|
| 49 |
.king-addons-rating-notice-content > p { |
| 50 |
margin: 0 0 18px 0; |
| 51 |
color: #50575e; |
| 52 |
font-size: 14px; |
| 53 |
line-height: 1.6; |
| 54 |
} |
| 55 |
|
| 56 |
/* Stars */ |
| 57 |
.king-addons-rating-stars { |
| 58 |
display: flex; |
| 59 |
align-items: center; |
| 60 |
gap: 8px; |
| 61 |
margin-bottom: 18px; |
| 62 |
} |
| 63 |
|
| 64 |
.king-addons-star { |
| 65 |
cursor: pointer; |
| 66 |
color: #cbd5e1; |
| 67 |
transition: all 0.2s ease; |
| 68 |
display: flex; |
| 69 |
align-items: center; |
| 70 |
justify-content: center; |
| 71 |
} |
| 72 |
|
| 73 |
.king-addons-star:hover { |
| 74 |
transform: scale(1.2); |
| 75 |
} |
| 76 |
|
| 77 |
.king-addons-star.active, |
| 78 |
.king-addons-star.hover { |
| 79 |
color: #fbbf24; |
| 80 |
} |
| 81 |
|
| 82 |
.king-addons-star.active svg, |
| 83 |
.king-addons-star.hover svg { |
| 84 |
fill: #fbbf24; |
| 85 |
filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4)); |
| 86 |
} |
| 87 |
|
| 88 |
.king-addons-star svg { |
| 89 |
transition: all 0.2s ease; |
| 90 |
} |
| 91 |
|
| 92 |
.king-addons-rating-text { |
| 93 |
margin-left: 12px; |
| 94 |
font-size: 14px; |
| 95 |
color: #64748b; |
| 96 |
font-weight: 500; |
| 97 |
min-width: 80px; |
| 98 |
} |
| 99 |
|
| 100 |
/* Feedback form */ |
| 101 |
.king-addons-feedback-form { |
| 102 |
background: #ffffff; |
| 103 |
padding: 18px 20px; |
| 104 |
border-radius: 10px; |
| 105 |
margin-bottom: 18px; |
| 106 |
border: 1px solid #e2e8f0; |
| 107 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); |
| 108 |
max-width: 500px; |
| 109 |
} |
| 110 |
|
| 111 |
.king-addons-feedback-form p { |
| 112 |
margin: 0 0 12px 0; |
| 113 |
color: #475569; |
| 114 |
font-size: 14px; |
| 115 |
} |
| 116 |
|
| 117 |
.king-addons-feedback-text { |
| 118 |
width: 100%; |
| 119 |
padding: 12px 14px; |
| 120 |
border: 1px solid #e2e8f0; |
| 121 |
border-radius: 8px; |
| 122 |
font-size: 14px; |
| 123 |
resize: vertical; |
| 124 |
min-height: 80px; |
| 125 |
font-family: inherit; |
| 126 |
transition: border-color 0.2s, box-shadow 0.2s; |
| 127 |
} |
| 128 |
|
| 129 |
.king-addons-feedback-text:focus { |
| 130 |
border-color: #5c3bfe; |
| 131 |
box-shadow: 0 0 0 3px rgba(92, 59, 254, 0.1); |
| 132 |
outline: none; |
| 133 |
} |
| 134 |
|
| 135 |
.king-addons-feedback-text::placeholder { |
| 136 |
color: #94a3b8; |
| 137 |
} |
| 138 |
|
| 139 |
.king-addons-feedback-actions { |
| 140 |
margin-top: 14px; |
| 141 |
display: flex; |
| 142 |
gap: 10px; |
| 143 |
} |
| 144 |
|
| 145 |
.king-addons-submit-feedback { |
| 146 |
background: linear-gradient(135deg, #5c3bfe 0%, #7c5cff 100%) !important; |
| 147 |
border: none !important; |
| 148 |
color: #fff !important; |
| 149 |
padding: 8px 20px !important; |
| 150 |
font-weight: 500 !important; |
| 151 |
border-radius: 6px !important; |
| 152 |
transition: all 0.2s ease !important; |
| 153 |
box-shadow: 0 2px 8px rgba(92, 59, 254, 0.3) !important; |
| 154 |
} |
| 155 |
|
| 156 |
.king-addons-submit-feedback:hover { |
| 157 |
transform: translateY(-1px) !important; |
| 158 |
box-shadow: 0 4px 12px rgba(92, 59, 254, 0.4) !important; |
| 159 |
} |
| 160 |
|
| 161 |
.king-addons-skip-feedback { |
| 162 |
border-radius: 6px !important; |
| 163 |
} |
| 164 |
|
| 165 |
/* Actions */ |
| 166 |
.king-addons-rating-actions { |
| 167 |
display: flex; |
| 168 |
gap: 24px; |
| 169 |
} |
| 170 |
|
| 171 |
.king-addons-rating-actions a { |
| 172 |
display: inline-flex; |
| 173 |
align-items: center; |
| 174 |
gap: 6px; |
| 175 |
text-decoration: none; |
| 176 |
color: #64748b; |
| 177 |
font-size: 13px; |
| 178 |
font-weight: 500; |
| 179 |
transition: all 0.2s ease; |
| 180 |
padding: 6px 0; |
| 181 |
} |
| 182 |
|
| 183 |
.king-addons-rating-actions a:hover { |
| 184 |
color: #5c3bfe; |
| 185 |
} |
| 186 |
|
| 187 |
.king-addons-rating-actions .dashicons { |
| 188 |
font-size: 16px; |
| 189 |
width: 16px; |
| 190 |
height: 16px; |
| 191 |
} |
| 192 |
|
| 193 |
/* Hide actions when feedback form is shown */ |
| 194 |
.king-addons-rating-notice.show-feedback .king-addons-rating-actions { |
| 195 |
display: none; |
| 196 |
} |
| 197 |
|
| 198 |
/* Notice dismiss button */ |
| 199 |
.king-addons-rating-notice .notice-dismiss, |
| 200 |
.king-addons-rating-notice .king-addons-notice-dismiss-btn { |
| 201 |
position: absolute; |
| 202 |
top: 12px; |
| 203 |
right: 12px; |
| 204 |
padding: 0; |
| 205 |
background: transparent; |
| 206 |
border: none; |
| 207 |
cursor: pointer; |
| 208 |
color: #94a3b8; |
| 209 |
transition: color 0.2s; |
| 210 |
} |
| 211 |
|
| 212 |
.king-addons-rating-notice .notice-dismiss:hover, |
| 213 |
.king-addons-rating-notice .king-addons-notice-dismiss-btn:hover { |
| 214 |
color: #64748b; |
| 215 |
} |
| 216 |
|
| 217 |
.king-addons-rating-notice .notice-dismiss:before, |
| 218 |
.king-addons-rating-notice .king-addons-notice-dismiss-btn:before { |
| 219 |
background: none; |
| 220 |
color: inherit; |
| 221 |
content: "\f335"; |
| 222 |
display: block; |
| 223 |
font: normal 20px/20px dashicons; |
| 224 |
speak: never; |
| 225 |
height: 20px; |
| 226 |
text-align: center; |
| 227 |
width: 20px; |
| 228 |
} |
| 229 |
|
| 230 |
/* Animation for stars */ |
| 231 |
@keyframes king-addons-star-pop { |
| 232 |
0% { transform: scale(1); } |
| 233 |
50% { transform: scale(1.3); } |
| 234 |
100% { transform: scale(1); } |
| 235 |
} |
| 236 |
|
| 237 |
.king-addons-star.pop { |
| 238 |
animation: king-addons-star-pop 0.3s ease; |
| 239 |
} |
| 240 |
|
| 241 |
/* Responsive */ |
| 242 |
@media (max-width: 782px) { |
| 243 |
.king-addons-rating-notice-inner { |
| 244 |
flex-direction: column; |
| 245 |
gap: 16px; |
| 246 |
} |
| 247 |
|
| 248 |
.king-addons-rating-notice-logo { |
| 249 |
width: 60px; |
| 250 |
height: 60px; |
| 251 |
} |
| 252 |
|
| 253 |
.king-addons-rating-notice-logo img { |
| 254 |
width: 38px; |
| 255 |
height: 38px; |
| 256 |
} |
| 257 |
|
| 258 |
.king-addons-rating-stars { |
| 259 |
flex-wrap: wrap; |
| 260 |
} |
| 261 |
|
| 262 |
.king-addons-rating-actions { |
| 263 |
flex-direction: column; |
| 264 |
gap: 12px; |
| 265 |
} |
| 266 |
|
| 267 |
.king-addons-feedback-form { |
| 268 |
max-width: 100%; |
| 269 |
} |
| 270 |
} |
| 271 |
|