#customgpt_chat iframe {
    border-radius: 10px;
    height: 100%;
    background-color: #f5f5f5;
}

#customgpt_chat {
    height: 400px;
}

/* ===== Base (drop in anywhere) ===== */
:root {
    --ttw-bg: #eff1f3;
    --ttw-border: #dce1e6;
    --ttw-text: #000000;
    /* dark slate */
    --ttw-muted: #000000;
    /* gray */
    --ttw-btn: #0f172a;
    /* near-black blue */
    --ttw-btn-text: #fff;
    --ttw-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    --ttw-radius: 9999px;
    /* pill */
    --ttw-height: 48px;
    --ttw-maxw: 1200px;
    /* cap width similar to site layout */
}

/* Visually hidden label (keeps it accessible) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ttw-search {
    max-width: var(--ttw-maxw);
    margin-inline: auto;
    margin: 0;
    width: 100%;
}

.ttw-search__wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--ttw-bg);
    border: 1px solid var(--ttw-border);
    border-radius: var(--ttw-radius);
    height: var(--ttw-height);
    padding: 0 .5rem 0 0.8rem;
    transition: all 0.5s;
    /* left pad for icon */
    box-shadow: var(--ttw-shadow);
}

.ttw-search__wrap:has(input:focus) {
    background: #fff;
}

.ttw-search__icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--ttw-muted);
    pointer-events: none;
}

.ttw-search__input:focus,
.ttw-search__input:active {
    box-shadow: none !important;
}

.ttw-search__input {
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    padding: 0 !important;
    outline: none;
    font-size: 14.4px !important;
    line-height: 1;
    color: var(--ttw-text) !important;
    background: transparent !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.ttw-search__input::placeholder {
    color: var(--ttw-muted);
}

/* Primary submit button */
.ttw-search__submit {
    all: initial !important;
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    border-radius: calc(var(--ttw-radius) - 2px);
    background: var(--ttw-btn);
    color: var(--ttw-btn-text);
    padding: .6rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
}

.ttw-search__submit:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Clear as subtle text action */
.ttw-search__clear {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ttw-muted);
    font-size: .9rem;
    cursor: pointer;
    padding: .25rem .5rem;
}

.ttw-search__clear:hover {
    color: var(--ttw-text);
}

/* ===== Responsive niceties ===== */
@media (max-width: 480px) {
    :root {
        --ttw-height: 44px;
    }

    .ttw-search__submit {
        padding: .5rem .85rem;
    }
}


.e6567-e5.m52f-f {
    display: flex;
    justify-content: center;
}
