.goita-mailcheck-form .checkout-email-suggestion:empty {
    display: none;
}

/* Checkout and contact field wrappers otherwise have a fixed 83px height. */
.goita-mailcheck-form .checkout-email-has-suggestion {
    height: auto;
    min-height: 83px;
    padding-bottom: 16px;
}

.goita-mailcheck-form .checkout-email-suggestion {
    clear: both;
    width: 100%;
    margin: 8px 0 0;
    text-align: start;
}

.goita-mailcheck-form .checkout-email-suggestion-button {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 48px;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px 12px 42px;
    border: 1px solid #f2c464;
    border-radius: 8px;
    background: #fffbeb;
    box-shadow: none;
    color: #854d0e;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
    text-decoration: underline;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.goita-mailcheck-form .checkout-email-suggestion-button::before {
    content: '';
    position: absolute;
    top: 13px;
    left: 12px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3Z'/%3E%3Cpath d='M12 9v4m0 4h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.goita-mailcheck-form .checkout-email-suggestion-button:hover {
    background-color: #fef3c7;
    border-color: #d99719;
}

.goita-mailcheck-form .checkout-email-suggestion-button:focus-visible {
    outline: 2px solid #a16207;
    outline-offset: 2px;
}

.goita-mailcheck-form[data-mailcheck-focus-warning="true"] input.mailcheck-email-input-warning,
.goita-mailcheck-form[data-mailcheck-focus-warning="true"] input.mailcheck-email-input-warning:focus {
    border: 2px solid #9b4444 !important;
    box-shadow: 0 0 0 2px rgb(155 68 68 / 18%);
}

.goita-mailcheck-form[data-mailcheck-focus-warning="true"] .checkout-email-suggestion-button {
    border-color: #d58a8a;
    background: #fff1f1;
    color: #7d2929;
}

.goita-mailcheck-form[data-mailcheck-focus-warning="true"] .checkout-email-suggestion-button::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3Z'/%3E%3Cpath d='M12 9v4m0 4h.01'/%3E%3C/svg%3E");
}

.goita-mailcheck-form[data-mailcheck-focus-warning="true"] .checkout-email-suggestion-button:hover,
.goita-mailcheck-form[data-mailcheck-focus-warning="true"] .checkout-email-suggestion-button:focus-visible {
    border-color: #9b4444;
    background: #ffe4e4;
}
