.tms-section,
.tms-section * {
    box-sizing: border-box;
}

.tms-section {
    width: 100%;
    padding-top: var(--tms-padding-top, 24px);
    padding-bottom: var(--tms-padding-bottom, 24px);
    color: var(--tms-font-color, #161616);
    font-family: "Manrope", sans-serif !important;
}

.tms-wrap {
    width: 100%;
    max-width: var(--tms-max-width, 480px);
}

.tms-align-left .tms-wrap {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.tms-align-center .tms-wrap {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.tms-align-right .tms-wrap {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

.tms-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--tms-title-color, #111111) !important;
    font-family: "Manrope", sans-serif !important;
    font-size: var(--tms-title-size, 24px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    text-align: inherit;
}

.tms-section .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tms-form {
    width: 100%;
    margin: 0;
    font-family: "Manrope", sans-serif !important;
}

.tms-row {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 50px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tms-row:focus-within {
    border-color: var(--tms-button-color, #111111);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.tms-email {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 13px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--tms-font-color, #161616) !important;
    font-family: "Manrope", sans-serif !important;
    font-size: var(--tms-font-size, 16px) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    outline: 0 !important;
}

.tms-email::placeholder {
    color: var(--tms-font-color, #161616);
    opacity: 0.62;
}

.tms-submit {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0 !important;
    padding: var(--tms-button-padding-y, 10px) var(--tms-button-padding-x, 20px) !important;
    background: var(--tms-button-color, #111111) !important;
    border: 1px solid var(--tms-button-color, #111111) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--tms-button-text-color, #ffffff) !important;
    cursor: pointer;
    font-family: "Manrope", sans-serif !important;
    font-size: var(--tms-button-size, 15px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tms-submit::after {
    display: none !important;
}

.tms-submit:hover {
    opacity: 0.88;
}

.tms-submit:active {
    transform: scale(0.98);
}

.tms-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.tms-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tms-consent {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    color: var(--tms-font-color, #161616) !important;
    font-family: "Manrope", sans-serif !important;
    font-size: calc(var(--tms-font-size, 16px) * 0.78) !important;
    line-height: 1.45 !important;
    text-align: left;
}

.tms-align-center .tms-consent {
    justify-content: center;
}

.tms-align-right .tms-consent {
    justify-content: flex-end;
}

.tms-consent input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
}

.tms-message {
    min-height: 0;
    margin-top: 9px;
    color: var(--tms-font-color, #161616);
    font-family: "Manrope", sans-serif !important;
    font-size: calc(var(--tms-font-size, 16px) * 0.82) !important;
    font-weight: 500;
    line-height: 1.4;
    text-align: inherit;
}

.tms-message:empty {
    display: none;
}

.tms-message.is-success {
    color: #157347;
}

.tms-message.is-error {
    color: #b42318;
}

@media (max-width: 420px) {
    .tms-row {
        align-items: stretch;
        flex-direction: column;
        border-radius: 18px;
        padding: 7px;
    }

    .tms-email,
    .tms-submit {
        width: 100%;
    }

    .tms-email {
        min-height: 42px;
        text-align: center;
    }

    .tms-submit {
        border-radius: 13px !important;
    }
}
