/* Üldine konteiner */
.akt-product-notification {
    background: #f7f7f7;
    border-left: 4px solid #333;
    padding: 12px 18px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* Defineerime fondi siin, et see päranduks kõigile lastele */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: block;
    color: #333; /* Ühtne tekstivärv */
}

/* SISU PAIGUTUS: Vasak-Parem */
.akt-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}

/* Rida A: Staatiline info (Vasakul) */
.akt-static-row {
    font-size: 0.95em;
    color: #555;
    font-weight: 500;
    text-align: left;
    margin: 0;
    flex: 1 1 auto;
}

/* Rida B: Dünaamiline info (Paremal) */
.akt-dynamic-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 1.1em;
    gap: 10px;
    text-align: right;
    margin-left: auto;
}

/* Elemendid */
.akt-message {
    font-weight: 700;
    color: #333;
}

/* Kellaaeg (Countdown) */
.akt-countdown {
    /* Eemaldame Courier New/monospace, et font oleks sama mis mujal */
    font-family: inherit; 
    font-weight: 700;
    /* Hoiab numbrid ühelaiusena, et tekst ei "hüppaks" tiksumisel */
    font-variant-numeric: tabular-nums; 
    
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 80px;
    display: inline-block;
    text-align: center;
    color: #333;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Kui taimer on tühi või peidetud */
.akt-countdown:empty {
    display: none;
}

.akt-referral-row {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
    padding-top: 5px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    width: 100%;
}

/* MOBIILIVAADE */
@media (max-width: 600px) {
    .akt-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .akt-static-row {
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    .akt-dynamic-row {
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Värvikoodid (Ainult taust ja äär) - Vanad tüübid tagasiühilduvuseks */

.akt-product-notification.type-price_change {
    border-color: #ffba00;
    background-color: #fffdf0;
}

.akt-product-notification.type-end {
    border-color: #d63638;
    background-color: #fff5f5;
}

.akt-product-notification.type-future {
    border-color: #0073aa;
    background-color: #f0f6fa;
}

.akt-product-notification.type-quantity {
    border-color: #ff8800;
    background-color: #fff8e5;
}

.akt-product-notification.type-open {
    border-color: #46b450;
    background-color: #f7fcfe;
}

.akt-product-notification.type-finished {
    border-color: #999;
    background-color: #eee;
    opacity: 0.8;
}

.akt-product-notification.type-closed {
    border-color: #333;
    background-color: #f0f0f0;
}

/* --- SSOT Uued dünaamilised värviklassid --- */

/* Roheline (Tavaline: > 5 päeva) */
.akt-product-notification.type-vm-green,
.akt-product-notification.vm-green {
    border-color: #46b450;
    background-color: #f7fcfe;
}

/* Kollane (Hoiatus: < 5 päeva) */
.akt-product-notification.type-vm-yellow,
.akt-product-notification.vm-yellow {
    border-color: #ffba00;
    background-color: #fffdf0;
}

/* Oranž (Kiire: < 24 tundi) */
.akt-product-notification.type-vm-orange,
.akt-product-notification.vm-orange {
    border-color: #ff8800;
    background-color: #fff8e5;
}

/* Punane (Kriitiline: < 2 tundi) */
.akt-product-notification.type-vm-red,
.akt-product-notification.vm-red {
    border-color: #d63638;
    background-color: #fff5f5;
}