|
| 1 | +/* Classic Checkout Styles - For WooCommerce Classic Checkout Only */ |
| 2 | +#payment input[type="email"], |
| 3 | +#payment input[type="number"], |
| 4 | +#payment input[type="password"], |
| 5 | +#payment input[type="tel"], |
| 6 | +#payment input[type="text"], |
| 7 | +#payment input[type="url"] { |
| 8 | + font-size: 16px; |
| 9 | + height: 50px; |
| 10 | +} |
| 11 | + |
| 12 | +label .monei-icons-cc { |
| 13 | + margin-left: 15px; |
| 14 | + margin-right: 0; |
| 15 | + padding-right: 0; |
| 16 | + max-height: 28px !important; |
| 17 | + max-width: 258px !important; |
| 18 | +} |
| 19 | + |
| 20 | +label .monei-icons-multi { |
| 21 | + margin-left: 15px; |
| 22 | + margin-right: 0; |
| 23 | + padding-right: 0; |
| 24 | + max-height: 28px !important; |
| 25 | + max-width: 128px !important; |
| 26 | +} |
| 27 | + |
| 28 | +label .monei-icons { |
| 29 | + margin-left: 15px; |
| 30 | + margin-right: 0; |
| 31 | + padding-right: 0; |
| 32 | + max-height: 28px !important; |
| 33 | + max-width: 80px !important; |
| 34 | +} |
| 35 | + |
| 36 | +.monei-icons svg { |
| 37 | + width: auto; |
| 38 | +} |
| 39 | + |
| 40 | +/* Applies to the apple/google button in classic checkout */ |
| 41 | +#wc-monei-payment-request-form { |
| 42 | + border: none; |
| 43 | + padding: 0 !important; |
| 44 | + margin: 0 !important; |
| 45 | +} |
| 46 | + |
| 47 | +/* Card Input Container */ |
| 48 | +.monei-card-input { |
| 49 | + transition: border-color 0.2s ease; |
| 50 | + background-color: #fff; |
| 51 | + border: 1px solid hsla(0, 0%, 7%, 0.8); |
| 52 | + border-radius: 4px; |
| 53 | + box-sizing: border-box; |
| 54 | + color: #2b2d2f; |
| 55 | + font-family: inherit; |
| 56 | + font-size: 16px; |
| 57 | + height: 50px; |
| 58 | + line-height: 1; |
| 59 | + margin: 0 0 12px 0; |
| 60 | + min-height: 0; |
| 61 | + padding: 0; |
| 62 | + width: 100%; |
| 63 | +} |
| 64 | + |
| 65 | +.monei-card-input.is-focused { |
| 66 | + border-color: #007cba; |
| 67 | + box-shadow: 0 0 0 1px #007cba; |
| 68 | +} |
| 69 | + |
| 70 | +.monei-card-input.is-invalid { |
| 71 | + border-color: #cc1818; |
| 72 | +} |
| 73 | + |
| 74 | +/* Cardholder Name Input */ |
| 75 | +.monei-input { |
| 76 | + background-color: #fff; |
| 77 | + border: 1px solid hsla(0, 0%, 7%, 0.8); |
| 78 | + border-radius: 4px; |
| 79 | + box-sizing: border-box; |
| 80 | + color: #2b2d2f; |
| 81 | + font-family: inherit; |
| 82 | + font-size: 16px; |
| 83 | + height: 50px; |
| 84 | + line-height: 1; |
| 85 | + margin: 0; |
| 86 | + min-height: 0; |
| 87 | + padding: 16px 8px; |
| 88 | + width: 100%; |
| 89 | +} |
| 90 | + |
| 91 | +.monei-input:focus { |
| 92 | + outline: none; |
| 93 | + border-color: #007cba; |
| 94 | + box-shadow: 0 0 0 1px #007cba; |
| 95 | +} |
| 96 | + |
| 97 | +.monei-input.has-error { |
| 98 | + border-color: #cc1818; |
| 99 | +} |
| 100 | + |
| 101 | +.monei-input:disabled { |
| 102 | + background-color: #f5f5f5; |
| 103 | + cursor: not-allowed; |
| 104 | +} |
| 105 | + |
| 106 | +/* Payment Request Container */ |
| 107 | +.monei-payment-request-container { |
| 108 | + min-height: 50px; |
| 109 | + justify-content: center; |
| 110 | + background: #fff; |
| 111 | + width: 100%; |
| 112 | + margin: 8px 0 0; |
| 113 | +} |
| 114 | + |
| 115 | +/* Label Container */ |
| 116 | +.monei-label-container { |
| 117 | + display: flex; |
| 118 | + align-items: center; |
| 119 | + gap: 16px; |
| 120 | +} |
| 121 | + |
| 122 | +.monei-text { |
| 123 | + font-weight: 500; |
| 124 | + white-space: nowrap; |
| 125 | +} |
| 126 | + |
| 127 | +.monei-card-brands { |
| 128 | + float: right; |
| 129 | + display: inline-flex; |
| 130 | + align-items: center; |
| 131 | + gap: 5px; |
| 132 | + flex-wrap: wrap; |
| 133 | +} |
| 134 | + |
| 135 | +.monei-card-brands img, |
| 136 | +.card-brand-icon { |
| 137 | + height: 24px !important; |
| 138 | + width: auto !important; |
| 139 | + display: inline-block !important; |
| 140 | + margin: 0 !important; |
| 141 | +} |
| 142 | + |
| 143 | +.monei-logo { |
| 144 | + display: inline-flex; |
| 145 | + align-items: center; |
| 146 | +} |
| 147 | + |
| 148 | +.monei-logo img { |
| 149 | + height: 24px; |
| 150 | + width: auto; |
| 151 | +} |
| 152 | + |
| 153 | +/* Fieldset */ |
| 154 | +.monei-fieldset { |
| 155 | + background: none; |
| 156 | + border: none; |
| 157 | + padding: 0; |
| 158 | + margin: 0; |
| 159 | +} |
| 160 | + |
| 161 | +.monei-card-fieldset { |
| 162 | + margin-top: 12px; |
| 163 | +} |
| 164 | + |
| 165 | +/* Loading State */ |
| 166 | +.monei-loading { |
| 167 | + text-align: center; |
| 168 | + padding: 20px; |
| 169 | + color: #666; |
| 170 | +} |
| 171 | + |
| 172 | +/* Processing State */ |
| 173 | +.monei-processing { |
| 174 | + opacity: 0.6; |
| 175 | + pointer-events: none; |
| 176 | +} |
| 177 | + |
| 178 | +/* Animation for smooth transitions */ |
| 179 | +.monei-input-container { |
| 180 | + position: relative; |
| 181 | + margin: 0 0 16px 0 !important; |
| 182 | +} |
| 183 | + |
| 184 | +/* Responsive Design */ |
| 185 | +@media (max-width: 480px) { |
| 186 | + |
| 187 | + .monei-input, |
| 188 | + .monei-card-input { |
| 189 | + font-size: 16px; |
| 190 | + |
| 191 | + /* Prevents zoom on iOS */ |
| 192 | + } |
| 193 | + |
| 194 | + .monei-payment-request-container { |
| 195 | + min-height: 60px; |
| 196 | + } |
| 197 | + |
| 198 | + .monei-card-brands { |
| 199 | + float: none; |
| 200 | + margin-top: 5px; |
| 201 | + } |
| 202 | + |
| 203 | + .monei-label-container { |
| 204 | + flex-direction: column; |
| 205 | + align-items: flex-start; |
| 206 | + gap: 5px; |
| 207 | + } |
| 208 | +} |
0 commit comments