.cwq-widget {
    --cwq-primary: var(--primary-color, #0354e3);
    --cwq-secondary: var(--secondary-color, #0e081e);
    --cwq-accent: var(--fourth-color, #ffba03);
    --cwq-text: var(--third-color, #474450);
    --cwq-border: #ededed;
    max-width: 980px;
    margin: 0 auto;
    color: var(--cwq-text);
    font-family: inherit;
}

.cwq-search-panel {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cwq-border);
    border-top: 4px solid var(--cwq-primary);
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 18px 45px rgba(14, 8, 30, 0.08);
}

.cwq-kicker {
    margin-bottom: 8px;
    color: var(--cwq-primary);
    font-family: "Oxanium", inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.cwq-title {
    margin: 0 0 22px;
    color: var(--cwq-secondary);
    font-family: "Oxanium", inherit;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    text-transform: uppercase;
}

.cwq-form {
    position: relative;
    z-index: 1;
}

.cwq-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.cwq-input {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    border: 1px solid #f8f8f8;
    border-radius: 0;
    background: #f8f8f8;
    color: #454545;
    padding: 12px 20px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.cwq-input:focus {
    border-color: var(--cwq-primary);
    background: #fff;
}

.cwq-submit {
    min-height: 58px;
    border: 0;
    border-radius: 35px;
    background: var(--cwq-primary);
    color: #fff;
    padding: 0 34px;
    font-family: "Oxanium", inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.cwq-submit:hover,
.cwq-submit:focus {
    background: var(--cwq-secondary);
    color: #fff;
    transform: translateY(-1px);
}

.cwq-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.cwq-message {
    min-height: 24px;
    margin-top: 14px;
    color: var(--cwq-secondary);
    font-size: 15px;
}

.cwq-message.is-error {
    color: #b32d2e;
}

.cwq-message.is-success {
    color: var(--cwq-primary);
}

.cwq-results {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.cwq-result-card {
    background: #fff;
    border: 1px solid var(--cwq-border);
    padding: clamp(20px, 3vw, 30px);
    box-shadow: 0 12px 35px rgba(14, 8, 30, 0.06);
}

.cwq-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.cwq-result-title {
    margin: 0;
    color: var(--cwq-secondary);
    font-family: "Oxanium", inherit;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.cwq-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 14px;
    font-family: "Oxanium", inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.cwq-badge.is-active {
    background: rgba(3, 84, 227, 0.12);
    color: var(--cwq-primary);
}

.cwq-badge.is-expired {
    background: rgba(179, 45, 46, 0.12);
    color: #b32d2e;
}

.cwq-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--cwq-border);
    border-left: 1px solid var(--cwq-border);
}

.cwq-info {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid var(--cwq-border);
    border-bottom: 1px solid var(--cwq-border);
}

.cwq-info-label {
    display: block;
    margin-bottom: 5px;
    color: #74717d;
    font-size: 13px;
    line-height: 1.3;
}

.cwq-info-value {
    display: block;
    color: var(--cwq-secondary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cwq-empty {
    border-left: 4px solid var(--cwq-accent);
}

.cwq-empty-title {
    margin: 0 0 8px;
    color: var(--cwq-secondary);
    font-family: "Oxanium", inherit;
    font-size: 24px;
}

.cwq-empty p {
    margin: 0;
}

.cwq-empty a {
    color: var(--cwq-primary);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .cwq-search-row {
        grid-template-columns: 1fr;
    }

    .cwq-submit {
        width: 100%;
    }

    .cwq-result-head {
        display: block;
    }

    .cwq-badge {
        margin-top: 12px;
    }

    .cwq-field-grid {
        grid-template-columns: 1fr;
    }
}
