| 1 |
/** |
| 2 |
* Double Opt-In — Error Notification Toast |
| 3 |
* |
| 4 |
* @since 4.2.0 |
| 5 |
*/ |
| 6 |
|
| 7 |
.doi-error-notification { |
| 8 |
position: fixed; |
| 9 |
bottom: 24px; |
| 10 |
left: 50%; |
| 11 |
transform: translateX(-50%) translateY(20px); |
| 12 |
z-index: 999999; |
| 13 |
max-width: 480px; |
| 14 |
width: calc(100% - 32px); |
| 15 |
opacity: 0; |
| 16 |
transition: opacity 0.3s ease, transform 0.3s ease; |
| 17 |
pointer-events: none; |
| 18 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
| 19 |
} |
| 20 |
|
| 21 |
.doi-error-notification--visible { |
| 22 |
opacity: 1; |
| 23 |
transform: translateX(-50%) translateY(0); |
| 24 |
pointer-events: auto; |
| 25 |
} |
| 26 |
|
| 27 |
.doi-error-notification--exit { |
| 28 |
opacity: 0; |
| 29 |
transform: translateX(-50%) translateY(20px); |
| 30 |
} |
| 31 |
|
| 32 |
.doi-error-notification__content { |
| 33 |
display: flex; |
| 34 |
align-items: flex-start; |
| 35 |
gap: 12px; |
| 36 |
padding: 16px 20px; |
| 37 |
background: #fff; |
| 38 |
border: 1px solid #e2e2e2; |
| 39 |
border-left: 4px solid #d63638; |
| 40 |
border-radius: 4px; |
| 41 |
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); |
| 42 |
} |
| 43 |
|
| 44 |
.doi-error-notification__icon { |
| 45 |
flex-shrink: 0; |
| 46 |
font-size: 20px; |
| 47 |
line-height: 1; |
| 48 |
color: #d63638; |
| 49 |
} |
| 50 |
|
| 51 |
.doi-error-notification__message { |
| 52 |
flex: 1; |
| 53 |
margin: 0; |
| 54 |
padding: 0; |
| 55 |
font-size: 14px; |
| 56 |
line-height: 1.5; |
| 57 |
color: #1e1e1e; |
| 58 |
} |
| 59 |
|
| 60 |
.doi-error-notification__close { |
| 61 |
flex-shrink: 0; |
| 62 |
background: none; |
| 63 |
border: none; |
| 64 |
cursor: pointer; |
| 65 |
font-size: 20px; |
| 66 |
line-height: 1; |
| 67 |
color: #757575; |
| 68 |
padding: 0; |
| 69 |
margin: -4px -4px 0 0; |
| 70 |
} |
| 71 |
|
| 72 |
.doi-error-notification__close:hover { |
| 73 |
color: #1e1e1e; |
| 74 |
} |
| 75 |
|
| 76 |
/* Success variant — green accent + check icon. Used for the confirmation |
| 77 |
toast on integrations that die() early (Avada) and so can't show the |
| 78 |
form plugin's own "email sent" message. */ |
| 79 |
.doi-error-notification--success .doi-error-notification__content { |
| 80 |
border-left-color: #00a32a; |
| 81 |
} |
| 82 |
|
| 83 |
.doi-error-notification--success .doi-error-notification__icon { |
| 84 |
color: #00a32a; |
| 85 |
} |
| 86 |
|