.ber-subscribe .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.custom-global-footer .footer-subscribe,
.ber-subscribe--footer {
    flex: 0 1 240px;
    min-width: 220px;
    max-width: 280px;
    text-align: left;
}

.custom-global-footer .footer-subscribe .ber-subscribe-form,
.ber-subscribe--footer .ber-subscribe-form {
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* One column so the email field cannot shrink smaller than 訂閱. */
.custom-global-footer .footer-subscribe .ber-subscribe__row,
.ber-subscribe--footer .ber-subscribe__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.custom-global-footer .footer-subscribe .ber-subscribe__email,
.custom-global-footer .footer-subscribe .ber-subscribe__btn,
.ber-subscribe--footer .ber-subscribe__email,
.ber-subscribe--footer .ber-subscribe__btn {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    justify-self: stretch;
    box-sizing: border-box !important;
}

.ber-subscribe__lead,
.ber-subscribe__consent,
.ber-subscribe__done {
    margin: 0 0 0.75rem;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

.ber-subscribe__consent {
    margin-top: 0.6rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ber-subscribe__row {
    display: flex;
    gap: 8px;
}

.ber-subscribe__email {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    appearance: none;
}

.ber-subscribe__email::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ber-subscribe__btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

.ber-subscribe--footer .ber-subscribe__btn {
    width: 100%;
    flex: none;
}

.ber-subscribe__email:disabled {
    opacity: 0.55;
    cursor: default;
}

.ber-subscribe__btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.ber-subscribe__msg {
    margin: 0.6rem 0 0;
    font-size: 13px;
    color: #fff;
}

.ber-subscribe__msg.is-error {
    color: #ffb4b4;
}

.ber-subscribe-thankyou {
    margin: 24px 0;
    padding: 20px 24px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.ber-subscribe-thankyou .ber-subscribe__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.ber-subscribe-thankyou .ber-subscribe__lead,
.ber-subscribe-thankyou .ber-subscribe__consent,
.ber-subscribe-thankyou .ber-subscribe__done {
    color: #555;
}

.ber-subscribe-thankyou .ber-subscribe__email {
    background: #fff;
    color: #1d2327;
    border-color: #8c8f94;
}

.ber-subscribe-thankyou .ber-subscribe__msg {
    color: #1d2327;
}

.woocommerce-checkout .ber-subscribe-checkout {
    margin: 16px 0 0;
}

@media (max-width: 768px) {
    .custom-global-footer .footer-subscribe,
    .custom-global-footer:not(.landing-footer) .footer-subscribe,
    .ber-subscribe--footer {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center;
    }

    .ber-subscribe__row {
        flex-direction: column;
    }
}
