/* Override the legacy Gravity Forms HTML's inline presentation only. */
.gchoice:has(input[value^="Generate Artwork with AI"]:not(:disabled)) [data-bw-ai-eligibility] {
    display: none !important;
}

.bw-ai-design-panel {
    border-color: #ccc !important;
    color: #232326 !important;
    font-family: "museo-sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    margin-left: 50%;
    width: 50%;
}

.bw-ai-design-panel > table > tbody > tr > td {
    padding: 24px 24px 24px 40px;
}

.bw-ai-design-panel .bw-ai-title {
    color: #232326;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
}

.bw-ai-design-panel :is(p, label, strong, span, summary) {
    color: inherit !important;
}

.bw-ai-design-panel p,
.bw-ai-design-panel #bw-ai-colour-status,
.bw-ai-design-panel #bw-ai-ratio-help,
.bw-ai-design-panel [data-bw-ratio-preview] {
    border-color: #ccc !important;
    color: #666 !important;
}

.bw-ai-design-panel :is(input[type="text"], textarea, select) {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 12px !important;
    color: #232326 !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    padding: 10px 14px !important;
}

.bw-ai-design-panel textarea {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.bw-ai-design-panel :is(input[type="text"], textarea, select):focus {
    border-color: #4370ff !important;
    color: #232326 !important;
    outline: 2px solid #4370ff;
    outline-offset: 2px;
}

.bw-ai-design-panel details,
.bw-ai-design-panel [data-bw-swatch],
.bw-ai-design-panel [data-bw-inspiration-tile],
.bw-ai-design-panel [data-bw-reference-tile],
.bw-ai-design-panel [data-bw-logo-tile],
.bw-ai-design-panel [data-bw-ratio-preview] {
    border-color: #ccc !important;
    border-radius: 12px !important;
}

.bw-ai-design-panel summary {
    color: #4370ff !important;
    font-weight: 700 !important;
}

.bw-ai-design-panel summary:hover {
    color: #e2088a !important;
}

.bw-ai-design-panel div:has(> #bw-ai-logo) {
    background: transparent !important;
    border-color: transparent !important;
    border-radius: 0 !important;
}

.bw-ai-design-panel .bw-ai-reference-images {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #232326;
    margin-top: 12px;
    padding: 0;
}

.bw-ai-design-panel .bw-ai-reference-images > strong,
.bw-ai-design-panel .bw-ai-reference-images > small {
    display: block;
}

.bw-ai-design-panel .bw-ai-reference-images > small {
    color: #666;
    margin: 5px 0 12px;
}

.bw-ai-design-panel .bw-ai-reference-image-inputs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bw-ai-design-panel [data-bw-reference-tile] {
    background: transparent;
    border: 0;
    min-width: 0;
    padding: 0;
}

.bw-ai-design-panel [data-bw-reference-tile][data-selected] .bw-ai-reference-image-label,
.bw-ai-design-panel [data-bw-logo-tile][data-selected] .bw-ai-logo-upload-label {
    border-color: #4370ff !important;
    background: #f7f9ff;
}

.bw-ai-design-panel .bw-ai-reference-image-label,
.bw-ai-design-panel .bw-ai-logo-upload-label {
    align-items: center;
    background: #fff;
    border: 2px dashed #aaa;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
    padding: 14px 8px;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease;
}

.bw-ai-design-panel .bw-ai-logo-upload-label {
    margin-top: 8px;
    min-height: 120px;
    width: 100%;
}

.bw-ai-design-panel :is(.bw-ai-reference-image-label, .bw-ai-logo-upload-label):hover {
    background: #f7f9ff;
    border-color: #4370ff;
}

.bw-ai-design-panel .bw-ai-reference-image-label strong,
.bw-ai-design-panel .bw-ai-reference-image-label span {
    display: block;
}

.bw-ai-design-panel .bw-ai-plus-prompt::before {
    color: #4370ff;
    content: "+";
    display: block;
    font-size: 38px;
    font-weight: 300;
    line-height: 34px;
    margin-bottom: 5px;
}

.bw-ai-design-panel [data-bw-logo-tile] > #bw-ai-logo {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
}

.bw-ai-design-panel .bw-ai-reference-image-label span {
    color: #4370ff !important;
    font-size: 12px;
}

.bw-ai-design-panel .bw-ai-reference-image-label input {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0 0 0 0);
}

.bw-ai-design-panel .bw-ai-upload-preview {
    margin-top: 8px;
    text-align: center;
}

.bw-ai-design-panel .bw-ai-upload-preview img {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.bw-ai-design-panel [data-bw-logo-tile] .bw-ai-upload-preview img {
    aspect-ratio: auto;
    max-height: 150px;
    object-fit: contain;
}

.bw-ai-design-panel .bw-ai-upload-preview small {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.bw-ai-design-panel [data-bw-reference-tile] label {
    color: #232326;
    font-size: 13px;
    font-weight: 700;
}

.bw-ai-design-panel > table > tbody > tr > td > div:first-of-type:not(:has(> #bw-ai-logo)):not(.bw-ai-reference-images),
.bw-ai-design-panel > table > tbody > tr > td > div:last-of-type > div:last-child:not(:has(> #bw-ai-logo)):not(.bw-ai-reference-images) {
    background: #f5f5f5 !important;
    color: #666 !important;
}

.bw-ai-design-panel button {
    background: #4370ff !important;
    border: 0 !important;
    border-radius: 25px !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    padding: 9px 20px 7px !important;
    text-transform: uppercase;
    transform: none !important;
}

.bw-ai-design-panel button:hover:not(:disabled) {
    background: #e2088a !important;
}

.bw-ai-design-panel button:focus-visible,
.bw-ai-design-panel summary:focus-visible,
.bw-ai-design-panel :is([data-bw-swatch], [data-bw-inspiration-tile], [data-bw-reference-tile], [data-bw-logo-tile]):focus-within {
    outline: 2px solid #4370ff;
    outline-offset: 3px;
}

.bw-ai-design-panel button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.bw-ai-design-panel .bw-ai-use-design-button {
    align-items: center;
    background: var(--blue-dark, #3159df) !important;
    border-radius: var(--bwk-button-radius, 11px) !important;
    box-sizing: border-box;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px !important;
    text-align: center;
    text-transform: none !important;
    width: 100%;
}

.bw-ai-design-panel .bw-ai-use-design-button:hover:not(:disabled) {
    background: #2448bf !important;
}

.bw-ai-design-panel .bw-ai-use-design-button:disabled {
    background: #eceff5 !important;
    color: #5f6879 !important;
}

.bw-ai-design-panel .bw-ai-use-design-button.is-selected {
    background: #16845b !important;
    color: #fff !important;
}

.bw-ai-design-panel button:is([data-bw-clear], [data-bw-clear-logo], [data-bw-clear-inspiration], [data-bw-clear-reference]) {
    background: transparent !important;
    color: #4370ff !important;
    font-size: 12px;
    padding: 6px 0 !important;
    text-transform: none;
}

.bw-ai-design-panel button:is([data-bw-clear], [data-bw-clear-logo], [data-bw-clear-inspiration], [data-bw-clear-reference]):hover {
    color: #e2088a !important;
}

.bw-ai-design-panel .bw-ai-generated-preview.is-loading {
    background: transparent;
    border: 0;
}

.bw-ai-design-panel .bw-ai-generation-status {
    background: #f5f5f5;
    border-color: #ccc;
    border-radius: 12px;
}

.bw-ai-design-panel :is(.bw-ai-sparkle-core, .bw-ai-sparkle) {
    color: #4370ff !important;
    text-shadow: none;
}

.bw-ai-design-panel .bw-ai-progress-fill {
    background: #4370ff;
}

@media (max-width: 767px) {
    .bw-ai-design-panel {
        margin-left: 0 !important;
        max-width: 100%;
        width: 100% !important;
    }

    .bw-ai-design-panel > table > tbody > tr > td {
        padding: 20px 16px !important;
    }

    .bw-ai-design-panel :is(input, textarea, select, button) {
        box-sizing: border-box;
        max-width: 100%;
    }
}
