.msp-box {
    position: relative;
    direction: rtl;
    overflow: hidden;
    border-radius: 14px;
    padding: 16px;
    margin: 18px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.msp-post-box {
    background: linear-gradient(225deg, rgba(253, 216, 53, .12) 0%, #fff 50%, rgba(26, 35, 126, .08) 100%);
    border: 1px solid #e8e8e8;
}

.msp-tipax-box {
    background: linear-gradient(135deg, #eef5ff, #f8fbff);
    border: 1px solid #d6e6ff;
    margin-bottom: 0;
}

.msp-background-icon {
    position: absolute;
    left: -12px;
    bottom: -20px;
    font-size: 90px;
    opacity: .035;
    transform: rotate(-12deg);
    pointer-events: none;
}

.msp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.msp-title {
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.msp-tipax-title {
    color: #0b5ed7;
}

.msp-success {
    color: #27ae60;
}

.msp-urgent {
    font-size: 12px;
    animation: mspPulse 2s infinite;
    text-align: left;
}

.msp-post-urgent {
    color: #e67e22;
}

.msp-tipax-urgent {
    color: #0d6efd;
}

.msp-progress-wrap {
    position: relative;
    height: 10px;
    margin-top: 10px;
    background: #eee;
    border-radius: 20px;
}

.msp-tipax-progress-wrap {
    background: #e6f0ff;
}

.msp-progress {
    width: 0;
    height: 100%;
    border-radius: 20px;
    transition: width .8s ease;
}

.msp-post-progress {
    background: linear-gradient(90deg, #2ecc71, #f1c40f);
}

.msp-post-progress.is-critical {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
}

.msp-post-progress.is-late {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    animation: mspDanger 1.5s infinite;
}

.msp-tipax-progress {
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

.msp-moving-icon {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 18px;
    transition: right .8s ease;
    animation: mspBounce 1.5s infinite;
}

.msp-countdown {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    text-align: center;
}

.msp-next-shipment {
    display: none;
    margin-top: 4px;
    color: #e74c3c;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.msp-holiday-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    direction: rtl;
    margin: 10px 0 18px;
    padding: 12px 15px;
    background: rgba(26, 43, 76, .03);
    border-right: 3px solid #f39c12;
    border-radius: 8px 3px 3px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
}

.msp-holiday-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #f39c12;
}

.msp-holiday-notice p {
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 11.5px;
    line-height: 1.8;
    text-align: right;
}

.msp-holiday-notice strong {
    color: #1a2b4c;
    font-weight: 700;
}

.msp-box.is-error .msp-urgent,
.msp-box.is-error .msp-countdown {
    color: #b32d2e;
}

@keyframes mspPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

@keyframes mspBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes mspDanger {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, .4); }
    70% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

@media (max-width: 480px) {
    .msp-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .msp-urgent {
        text-align: right;
    }
}
