/* Merge Words - the three-box form. Loaded after the Search Volume
 * Checker's tool.css (this page runs on that engine and reuses its
 * form-controls row and results table styles). */

.mw-boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mw-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mw-box .control-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ink-500);
}

.mw-box .control-label em {
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.mw-box .textarea-input {
    width: 100%;
    min-height: 190px;
    resize: vertical;
}

.mw-feedback {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    min-height: 22px;
    font-size: 13px;
    color: var(--ink-500);
}

.mw-feedback .feedback-msg.is-warning {
    color: #b45309;
}

/* "Load sample" row above the boxes. */
.mw-top {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.mw-sample-note {
    color: var(--ink-500);
}

.mw-sample {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--link);
    cursor: pointer;
}

.mw-sample:hover {
    text-decoration: underline;
}

/* The engine's own keyword box and counter stay in the DOM (tool.js
   reads them) but are never shown on this page. */
.mw-engine-input {
    display: none;
}

@media (max-width: 640px) {
    .mw-boxes {
        grid-template-columns: minmax(0, 1fr);
    }
    .mw-box .textarea-input {
        min-height: 120px;
    }
}
