103 lines
2.1 KiB
CSS
103 lines
2.1 KiB
CSS
/* Sticky Price Display with backdrop blur */
|
|
#stickyPriceContainer {
|
|
/* Enhanced backdrop blur effect */
|
|
-webkit-backdrop-filter: blur(12px) saturate(180%);
|
|
backdrop-filter: blur(12px) saturate(180%);
|
|
|
|
/* Smooth transitions */
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
/* Animation entrance */
|
|
animation: slideUpFade 0.5s ease-out;
|
|
}
|
|
|
|
/* Ensure exact width alignment with calculator */
|
|
#stickyPriceContainer .container {
|
|
/* Match exactly the main calculator container */
|
|
max-width: 56rem; /* max-w-4xl = 896px */
|
|
}
|
|
|
|
#priceDisplay {
|
|
/* Remove extra padding to match calculator content width */
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
#stickyPriceContainer.show {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
#stickyPriceContainer.hide {
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Price display inner styling */
|
|
#priceDisplay {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
#priceDisplay:hover {
|
|
transform: scale(1.02);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Price update animation */
|
|
#currentPrice {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.price-update {
|
|
animation: priceUpdate 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes priceUpdate {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(1.05); color: #3b82f6; }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
/* Slide up animation */
|
|
@keyframes slideUpFade {
|
|
0% {
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Enhanced mobile responsiveness */
|
|
@media (max-width: 768px) {
|
|
#stickyPriceContainer {
|
|
padding: 0;
|
|
}
|
|
|
|
#stickyPriceContainer .mx-auto {
|
|
margin-left: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
#priceDisplay {
|
|
padding: 12px 16px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
#currentPrice {
|
|
font-size: 1.125rem;
|
|
}
|
|
}
|
|
|
|
/* Blur effect support fallback */
|
|
@supports not (backdrop-filter: blur(12px)) {
|
|
#stickyPriceContainer {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.dark #stickyPriceContainer {
|
|
background: rgba(17, 24, 39, 0.9);
|
|
}
|
|
} |