.elwin-gr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.elwin-gr-modal.is-open {
    display: block;
}

.elwin-gr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.elwin-gr-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 830px;
    margin: 8vh auto;
    background: #fff;
    border-radius: 200px 14px 14px 200px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.elwin-gr-modal__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;
}

.elwin-gr-modal__content {
    flex: 1;
    min-width: 0;
}

.elwin-gr-wheel-wrap {
    width: 100%;
}

.elwin-gr-modal .elwin-gr-modal__close {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: #000 !important;
    color: #fff !important;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 0 12px 0 8px;
    cursor: pointer;
}

.elwin-gr-modal__title {
    margin: 0 0 12px;
}

.elwin-gr-modal__text {
    margin: 0 0 18px;
    color: #555;
}

.elwin-gr-notice {
    display: none;
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.elwin-gr-notice.is-visible {
    display: block;
}

.elwin-gr-notice.is-success {
    background: #e7f6ee;
    color: #1b6a3a;
}

.elwin-gr-notice.is-error {
    background: #fde8e8;
    color: #9b1c1c;
}

.elwin-gr-wheel {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto;
}

.elwin-gr-wheel__spinner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #f2f2f2;
    background: conic-gradient(#ff5a5f 0deg 90deg, #ffb400 90deg 180deg, #4aa3df 180deg 270deg, #5fbf6b 270deg 360deg);
    transition: transform 0ms linear;
    overflow: hidden;
}

.elwin-gr-wheel__spinner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdbdbd;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.elwin-gr-wheel__labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.elwin-gr-wheel__label {
    position: absolute;
    top: 48%;
    left: 49%;
    width: 132px;
    text-align: left;
    font-size: 12px;
    color: #1f1f1f;
    transform: rotate(var(--elwin-gr-label-angle)) translateY(-155px) rotate(90deg);
    transform-origin: left center;
    white-space: pre-line;
    overflow: hidden;
    line-height: 1.1;
    max-height: 2.4em;
}

.elwin-gr-wheel__indicator {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #222;
}

.elwin-gr-modal__actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.elwin-gr-modal .elwin-gr-spin {
    background: #67c30b !important;
    border-color: #67c30b !important;
    color: #fff !important;
}

.elwin-gr-modal .elwin-gr-spin:hover,
.elwin-gr-modal .elwin-gr-spin:focus {
    background: #59a80a !important;
    border-color: #59a80a !important;
    color: #fff !important;
}

.elwin-gr-modal .elwin-gr-cart {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.elwin-gr-modal .elwin-gr-cart:hover,
.elwin-gr-modal .elwin-gr-cart:focus {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}

.elwin-gr-modal__actions .is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .elwin-gr-modal__dialog {
        border-radius: 14px 14px 190px 190px;
        width: calc(100% - 24px);
        margin: 10vh auto;
        padding: 18px;
    }

    .elwin-gr-modal__layout {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 30px;
    }

    .elwin-gr-modal__content {
        order: 1;
    }

    .elwin-gr-wheel-wrap {
        width: 100%;
        flex: 0 0 auto;
        order: 2;
    }

    .elwin-gr-wheel {
       /* width: 240px;
        height: 240px;*/
        margin-bottom: 4px;
    }

    .elwin-gr-wheel__label {
        width: 104px;
        font-size: 14px;
        transform: rotate(var(--elwin-gr-label-angle)) translateY(-98px) rotate(180deg);
    }

}

@media (max-width: 480px) {
    .elwin-gr-modal__dialog {
        margin: 6vh auto;
        padding: 16px;
    }

    .elwin-gr-modal__actions {
        flex-direction: column;
    }

 

    .elwin-gr-wheel__label {
        width: 96px;
        transform: rotate(var(--elwin-gr-label-angle)) translateY(-155px) rotate(90deg);
    }
}
