.tpc-form,
.tpc-form * {
    box-sizing: border-box;
}

.tpc-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.tpc-newsletter-form .tpc-form-field,
.tpc-newsletter-form .tpc-turnstile-wrap {
    width: 100%;
    margin: 0;
}

.tpc-newsletter-form input[type="text"],
.tpc-newsletter-form input[type="email"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 14px;
    line-height: 21px;
}

.tpc-newsletter-form input[type="text"]:focus,
.tpc-newsletter-form input[type="email"]:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.tpc-newsletter-form .tpc-form-submit {
    display: block;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #fb5d1c;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
}

.tpc-newsletter-form .tpc-form-submit:hover,
.tpc-newsletter-form .tpc-form-submit:focus {
    background: #fb6d33;
    color: #ffffff;
}

.tpc-newsletter-form .tpc-form-submit[disabled] {
    cursor: wait;
    opacity: .75;
}

.tpc-form-status:empty {
    display: none;
}

/* Success and error notices deliberately reuse WooCommerce's native
 * .woocommerce-message / .woocommerce-error classes so they inherit the
 * site's existing WooCommerce notice styling. */

.tpc-form-config-warning {
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid #dba617;
    background: #fff8e5;
    color: #1d2327;
    font-size: 13px;
}

.tpc-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tpc-turnstile-wrap {
    min-height: 0;
}

.tpc-turnstile-wrap:empty {
    display: none;
}
