.ycy-page-query .order-query-form {
    width: min(100%, 560px);
    margin: 0 auto;
}

.ycy-query-controls {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
}

.ycy-page-query .ycy-query-input {
    width: auto;
    min-width: 0;
    flex: 1;
}

.ycy-query-submit {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ycy-query-history {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    color: var(--acg-text-muted);
    font-size: 13px;
}

.ycy-query-history[hidden] {
    display: none;
}

.ycy-query-history__label {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    padding-top: 5px;
}

.ycy-query-history__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ycy-query-history__item {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(var(--ycy-primary-rgb), .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
}

.ycy-query-history__value,
.ycy-query-history__remove {
    border: 0;
    background: transparent;
}

.ycy-query-history__value {
    max-width: 190px;
    padding: 5px 8px 5px 10px;
    overflow: hidden;
    color: #566074;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ycy-query-history__value:hover,
.ycy-query-history__value:focus-visible {
    color: var(--ycy-primary);
}

.ycy-query-history__remove {
    padding: 5px 8px 5px 4px;
    color: #9299a8;
}

.ycy-query-history__remove:hover,
.ycy-query-history__remove:focus-visible {
    color: #e15461;
}

.ycy-query-captcha {
    position: relative;
    isolation: isolate;
    padding: 28px;
    overflow: hidden;
}

.ycy-query-captcha::before {
    position: absolute;
    z-index: -1;
    top: -92px;
    right: -78px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ycy-primary-rgb), .24) 0%, rgba(var(--ycy-primary-rgb), 0) 70%);
    content: '';
    pointer-events: none;
}

.ycy-query-captcha__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    text-align: left;
}

.ycy-query-captcha__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    box-shadow: 0 10px 24px rgba(var(--ycy-primary-rgb), .24), inset 0 1px 0 rgba(255, 255, 255, .45);
    color: #fff;
    font-size: 21px;
}

.ycy-query-captcha__title {
    margin: 0;
    color: #2f3441;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.ycy-query-captcha__subtitle {
    margin: 3px 0 0;
    color: var(--acg-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.ycy-query-captcha__controls {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
}

.ycy-page-query .ycy-query-captcha__input {
    width: auto;
    height: 48px;
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(var(--ycy-primary-rgb), .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
    color: #303746;
    font-size: 16px;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ycy-page-query .ycy-query-captcha__input:focus {
    border-color: rgba(var(--ycy-primary-rgb), .62);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 0 0 4px rgba(var(--ycy-primary-rgb), .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.ycy-query-captcha__refresh {
    width: 112px;
    height: 48px;
    flex: 0 0 112px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--ycy-primary-rgb), .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 6px 18px rgba(49, 55, 86, .08), inset 0 1px 0 rgba(255, 255, 255, .86);
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.ycy-query-captcha__refresh:hover,
.ycy-query-captcha__refresh:focus-visible {
    border-color: rgba(var(--ycy-primary-rgb), .58);
    box-shadow: 0 8px 22px rgba(var(--ycy-primary-rgb), .16), 0 0 0 3px rgba(var(--ycy-primary-rgb), .1);
}

.ycy-query-captcha__refresh:active {
    transform: scale(.96);
}

.ycy-query-captcha__refresh img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ycy-query-captcha__tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 11px 0 17px;
    color: var(--acg-text-muted);
    font-size: 12px;
}

.ycy-query-captcha__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    box-shadow: 0 12px 28px rgba(var(--ycy-primary-rgb), .24), inset 0 1px 0 rgba(255, 255, 255, .36);
    color: #fff;
    font-weight: 700;
    transition: box-shadow .18s ease, transform .12s ease, filter .18s ease;
}

.ycy-query-captcha__submit:hover,
.ycy-query-captcha__submit:focus-visible {
    box-shadow: 0 15px 32px rgba(var(--ycy-primary-rgb), .3), 0 0 0 4px rgba(var(--ycy-primary-rgb), .1);
    color: #fff;
    filter: saturate(1.08);
}

.ycy-query-captcha__submit:active {
    transform: scale(.96);
}

.ycy-query-captcha-layer {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 24px 70px rgba(50, 44, 88, .22), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(var(--ycy-glass-blur, 14px));
    backdrop-filter: saturate(160%) blur(var(--ycy-glass-blur, 14px));
}

.ycy-query-captcha-layer .layui-layer-content {
    overflow: visible;
    background: transparent;
}

.ycy-query-captcha-layer .layui-layer-setwin {
    top: 15px;
    right: 15px;
}

.ycy-query-captcha-layer .layui-layer-setwin .layui-layer-close2 {
    position: static;
    display: block;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(var(--ycy-primary-rgb), .14);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .72);
    background-image: none;
    box-shadow: 0 5px 14px rgba(52, 55, 79, .08);
    color: #687086;
    opacity: .72;
    text-indent: 0;
    transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .12s ease;
}

.ycy-query-captcha-layer .layui-layer-setwin .layui-layer-close2::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    content: '\00d7';
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

.ycy-query-captcha-layer .layui-layer-setwin .layui-layer-close2:hover,
.ycy-query-captcha-layer .layui-layer-setwin .layui-layer-close2:focus-visible {
    border-color: rgba(var(--ycy-primary-rgb), .38);
    box-shadow: 0 7px 18px rgba(var(--ycy-primary-rgb), .15);
    opacity: 1;
}

.ycy-query-captcha-layer .layui-layer-setwin .layui-layer-close2:active {
    transform: scale(.96);
}

@media (max-width: 575.98px) {
    .ycy-query-controls {
        gap: 8px;
    }

    .ycy-page-query .ycy-query-input {
        height: 46px;
        font-size: 14px;
    }

    .ycy-page-query .ycy-query-submit {
        width: auto;
        height: 46px;
        min-width: 108px;
        padding-right: 14px;
        padding-left: 14px;
        font-size: 14px;
    }

    .ycy-query-history {
        flex-direction: column;
    }

    .ycy-query-history__label {
        padding-top: 0;
    }

    .ycy-query-captcha {
        padding: 24px;
    }

    .ycy-query-captcha__heading {
        padding-right: 25px;
        margin-bottom: 20px;
    }

    .ycy-query-captcha__title {
        font-size: 17px;
    }
}

@media (max-width: 359.98px) {
    .ycy-query-controls {
        gap: 6px;
    }

    .ycy-page-query .ycy-query-submit {
        min-width: 100px;
        padding-right: 10px;
        padding-left: 10px;
    }
}
