.dswd-trigger {
    display: none !important;
}

.dswd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-family: inherit;
}

.dswd-modal.is-open {
    display: block;
}

.dswd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.dswd-modal__panel {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    margin: 6vh auto 0;
    padding: 28px;
    box-sizing: border-box;
    background: #fff;
    color: #161616;
    border-radius: 8px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.dswd-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.dswd-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.dswd-wheel-wrap {
    position: relative;
    width: 290px;
    height: 290px;
    margin: 0 auto;
}

.dswd-pointer {
    position: absolute;
    left: 50%;
    top: -3px;
    z-index: 2;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 34px solid #171717;
}

.dswd-wheel {
    position: absolute;
    inset: 0;
    border: 8px solid #fff;
    border-radius: 50%;
    background:
        conic-gradient(
            #51cbd2 0deg 90deg,
            #f5d66b 90deg 180deg,
            #ff7d7d 180deg 270deg,
            #222 270deg 360deg
        );
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1), 0 18px 40px rgba(0, 0, 0, 0.2);
    transition: transform 2.3s cubic-bezier(0.14, 0.78, 0.2, 1);
}

.dswd-wheel::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.dswd-wheel__label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    margin-left: -48px;
    color: #111;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transform-origin: 50% 0;
}

.dswd-wheel__label--one {
    transform: rotate(45deg) translateY(-118px);
}

.dswd-wheel__label--two {
    transform: rotate(135deg) translateY(-118px);
}

.dswd-wheel__label--three {
    transform: rotate(225deg) translateY(-118px);
}

.dswd-wheel__label--four {
    color: #fff;
    transform: rotate(315deg) translateY(-118px);
}

.dswd-content h2 {
    margin: 0 42px 8px 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.dswd-content p {
    margin: 0 0 18px;
    color: #505050;
    font-size: 15px;
    line-height: 1.5;
}

.dswd-content label {
    display: block;
    margin: 13px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.dswd-content input {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: #111;
    font-size: 16px;
}

.dswd-content input:focus {
    border-color: #51cbd2;
    box-shadow: 0 0 0 3px rgba(81, 203, 210, 0.18);
    outline: none;
}

.dswd-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.dswd-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.dswd-apply {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: #51cbd2;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.dswd-apply:disabled {
    cursor: wait;
    opacity: 0.72;
}

.dswd-error {
    min-height: 20px;
    margin-top: 12px;
    color: #b00020;
    font-size: 14px;
}

.dswd-result {
    display: none;
    padding: 16px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fafafa;
}

.dswd-result.is-visible {
    display: block;
}

.dswd-result h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.dswd-coupon {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px dashed #111;
    border-radius: 4px;
    background: #fff;
}

body.dswd-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .dswd-modal__panel {
        margin-top: 3vh;
        padding: 22px;
    }

    .dswd-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dswd-wheel-wrap {
        width: 240px;
        height: 240px;
    }

    .dswd-wheel__label {
        font-size: 12px;
        transform-origin: 50% 0;
    }

    .dswd-wheel__label--one {
        transform: rotate(45deg) translateY(-98px);
    }

    .dswd-wheel__label--two {
        transform: rotate(135deg) translateY(-98px);
    }

    .dswd-wheel__label--three {
        transform: rotate(225deg) translateY(-98px);
    }

    .dswd-wheel__label--four {
        transform: rotate(315deg) translateY(-98px);
    }
}
