/* Layout is ours; everything visual is the theme's. The button carries the
   theme's own button classes and every look rule below sits inside :where(),
   which has zero specificity, so any rule the theme writes for buttons or
   inputs wins. What remains only shows on a theme that styles neither, and is
   built from currentColor so it reads on light and dark backgrounds alike. */

.velora-signup {
    margin: 1.75em 0;
    width: 100%;
    box-sizing: border-box;
}

.velora-signup *,
.velora-signup *::before,
.velora-signup *::after {
    box-sizing: border-box;
}

.velora-signup-form {
    margin: 0;
}

.velora-signup-fields {
    display: flex;
    gap: 10px;
}

.velora-signup--stacked .velora-signup-fields {
    flex-direction: column;
    max-width: 420px;
}

.velora-signup--inline .velora-signup-fields {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.velora-signup-email {
    flex: 1 1 auto;
    min-width: 0;
}

.velora-signup-button {
    flex: 0 0 auto;
    cursor: pointer;
}

.velora-signup--stacked .velora-signup-button {
    align-self: flex-start;
}

.velora-signup-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:where(.velora-signup-heading) {
    margin: 0 0 0.75em;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.3;
}

:where(.velora-signup-email) {
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(127, 127, 127, 0.45);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    border-radius: 8px;
}

:where(.velora-signup-email)::placeholder {
    color: inherit;
    opacity: 0.55;
}

:where(.velora-signup-button) {
    padding: 12px 22px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 8px;
}

.velora-signup-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.velora-signup-status {
    margin: 0.75em 0 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.velora-signup-status[data-state="success"] {
    font-weight: 600;
}

.velora-signup-status[data-state="error"] {
    color: #b3261e;
}

/* Consent checkboxes. Separated from the email row by a rule rather than only by
   spacing: these are distinct decisions from subscribing, and the boundary has to
   be visible for the consent to be unbundled in fact and not just in the database. */
.velora-signup-consents {
    margin-top: 1em;
    padding-top: 0.9em;
    border-top: 1px solid rgba(127, 127, 127, 0.3);
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.velora-signup-permission {
    display: flex;
    align-items: flex-start;
    gap: 0.55em;
    margin-bottom: 0.55em;
    font-size: 0.9em;
    line-height: 1.45;
    cursor: pointer;
}

.velora-signup-permission input {
    margin: 0.2em 0 0;
    flex: 0 0 auto;
}

.velora-signup-legal {
    margin: 0.9em 0 0;
    font-size: 0.82em;
    line-height: 1.5;
    opacity: 0.75;
}
