.promotion-end-timeout {
    --ptw-bg-color: #ffffff;
    --ptw-text-color: #000000;
    --ptw-accent-color: #ffcc00;

    position: fixed;
    max-width: 182px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 9999!important;
    font-family: "Satoshi", sans-serif;
    font-weight: 400;
}

.promotion-end-timeout__inner {
    width: 100%;
    height: auto;
    display: flex;
}


.promotion-end-timeout__content {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow: visible;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.promotion-end-timeout .promotion-end-timeout__body {
    flex: 0 1 auto;
    max-height: 100%;
    padding:  20px 36px 10px;
    background-color: var(--ptw-bg-color, #ffffff);
    color: var(--ptw-text-color, #000000);
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    box-sizing: content-box;
}

.promotion-end-timeout__content:has(.promotion-end-timeout__footer) .promotion-end-timeout__body {
    margin-bottom: 18px;
    max-height: calc(100% - 58px);
}

.promotion-end-timeout .promotion-end-timeout__body.has-footer {
    margin-bottom: 18px;
    max-height: calc(100% - 58px);
}

.promotion-end-timeout .promotion-end-timeout__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 42px;
    height: auto;
    width: 100%;
    background-color: var(--ptw-accent-color, #ffcc00);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding-top: 12px;
    box-sizing: border-box;
}

.promotion-end-timeout .promotion-end-timeout__footer .promotion-end-timeout__footer-subtitle {
    color: var(--ptw-bg-color, #ffffff);
    font-size: 12px;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    width: 100%;
    text-align: center;
}

.promotion-end-timeout .promotion-end-timeout__body a {
    color: var(--ptw-accent-color, #ffcc00);
    text-decoration: none;
}

.promotion-end-timeout .promotion-end-timeout__body a:hover {
    text-decoration: underline;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__image img {
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    max-width: 90px;
    padding-bottom: 6px;
    display: inline;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__counter {
    font-size: 32px;
    font-weight: 600;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__days {
    color: var(--ptw-text-color, #000000);
    font-size: 48px;
    line-height: 48px;
    font-weight: 600;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__time {
    font-size: .6em;
    line-height: .7em;
    font-weight: 500;
    color: var(--ptw-bg-color, #ffffff);
    padding: 6px;
    background-color: var(--ptw-accent-color, #ffcc00);
    border-radius: 3px;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__title {
    max-width: 90px;
    font-size: 14px;
    font-weight: 400;
    text-wrap: wrap;
    margin-top: -4px;
}

.promotion-end-timeout.position-bottom_right {
    bottom: 16px;
    right: 16px;
    left: auto;
    top: auto;
}

.promotion-end-timeout.position-bottom_left {
    bottom: 16px;
    left: 16px;
    right: auto;
    top: auto;
}

.promotion-end-timeout.position-top_right {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: auto;
}

.promotion-end-timeout.position-top_left {
    top: 16px;
    left: 16px;
    bottom: auto;
    right: auto;
}

.promotion-end-timeout.position-right_wall {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.promotion-end-timeout.position-left_wall {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.promotion-end-timeout.scroll-hide_on_scroll_down {
    transition: opacity 0.3s ease;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ptw-accent-color, #ffcc00);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.promotion-end-timeout .promotion-end-timeout__body .promotion-end-timeout__close:hover {
    color: var(--ptw-text-color, #000000);
    transform: scale(1.2);
}
