.modiresabz-ribbon-top {
    position: sticky;
    top: 0;
    z-index: 99999;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 60px;
    direction: rtl;
    background-color: #d60000;
    color: #ffffff;
}

html.modiresabz-ribbon-top-dismissed .modiresabz-ribbon-top {
    display: none !important;
}

.modiresabz-ribbon-top[hidden] {
    display: none !important;
}

.modiresabz-ribbon-top__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.modiresabz-ribbon-top__message {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.modiresabz-ribbon-top__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
    padding: 8px 24px;
    border: 0;
    border-radius: 8px;
    background-color: #ffd600;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.modiresabz-ribbon-top__button:hover,
.modiresabz-ribbon-top__button:focus-visible {
    background-color: #ffea00;
    color: #000000;
    text-decoration: none;
    transform: translateY(-1px);
}

.modiresabz-ribbon-top__button:focus-visible,
.modiresabz-ribbon-top__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.modiresabz-ribbon-top__close {
    position: absolute;
    top: 50%;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.modiresabz-ribbon-top__close:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 767px) {
    .modiresabz-ribbon-top {
        padding: 10px;
    }
    .modiresabz-ribbon-top__inner {
        flex-direction: column;
        gap: 14px;
    }

    .modiresabz-ribbon-top__message {
        font-size: 20px;
        line-height: 1.55;
    }

    .modiresabz-ribbon-top__button {
        min-height: 46px;
        padding: 8px 22px;
        font-size: 20px;
    }

    .modiresabz-ribbon-top__close {
        bottom: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
        font-size: 30px;
        transform: none;
    }
}