| 1 |
/** |
| 2 |
* Promotional Countdown Banner for WPVR Listing Page |
| 3 |
*/ |
| 4 |
|
| 5 |
.wpvr-promotional-banner { |
| 6 |
box-sizing: border-box; |
| 7 |
position: relative; |
| 8 |
clear: both !important; |
| 9 |
display: flex; |
| 10 |
align-items: center; |
| 11 |
justify-content: center; |
| 12 |
min-height: 72px; |
| 13 |
width: 100% !important; |
| 14 |
max-width: 100% !important; |
| 15 |
margin: 10px 0 16px 0; |
| 16 |
padding: 12px 52px 12px 24px; |
| 17 |
background: radial-gradient(41.22% 84.27% at 50.55% 15.73%, #3f04fe 0%, #19006a 100%) !important; |
| 18 |
border-radius: 8px; |
| 19 |
box-shadow: 0 4px 20px rgba(25, 0, 106, 0.25); |
| 20 |
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
| 21 |
color: #ffffff; |
| 22 |
overflow: hidden; |
| 23 |
transition: opacity 0.3s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease; |
| 24 |
max-height: 500px; |
| 25 |
} |
| 26 |
|
| 27 |
/* When directly under #wpbody-content (before being moved into .wrap or if .wrap is not used) */ |
| 28 |
#wpbody-content > #wpvr-promotional-banner { |
| 29 |
clear: both !important; |
| 30 |
width: calc(100% - 40px) !important; |
| 31 |
max-width: calc(100% - 40px) !important; |
| 32 |
margin: 12px 20px 16px 20px !important; |
| 33 |
} |
| 34 |
|
| 35 |
/* When inside .wrap or .wpvr-listing-notices */ |
| 36 |
.wrap > #wpvr-promotional-banner, |
| 37 |
.wpvr-listing-notices > #wpvr-promotional-banner { |
| 38 |
clear: both !important; |
| 39 |
width: 100% !important; |
| 40 |
max-width: 100% !important; |
| 41 |
margin: 10px 0 16px 0 !important; |
| 42 |
} |
| 43 |
|
| 44 |
.wpvr-promotional-banner *, |
| 45 |
.wpvr-promotional-banner *::before, |
| 46 |
.wpvr-promotional-banner *::after { |
| 47 |
box-sizing: border-box; |
| 48 |
} |
| 49 |
|
| 50 |
.wpvr-promotional-banner.is-dismissing { |
| 51 |
opacity: 0; |
| 52 |
max-height: 0; |
| 53 |
padding-top: 0; |
| 54 |
padding-bottom: 0; |
| 55 |
margin-top: 0 !important; |
| 56 |
margin-bottom: 0 !important; |
| 57 |
pointer-events: none; |
| 58 |
} |
| 59 |
|
| 60 |
.wpvr-promo-banner__content { |
| 61 |
display: flex; |
| 62 |
align-items: center; |
| 63 |
justify-content: center; |
| 64 |
gap: 24px; |
| 65 |
flex-wrap: wrap; |
| 66 |
} |
| 67 |
|
| 68 |
/* Badge: NEW UI */ |
| 69 |
.wpvr-promo-banner__badge { |
| 70 |
display: inline-flex; |
| 71 |
align-items: center; |
| 72 |
justify-content: center; |
| 73 |
width: 54px; |
| 74 |
height: 54px; |
| 75 |
flex-shrink: 0; |
| 76 |
user-select: none; |
| 77 |
} |
| 78 |
|
| 79 |
.wpvr-promo-banner__badge svg { |
| 80 |
display: block; |
| 81 |
width: 54px; |
| 82 |
height: 54px; |
| 83 |
flex-shrink: 0; |
| 84 |
} |
| 85 |
|
| 86 |
/* Headline copy */ |
| 87 |
.wpvr-promo-banner__text { |
| 88 |
display: flex; |
| 89 |
flex-direction: column; |
| 90 |
justify-content: center; |
| 91 |
gap: 2px; |
| 92 |
white-space: nowrap; |
| 93 |
} |
| 94 |
|
| 95 |
.wpvr-promo-banner__title { |
| 96 |
font-size: 16px; |
| 97 |
font-weight: 400; |
| 98 |
color: #ffffff; |
| 99 |
line-height: 1.2; |
| 100 |
letter-spacing: -0.2px; |
| 101 |
} |
| 102 |
|
| 103 |
.wpvr-promo-banner__subtitle { |
| 104 |
font-size: 20px; |
| 105 |
font-weight: 800; |
| 106 |
color: #01b5ff; |
| 107 |
line-height: 1.2; |
| 108 |
letter-spacing: -0.3px; |
| 109 |
} |
| 110 |
|
| 111 |
/* Countdown Timer */ |
| 112 |
.wpvr-promo-banner__timer { |
| 113 |
display: flex; |
| 114 |
align-items: center; |
| 115 |
gap: 8px; |
| 116 |
} |
| 117 |
|
| 118 |
.wpvr-promo-timer__box { |
| 119 |
display: flex; |
| 120 |
flex-direction: column; |
| 121 |
align-items: center; |
| 122 |
justify-content: center; |
| 123 |
min-width: 50px; |
| 124 |
height: 52px; |
| 125 |
padding: 4px 8px; |
| 126 |
background: rgba(255, 255, 255, 0.08); |
| 127 |
border: 1px solid rgba(255, 255, 255, 0.18); |
| 128 |
border-radius: 6px; |
| 129 |
} |
| 130 |
|
| 131 |
.wpvr-promo-timer__num { |
| 132 |
font-size: 20px; |
| 133 |
font-weight: 700; |
| 134 |
color: #ffffff; |
| 135 |
line-height: 1.15; |
| 136 |
font-variant-numeric: tabular-nums; |
| 137 |
} |
| 138 |
|
| 139 |
.wpvr-promo-timer__unit { |
| 140 |
font-size: 9px; |
| 141 |
font-weight: 700; |
| 142 |
color: rgba(255, 255, 255, 0.75); |
| 143 |
line-height: 1.1; |
| 144 |
letter-spacing: 0.8px; |
| 145 |
text-transform: uppercase; |
| 146 |
} |
| 147 |
|
| 148 |
/* CTA Button */ |
| 149 |
.wpvr-promo-banner__cta { |
| 150 |
display: inline-flex; |
| 151 |
align-items: center; |
| 152 |
justify-content: center; |
| 153 |
gap: 6px; |
| 154 |
padding: 11px 22px; |
| 155 |
background: #01b5ff; |
| 156 |
color: #ffffff !important; |
| 157 |
font-size: 14px; |
| 158 |
font-weight: 400; |
| 159 |
line-height: 1.2; |
| 160 |
text-decoration: none !important; |
| 161 |
border-radius: 6px; |
| 162 |
border: none; |
| 163 |
cursor: pointer; |
| 164 |
white-space: nowrap; |
| 165 |
box-shadow: 0 2px 10px rgba(1, 181, 255, 0.35); |
| 166 |
transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; |
| 167 |
} |
| 168 |
|
| 169 |
.wpvr-promo-banner__cta:hover, |
| 170 |
.wpvr-promo-banner__cta:focus { |
| 171 |
background: #009edc; |
| 172 |
transform: translateY(-1px); |
| 173 |
box-shadow: 0 4px 14px rgba(1, 181, 255, 0.45); |
| 174 |
color: #ffffff !important; |
| 175 |
} |
| 176 |
|
| 177 |
.wpvr-promo-banner__cta:active { |
| 178 |
transform: translateY(0); |
| 179 |
box-shadow: 0 2px 6px rgba(1, 181, 255, 0.35); |
| 180 |
} |
| 181 |
|
| 182 |
.wpvr-promo-banner__cta-arrow { |
| 183 |
display: inline-block; |
| 184 |
flex-shrink: 0; |
| 185 |
transition: transform 0.2s ease; |
| 186 |
} |
| 187 |
|
| 188 |
.wpvr-promo-banner__cta:hover .wpvr-promo-banner__cta-arrow, |
| 189 |
.wpvr-promo-banner__cta:focus .wpvr-promo-banner__cta-arrow { |
| 190 |
transform: translate(2px, -2px); |
| 191 |
} |
| 192 |
|
| 193 |
/* Dismiss Close Button */ |
| 194 |
.wpvr-promo-banner__dismiss { |
| 195 |
position: absolute; |
| 196 |
right: 18px; |
| 197 |
top: 50%; |
| 198 |
transform: translateY(-50%); |
| 199 |
width: 30px; |
| 200 |
height: 30px; |
| 201 |
display: flex; |
| 202 |
align-items: center; |
| 203 |
justify-content: center; |
| 204 |
background: transparent; |
| 205 |
border: none; |
| 206 |
border-radius: 50%; |
| 207 |
padding: 0; |
| 208 |
cursor: pointer; |
| 209 |
color: #ffffff; |
| 210 |
opacity: 0.8; |
| 211 |
transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease; |
| 212 |
} |
| 213 |
|
| 214 |
.wpvr-promo-banner__dismiss:hover, |
| 215 |
.wpvr-promo-banner__dismiss:focus { |
| 216 |
opacity: 1; |
| 217 |
background: rgba(255, 255, 255, 0.15); |
| 218 |
transform: translateY(-50%) scale(1.08); |
| 219 |
outline: none; |
| 220 |
} |
| 221 |
|
| 222 |
.wpvr-promo-banner__dismiss:focus-visible { |
| 223 |
box-shadow: 0 0 0 2px #01b5ff; |
| 224 |
} |
| 225 |
|
| 226 |
/* Responsive adjustments */ |
| 227 |
@media screen and (max-width: 1120px) { |
| 228 |
.wpvr-promo-banner__content { |
| 229 |
gap: 16px; |
| 230 |
} |
| 231 |
|
| 232 |
.wpvr-promo-banner__title { |
| 233 |
font-size: 15px; |
| 234 |
} |
| 235 |
|
| 236 |
.wpvr-promo-banner__subtitle { |
| 237 |
font-size: 18px; |
| 238 |
} |
| 239 |
|
| 240 |
.wpvr-promo-timer__box { |
| 241 |
min-width: 44px; |
| 242 |
height: 48px; |
| 243 |
padding: 3px 6px; |
| 244 |
} |
| 245 |
|
| 246 |
.wpvr-promo-timer__num { |
| 247 |
font-size: 17px; |
| 248 |
} |
| 249 |
} |
| 250 |
|
| 251 |
@media screen and (max-width: 900px) { |
| 252 |
.wpvr-promotional-banner { |
| 253 |
padding: 16px 48px 16px 16px; |
| 254 |
min-height: auto; |
| 255 |
} |
| 256 |
|
| 257 |
.wpvr-promo-banner__content { |
| 258 |
justify-content: flex-start; |
| 259 |
gap: 16px; |
| 260 |
} |
| 261 |
} |
| 262 |
|
| 263 |
@media screen and (max-width: 782px) { |
| 264 |
#wpbody-content > #wpvr-promotional-banner { |
| 265 |
width: calc(100% - 24px) !important; |
| 266 |
max-width: calc(100% - 24px) !important; |
| 267 |
margin: 12px 12px 14px 12px !important; |
| 268 |
} |
| 269 |
|
| 270 |
.wpvr-promotional-banner { |
| 271 |
padding: 16px 40px 16px 14px; |
| 272 |
border-radius: 6px; |
| 273 |
} |
| 274 |
|
| 275 |
.wpvr-promo-banner__content { |
| 276 |
flex-direction: column; |
| 277 |
align-items: flex-start; |
| 278 |
gap: 12px; |
| 279 |
} |
| 280 |
|
| 281 |
.wpvr-promo-banner__dismiss { |
| 282 |
top: 14px; |
| 283 |
transform: none; |
| 284 |
} |
| 285 |
|
| 286 |
.wpvr-promo-banner__dismiss:hover, |
| 287 |
.wpvr-promo-banner__dismiss:focus { |
| 288 |
transform: scale(1.08); |
| 289 |
} |
| 290 |
} |
| 291 |
|