.wrep-box {
    max-width: 860px;
    margin: 28px auto;
    padding: 30px;
    background: linear-gradient(180deg,#fff,#fbfdff);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15,23,42,.08);
    font-family: inherit;
    color: #172033;
    box-sizing: border-box
}

.wrep-box * {
    box-sizing: border-box
}

.wrep-box h2,.wrep-box h3 {
    margin: 0 0 12px;
    color: #101827;
    line-height: 1.2
}

.wrep-muted {
    color: #64748b;
    margin-top: 0
}

.wrep-login-form label,.wrep-ticket-form label {
    display: block;
    font-weight: 650;
    margin: 14px 0 7px
}

.wrep-box input[type=email],.wrep-box input[type=number],.wrep-box select,.wrep-box textarea {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    font-size: 15px;
    background: #fbfdff;
    transition: .18s;
    border-color: #d8e0ea;
    outline: none
}

.wrep-box input:focus,.wrep-box select:focus,.wrep-box textarea:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,.08)
}

.wrep-btn,.wrep-btn-light,.wrep-logout {
    border: 0;
    border-radius: 14px;
    padding: 13px 19px;
    margin-top: 16px;
    cursor: pointer;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    transition: .18s
}

.wrep-btn {
    background: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(17,24,39,.18)
}

.wrep-btn:hover {
    background: #000;
    transform: translateY(-1px)
}

.wrep-btn-light,.wrep-logout {
    background: #f1f5f9;
    color: #0f172a
}

.wrep-btn:disabled {
    cursor: not-allowed;
    opacity: .78;
    transform: none
}

.wrep-choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.wrep-choice-row label {
    border: 1px solid #d8e0ea;
    border-radius: 16px;
    padding: 18px;
    background: #fbfdff;
    cursor: pointer
}

.wrep-choice-row input {
    margin-right: 8px
}

.wrep-step {
    display: none
}

.wrep-step.is-active {
    display: block;
    animation: wrepFade .18s ease-in
}

.wrep-step-label {
    display: inline-block;
    background: #eef6ff;
    color: #1d4ed8;
    border-radius: 99px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px
}

.wrep-message {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 14px;
    line-height: 1.55
}

.wrep-message.is-success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0
}

.wrep-message.is-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca
}

.wrep-final-message {
    font-size: 16px;
    text-align: center;
    padding: 22px!important
}

.wrep-help {
    font-size: 13px;
    color: #64748b
}

.wrep-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px
}

.is-loading {
    opacity: .95
}

.wrep-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: wrepSpin .75s linear infinite
}

.wrep-item-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin-top: 12px
}

.wrep-item-card {
    position: relative!important;
    display: grid!important;
    grid-template-columns: 78px 1fr;
    gap: 13px;
    align-items: center;
    margin: 0!important;
    padding: 12px!important;
    border: 1px solid #d8e0ea;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    min-height: 104px;
    box-shadow: 0 5px 16px rgba(15,23,42,.04);
    transition: .18s
}

.wrep-item-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px)
}

.wrep-item-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.wrep-item-check {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    background: #fff
}

.wrep-item-card input:checked+.wrep-item-check {
    background: #111827;
    border-color: #111827
}

.wrep-item-card input:checked+.wrep-item-check:after {
    content: '✓';
    color: #fff;
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 15px;
    font-weight: 900
}

.wrep-item-card:has(input:checked) {
    border-color: #111827;
    background: #f8fafc;
    box-shadow: 0 10px 24px rgba(15,23,42,.08)
}

.wrep-item-image {
    width: 78px;
    height: 78px;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.wrep-product-img,.wrep-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.wrep-item-info {
    padding-right: 24px
}

.wrep-item-info strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #111827
}

.wrep-item-info small {
    display: block;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.35
}

.wrep-has-error,.wrep-has-error input,.wrep-has-error select,.wrep-has-error textarea {
    border-color: #ef4444!important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.10)!important
}

.wrep-field-error {
    display: none;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 7px;
    font-weight: 650
}

@keyframes wrepSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes wrepFade {
    from {
        opacity: .5;
        transform: translateY(5px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width: 700px) {
    .wrep-box {
        padding:20px;
        margin: 16px auto;
        border-radius: 18px
    }

    .wrep-choice-row,.wrep-item-grid {
        grid-template-columns: 1fr
    }

    .wrep-topbar {
        display: block
    }

    .wrep-logout {
        margin-top: 6px
    }

    .wrep-btn,.wrep-btn-light {
        width: 100%;
        margin-top: 12px
    }

    .wrep-item-card {
        grid-template-columns: 68px 1fr;
        min-height: 92px
    }

    .wrep-item-image {
        width: 68px;
        height: 68px
    }

    .wrep-box h2 {
        font-size: 24px
    }

    .wrep-box h3 {
        font-size: 20px
    }
}

@media(max-width: 420px) {
    .wrep-box {
        padding:16px
    }

    .wrep-item-card {
        padding: 10px!important;
        gap: 10px
    }

    .wrep-item-info strong {
        font-size: 14px
    }

    .wrep-item-check {
        right: 9px;
        top: 9px
    }
}
