/* =========================
   Out-of-Stock Notice Styles
   ========================= */

/* Hide WooCommerce default "Out of Stock" text */
.woocommerce div.product p.stock.out-of-stock {
    display: none !important;
}

/* Remove WooCommerce default icon for our notice */
.woocommerce-info.ozwide-out-of-stock-notice:before {
    display: none !important;
    content: none !important;
}

/* Container styled tighter and aligned left */
.ozwide-out-of-stock-notice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #444;
    color: #fff;
    padding: 12px 16px;
    border: 2px solid #b00;
    border-radius: 4px;
    width: 70%;
    margin-top: 15px;
    margin-left: 0;
    position: relative;
}

/* Close button (X) */
.ozwide-out-of-stock-notice .ozwide-close-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    color: #ff4d4d;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 2;
}

.ozwide-out-of-stock-notice .ozwide-close-btn:hover {
    color: #ff0000;
}

/* Headline text */
.ozwide-out-of-stock-notice p strong {
    font-size: 16px;
    display: block;
    margin-bottom: 0;
    line-height: 1.1;
}

/* Sub-text */
.ozwide-out-of-stock-notice p {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    margin-right: 6px;
    line-height: 1.1;
}

/* Inquiry button styled */
.ozwide-inquiry-button {
    background: #4a90e2;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

/* Button hover effect */
.ozwide-inquiry-button:hover {
    background: #3649d6;
    color: #fff;
}

/* Pulse animation (temporary) */
#tab-title-product_inquiry.highlight {
    border: 4px solid #28a745 !important;
    border-radius: 4px;
    animation: highlightPulseTwice 2s ease-in-out;
}

/* Persistent highlight (stays green after pulse) */
#tab-title-product_inquiry.highlight-persistent {
    border: 4px solid #28a745 !important;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
}

/* Two pulses with 0.5s gap */
@keyframes highlightPulseTwice {
    0%, 100% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.8); }
    25% { box-shadow: 0 0 16px rgba(40, 167, 69, 1); }
    50% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.8); }
    75% { box-shadow: 0 0 16px rgba(40, 167, 69, 1); }
}

/* Responsive layout adjustments */
@media (max-width: 600px) {
    .ozwide-out-of-stock-notice {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .ozwide-out-of-stock-notice p {
        margin-bottom: 4px;
        margin-right: 0;
    }
    .ozwide-inquiry-button {
        width: 100%;
        text-align: center;
    }
}

/* Hide price on SIMPLE products when out of stock */
.woocommerce div.product.outofstock .summary p.price,
.woocommerce div.product.outofstock .summary span.price,
.woocommerce div.product.outofstock .summary .price {
    display: none !important;
}
