aside.ep-voucher {
    --ep-voucher-red: var(--ep-voucher-color, #e0222d);
    --ep-voucher-deep: #8e1422;
    --ep-voucher-gold: #ffce67;
    --ep-voucher-gap: max(16px, env(safe-area-inset-bottom));
    position: fixed;
    z-index: 99999;
    inset-inline-end: 16px;
    bottom: var(--ep-voucher-gap);
    box-sizing: border-box;
    width: min(340px, calc(100% - 32px));
    max-height: calc(100dvh - 2 * var(--ep-voucher-gap));
    overflow: auto;
    padding: 0 12px 12px;
    border: 0;
    border-radius: 18px;
    background: var(--ep-voucher-red);
    background: linear-gradient(140deg, var(--ep-voucher-red), color-mix(in srgb, var(--ep-voucher-red) 60%, #240911));
    box-shadow: 0 14px 36px #24091155;
    color: #fff5e7;
    font-family: var(--ep-font-family, inherit);
    text-align: center;
    animation: ep-voucher-shake 4s ease-in-out infinite;
}

aside.ep-voucher[hidden] {
    display: none;
}

aside.ep-voucher:hover,
aside.ep-voucher:focus-within {
    animation-play-state: paused;
}

.ep-voucher-label {
    padding: 14px 34px;
    color: #fff5e7;
    background: #24091145;
    font-size: .94rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ep-voucher-content {
    padding: 14px;
    border-radius: 5px 5px 12px 12px;
    background: #fff5e7;
    color: #32181c;
    overflow-wrap: anywhere;
}

.ep-voucher .ep-voucher-content strong {
    display: block;
    padding: 0;
    font-size: 1.12rem;
    line-height: 1.2;
    color: #32181c;
}

.ep-voucher .ep-voucher-content p {
    margin: 7px 0 0;
    font-size: .875rem;
    line-height: 1.45;
    color: #32181c;
}

.ep-voucher-value {
    color: var(--ep-voucher-deep);
    color: color-mix(in srgb, var(--ep-voucher-red) 55%, #250c12);
    font-size: clamp(2.5rem, 12vw, 4.3rem);
    font-weight: 950;
    line-height: 1;
}

.ep-voucher-caption {
    display: block;
    margin: 4px 0 10px;
    font-size: .78rem;
    font-weight: 800;
}

.ep-voucher-bow {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
    margin: 18px auto 0;
    border-radius: 9px 9px 4px 4px;
    background: linear-gradient(#ffe099, #efa12f);
    box-shadow: 0 4px 8px #39130960;
}

.ep-voucher-bow::before,
.ep-voucher-bow::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 30px;
    height: 12px;
    border: 7px solid var(--ep-voucher-gold);
    border-bottom-color: #ea9226;
    border-radius: 55% 50% 25% 50%;
}

.ep-voucher-bow::before {
    right: 17px;
    transform: rotate(25deg);
}

.ep-voucher-bow::after {
    left: 17px;
    transform: scaleX(-1) rotate(25deg);
}

.ep-voucher-referral .ep-voucher-label {
    color: #ffe3a4;
    box-shadow: 0 4px 10px #46101555;
}

.ep-voucher-services-list {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.ep-voucher-services-list li {
    padding: 4px 8px;
    border: 1px dashed #ae7571;
    border-radius: 5px;
    font-size: .86rem;
}

.ep-voucher .ep-referral-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.ep-voucher .ep-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #f7cd71;
    border-radius: 999px;
    background: linear-gradient(#ffe18b, #ffbd4a);
    color: #451d12;
    font-weight: 800;
    text-decoration: none;
}

.ep-voucher .ep-button:hover {
    background: #ffe8ac;
    color: #451d12;
}

.ep-voucher .ep-pwa-action {
    margin-top: 10px;
}

.ep-voucher .ep-referral-dismiss,
.ep-voucher .ep-pwa-dismiss {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #32181c;
    color: #fff5e7;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ep-voucher button:focus-visible,
.ep-voucher a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #32181c;
}

body:has(.ep-referral-reminder.ep-voucher:not([hidden])) aside.ep-voucher-install {
    top: max(16px, env(safe-area-inset-top));
    bottom: auto;
    max-height: calc(50dvh - 20px);
}

body:has(.ep-voucher-install) aside.ep-referral-reminder.ep-voucher {
    max-height: calc(50dvh - 20px);
}

@keyframes ep-voucher-shake {
    0%, 9%, 100% { transform: translateX(0); }
    2%, 6% { transform: translateX(-3px); }
    4%, 8% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
    aside.ep-voucher {
        animation: none;
    }
}
