.kp-subscription {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.kp-subscription,
.kp-subscription * {
    box-sizing: border-box;
}

.kp-subscription .kp-subscription__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.kp-subscription .kp-subscription__title,
.kp-subscription .kp-subscription__field,
.kp-subscription .kp-subscription__submit {
    min-width: 0;
    max-width: 100%;
}

.kp-subscription .kp-subscription__title {
    flex: 0 1 auto;
    overflow-wrap: anywhere;
}

.kp-subscription .kp-subscription__field {
    flex: 1 1 0%;
}

.kp-subscription .kp-subscription__input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 48px;
    margin: 0;
    padding: 10px 14px;
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font: inherit;
    line-height: 1.2;
    appearance: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kp-subscription .kp-subscription__input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.kp-subscription .kp-subscription__input:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.3);
    outline-offset: 1px;
}

.kp-subscription .kp-subscription__input.is-error {
    border-color: #b42318;
}

.kp-subscription .kp-subscription__submit {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 10px 24px;
    color: #ffffff;
    background-color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    appearance: none;
    transition-property: color, background-color, border-color, box-shadow, opacity;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.kp-subscription .kp-subscription__submit:hover {
    color: #ffffff;
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.kp-subscription .kp-subscription__submit:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.kp-subscription .kp-subscription__submit.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.kp-subscription .kp-subscription__submit.is-loading::before {
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    content: "";
    animation: kp-subscription-spin 0.7s linear infinite;
}

.kp-subscription .kp-subscription__submit:disabled {
    pointer-events: none;
}

.kp-subscription .kp-subscription__message {
    width: 100%;
    overflow-wrap: anywhere;
}

.kp-subscription .kp-subscription__message:empty {
    display: none;
}

.kp-subscription .kp-subscription__message.is-success {
    margin-top: 12px;
    color: #067647;
}

.kp-subscription .kp-subscription__message.is-error {
    margin-top: 12px;
    color: #b42318;
}

.kp-subscription .kp-subscription__screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kp-subscription .kp-subscription__editor-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

@keyframes kp-subscription-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .kp-subscription .kp-subscription__inner {
        flex-direction: column;
    }

    .kp-subscription .kp-subscription__title,
    .kp-subscription .kp-subscription__field,
    .kp-subscription .kp-subscription__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kp-subscription .kp-subscription__input,
    .kp-subscription .kp-subscription__submit {
        transition-duration: 0.01ms;
    }

    .kp-subscription .kp-subscription__submit.is-loading::before {
        animation-duration: 1.5s;
    }
}
