/* Reskins the Fluent Forms subscription form markup to match this block's pill-shaped design. */

.tii-newsletter__form .ff-t-container.ff-column-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tii-newsletter__form .ff-t-container.ff-column-container {
        flex-direction: row;
        align-items: center;
    }
}

/* Fluent Forms' own CSS forces width:100% on every cell and flex-grow:1 on the
   last cell (the button) — both need beating with !important or the email input
   collapses to near-zero width. */
.tii-newsletter__form .ff-t-cell {
    width: auto !important;
    flex-basis: auto !important;
    padding: 0 !important;
}

.tii-newsletter__form .ff-t-column-1 {
    flex: 1 1 auto !important;
    min-width: 0;
}

.tii-newsletter__form .ff-t-column-2 {
    flex: 0 0 auto !important;
}

.tii-newsletter__form .ff-el-group {
    margin: 0 !important;
}

.tii-newsletter__form .ff_submit_btn_wrapper_custom {
    margin: 0 !important;
    align-items: center !important;
}

.tii-newsletter__form .ff_submit_btn_wrapper_custom button {
    margin-bottom: 0 !important;
}

.tii-newsletter__form input.ff-el-form-control {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 9999px;
    background-color: #fff;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.tii-newsletter__form input.ff-el-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.tii-newsletter__form button.ff-btn-submit {
    width: auto !important;
    min-width: 0 !important;
    flex-shrink: 0;
    border-radius: 9999px !important;
    background-color: #000 !important;
    border-color: #000 !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
}

/* fluentform-public-default.css sets .ff_btn_style:focus/:hover to opacity:.8,
   which reads as the black button turning semi-transparent over the green section. */
.tii-newsletter__form button.ff-btn-submit:hover,
.tii-newsletter__form button.ff-btn-submit:focus {
    opacity: 1 !important;
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}
