.wc-discount-timer {
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin: 10px 0;
}

/* Initial Price Display */
.initial-price-display {
    font-size: 1.4em !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 10px !important;
}

/* Sale Price Display */
.sale-price-display {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

/* Hide initially */
.hidden-initially {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Hide WooCommerce default sale flash */
.onsale {
    display: none !important;
}

.discount-price-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Price Display Animations */
.price-wrapper {
    position: relative;
    overflow: visible;
    min-height: 2em;
}

.price-wrapper .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
    position: relative;
}

/* WooCommerce Price Styles */
.price del {
    color: #a6a6a6 !important;
    text-decoration: none !important;
    position: relative !important;
    opacity: 1 !important;
    font-weight: normal !important;
    margin-right: 5px !important;
}

.price del::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: #f44336;
    transform: translateY(-50%);
    animation: strikethrough 1s ease-out forwards;
}

.price ins {
    text-decoration: none !important;
    color: #77a464 !important;
    font-weight: 700 !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 5px !important;
}

.woocommerce-Price-amount {
    white-space: nowrap !important;
}

.woocommerce-Price-currencySymbol {
    margin-right: 2px !important;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes strikethrough {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Timer Display */
.timer-header {
    margin-bottom: 15px;
    text-align: center;
}

.timer-header h4 {
    color: #e91e63;
    font-size: 1.4em;
    margin: 0 0 5px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

.timer-header p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

.single-product .timer-display {
    margin-bottom: 50px;
}

.timer-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 4px;
    width: fit-content;
}

.countdown-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.countdown-text::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('https://keygalaxydigi.com/wp-content/uploads/2025/07/stopwatch.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}
.page-id-4925 .timer-display {
    margin-bottom: 0px !important;
}
.price-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.current-price {
    color: #77a464;
    font-weight: 700;
    font-size: 1.6em;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2em;
}

/* Lock Price Button */
.lock-price-button {
    margin-top: 15px !important;
    background-color: #77a464 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out 1.4s forwards;
}

.lock-price-button:hover {
    background-color: #669456 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.lock-price-button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Cart Page Styles */
.woocommerce-cart-form__cart-item .wc-discount-timer {
    margin: 10px 0;
    font-size: 0.9em;
    color: white;
}

/* Checkout Page Styles */
.woocommerce-checkout .wc-discount-timer {
    display: none;
}

/* Messages */
.woocommerce-message,
.woocommerce-error {
    margin: 0 0 20px !important;
    padding: 15px 20px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.woocommerce-message {
    background-color: #f7f6f7 !important;
    border-left: 4px solid #77a464 !important;
}

.woocommerce-error {
    background-color: #f7f6f7 !important;
    border-left: 4px solid #dc3545 !important;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .wc-discount-timer {
        padding: 12px;
    }

    .wc-discount-timer .timer-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .price-wrapper .price {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-wrapper .original-price,
    .wc-discount-timer .original-price {
        font-size: 1em;
    }

    .price-wrapper .discount-price,
    .wc-discount-timer .current-price {
        font-size: 1.2em;
    }

    .lock-price-button {
        width: 100%;
        padding: 10px 16px !important;
    }
}

/* Custom Price Display */
.wc-custom-price-wrapper {
    margin: 15px 0 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

/* Initial Price Display */
.wc-initial-price {
    display: flex;
    align-items: center;
}

/* Sale Price Display */
.wc-sale-price {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wc-old-price {
    position: relative;
    color: #999;
    text-decoration: none;
}

/* Animated strikethrough line */
.wc-old-price.strike-animation::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: #f44336;
    transform: translateY(-50%);
    animation: strikethrough 0.5s ease-out forwards;
}

.wc-new-price {
    color: #77a464;
    font-weight: 700;
}

.wc-save-percentage {
    color: #f44336;
    font-size: 0.9em;
    font-weight: 600;
}

/* Hide WooCommerce default price */
.woocommerce-product-gallery + .summary .price {
    display: none !important;
}

/* Animations */
@keyframes strikethrough-animation {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes highlight-animation {
    0% { background-color: transparent; }
    50% { background-color: rgba(119, 164, 100, 0.2); }
    100% { background-color: transparent; }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-out {
    0% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fade-in {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s ease-out;
}

/* Add to Cart Button States */
.single_add_to_cart_button {
    position: relative;
    transition: all 0.3s ease !important;
}

.single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: wait !important;
}

.single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spinner 1s linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Timer Display Animation */
.wc-discount-timer.hidden-initially {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

/* Cart page specific styles */
.cart-timer {
    margin: 5px 0;
}

.cart-timer .countdown-wrapper {
    margin-top: 5px;
}

/* Responsive styles for cart */
@media screen and (max-width: 768px) {
    .cart-timer {
        margin: 5px 0;
    }
    
    .cart-timer .countdown-wrapper {
        padding: 6px 10px;
    }
    
    .cart-timer .countdown-text {
        font-size: 13px;
    }
} 