@lightspeed/online-payments-sdk 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/v1/stripe/shared.js +12 -6
- package/dist/cjs/v1/stripe/terms.js +16 -2
- package/dist/cjs/v1/stripe/themes.js +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/v1/stripe/shared.js +12 -6
- package/dist/v1/stripe/terms.d.ts +11 -2
- package/dist/v1/stripe/terms.js +16 -2
- package/dist/v1/stripe/themes.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/styles/lightspeed-global-styles.css +49 -18
|
@@ -144,6 +144,11 @@ function createAddressElementOptions(defaultValues) {
|
|
|
144
144
|
}
|
|
145
145
|
return addressOptions;
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Inline SVG markup for the chevron-down icon used in the expandable terms
|
|
149
|
+
* toggle. The icon is rotated 180deg via CSS when the toggle is expanded.
|
|
150
|
+
*/
|
|
151
|
+
var CHEVRON_DOWN_SVG = '<svg class="stripe-terms-chevron-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>';
|
|
147
152
|
/**
|
|
148
153
|
* Create custom Terms & Conditions element for US Bank Account payments
|
|
149
154
|
* Styling is defined in lightspeed-global-styles.css
|
|
@@ -156,25 +161,26 @@ function createCustomTermsElement() {
|
|
|
156
161
|
termsText.className = 'stripe-custom-terms-text';
|
|
157
162
|
// Build terms HTML with translatable strings
|
|
158
163
|
var stripeTermsLink = "<a href=\"".concat(terms_1.ACH_TERMS_URL.STRIPE_ACH_AUTHORIZATION, "\" target=\"_blank\" rel=\"noopener noreferrer\">").concat(terms_1.ACH_TERMS_TEXT.STRIPE_TERMS_LINK_TEXT, "</a>");
|
|
159
|
-
var expandableToggle = "<span class=\"stripe-expandable-terms-toggle\">".concat(terms_1.ACH_TERMS_TEXT.EXPANDABLE_TERMS_LINK_TEXT, "
|
|
164
|
+
var expandableToggle = "<span class=\"stripe-expandable-terms-toggle\" role=\"button\" tabindex=\"0\" aria-expanded=\"false\">".concat(terms_1.ACH_TERMS_TEXT.EXPANDABLE_TERMS_LINK_TEXT, " ").concat(CHEVRON_DOWN_SVG, "</span>");
|
|
160
165
|
termsText.innerHTML = "".concat(terms_1.ACH_TERMS_TEXT.TERMS_PREFIX, " ").concat(stripeTermsLink, " ").concat(terms_1.ACH_TERMS_TEXT.TERMS_CONJUNCTION, " ").concat(expandableToggle);
|
|
161
|
-
// Create expandable terms content
|
|
166
|
+
// Create expandable terms content from plain-text paragraphs
|
|
162
167
|
var expandableContent = document.createElement('div');
|
|
163
168
|
expandableContent.className = 'stripe-expandable-terms-content';
|
|
164
169
|
expandableContent.style.display = 'none';
|
|
165
|
-
|
|
170
|
+
var paragraphs = terms_1.ACH_TERMS_TEXT.EXPANDED_TERMS_PARAGRAPHS.map(function (text) { return "<p>".concat(text, "</p>"); }).join('');
|
|
171
|
+
var privacyLink = "<a href=\"".concat(terms_1.ACH_TERMS_URL.PRIVACY_POLICY, "\" target=\"_blank\" rel=\"noopener noreferrer\">").concat(terms_1.ACH_TERMS_TEXT.PRIVACY_POLICY_LINK_TEXT, "</a>");
|
|
172
|
+
expandableContent.innerHTML = "".concat(paragraphs, "<p>").concat(terms_1.ACH_TERMS_TEXT.EXPANDED_TERMS_PRIVACY_PREFIX, " ").concat(privacyLink, ".</p>");
|
|
166
173
|
termsContainer.appendChild(termsText);
|
|
167
174
|
termsContainer.appendChild(expandableContent);
|
|
168
175
|
// Add click handler for expandable toggle
|
|
169
176
|
var toggle = termsText.querySelector('.stripe-expandable-terms-toggle');
|
|
170
|
-
|
|
171
|
-
if (toggle && triangle) {
|
|
177
|
+
if (toggle) {
|
|
172
178
|
toggle.addEventListener('click', function (e) {
|
|
173
179
|
e.preventDefault();
|
|
174
180
|
var isExpanded = expandableContent.style.display !== 'none';
|
|
175
181
|
expandableContent.style.display = isExpanded ? 'none' : 'block';
|
|
176
|
-
triangle.textContent = isExpanded ? '▼' : '▲';
|
|
177
182
|
toggle.classList.toggle('expanded', !isExpanded);
|
|
183
|
+
toggle.setAttribute('aria-expanded', String(!isExpanded));
|
|
178
184
|
});
|
|
179
185
|
}
|
|
180
186
|
return termsContainer;
|
|
@@ -20,10 +20,24 @@ exports.ACH_TERMS_TEXT = {
|
|
|
20
20
|
EXPANDABLE_TERMS_LINK_TEXT: 'these terms',
|
|
21
21
|
/**
|
|
22
22
|
* Expanded terms content for ACH authorization.
|
|
23
|
-
*
|
|
23
|
+
* Each entry is a separate paragraph rendered when the user expands
|
|
24
|
+
* "these terms". Kept as plain text — HTML structure is built in code.
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
EXPANDED_TERMS_PARAGRAPHS: [
|
|
27
|
+
'By providing your bank account details and confirming this payment, you authorize the merchant to debit your account for the amount shown.',
|
|
28
|
+
'If you choose to save your bank account for future payments, this authorization will also apply to any amounts now or hereafter due and payable, including amounts previously invoiced, accrued, outstanding, or otherwise payable, in addition to current, and future payment obligations owed for products or services provided by the merchant, until you cancel it.',
|
|
29
|
+
'You also authorize the merchant to credit your account as necessary to correct any erroneous debits.',
|
|
30
|
+
'You may revoke authorization at any time by contacting the merchant, allowing up to thirty (30) days for processing.\nYou confirm that you are an authorized signer on the account and that sufficient funds will be available for each payment.\nACH payments may take up to five (5) business days to complete, and you may be responsible for fees if a payment is returned.',
|
|
31
|
+
],
|
|
32
|
+
/**
|
|
33
|
+
* Final paragraph containing a link to the Privacy Policy.
|
|
34
|
+
* The link text and URL are defined separately so translators only
|
|
35
|
+
* localize the surrounding copy, not the URL.
|
|
36
|
+
*/
|
|
37
|
+
EXPANDED_TERMS_PRIVACY_PREFIX: 'Lightspeed may collect or access certain payment-related information as described in the platform agreement and',
|
|
38
|
+
PRIVACY_POLICY_LINK_TEXT: 'Privacy Policy',
|
|
26
39
|
};
|
|
27
40
|
exports.ACH_TERMS_URL = {
|
|
28
41
|
STRIPE_ACH_AUTHORIZATION: 'https://stripe.com/legal/ach-payments/authorization',
|
|
42
|
+
PRIVACY_POLICY: 'https://www.lightspeedhq.com/legal/privacy-policy/',
|
|
29
43
|
};
|
|
@@ -42,7 +42,7 @@ function ensureThemeStylesheet() {
|
|
|
42
42
|
}
|
|
43
43
|
var styleElement = document.createElement('style');
|
|
44
44
|
styleElement.id = THEME_STYLESHEET_ID;
|
|
45
|
-
styleElement.textContent = "\n /* Dark theme styles for the mount element */\n .lsp-theme-dark {\n background-color: ".concat(exports.THEME_COLORS.DARK.BACKGROUND, " !important;\n color: ").concat(exports.THEME_COLORS.DARK.TEXT, " !important;\n }\n /* Dark theme styles for Stripe custom terms elements */\n .lsp-theme-dark .stripe-terms-
|
|
45
|
+
styleElement.textContent = "\n /* Dark theme styles for the mount element */\n .lsp-theme-dark {\n background-color: ".concat(exports.THEME_COLORS.DARK.BACKGROUND, " !important;\n color: ").concat(exports.THEME_COLORS.DARK.TEXT, " !important;\n }\n /* Dark theme styles for Stripe custom terms elements */\n .lsp-theme-dark .stripe-terms-chevron-icon {\n color: ").concat(exports.THEME_COLORS.DARK.TEXT, " !important;\n }\n .lsp-theme-dark .stripe-custom-terms-text {\n color: ").concat(exports.THEME_COLORS.DARK.TEXT, " !important;\n }\n .lsp-theme-dark .stripe-expandable-terms-content p {\n color: ").concat(exports.THEME_COLORS.DARK.TEXT, " !important;\n }\n ");
|
|
46
46
|
document.head.appendChild(styleElement);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
@@ -88,7 +88,7 @@ function getThemeConfig(theme) {
|
|
|
88
88
|
appearance: {
|
|
89
89
|
theme: 'night',
|
|
90
90
|
},
|
|
91
|
-
fonts: []
|
|
91
|
+
fonts: [],
|
|
92
92
|
};
|
|
93
93
|
default:
|
|
94
94
|
return undefined;
|
package/dist/cjs/version.js
CHANGED
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SDK_VERSION = void 0;
|
|
4
4
|
// This file is auto-generated during the build process
|
|
5
5
|
// DO NOT EDIT MANUALLY - Version is extracted from package.json
|
|
6
|
-
exports.SDK_VERSION = '1.4.
|
|
6
|
+
exports.SDK_VERSION = '1.4.2';
|
package/dist/v1/stripe/shared.js
CHANGED
|
@@ -132,6 +132,11 @@ export function createAddressElementOptions(defaultValues) {
|
|
|
132
132
|
}
|
|
133
133
|
return addressOptions;
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Inline SVG markup for the chevron-down icon used in the expandable terms
|
|
137
|
+
* toggle. The icon is rotated 180deg via CSS when the toggle is expanded.
|
|
138
|
+
*/
|
|
139
|
+
var CHEVRON_DOWN_SVG = '<svg class="stripe-terms-chevron-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>';
|
|
135
140
|
/**
|
|
136
141
|
* Create custom Terms & Conditions element for US Bank Account payments
|
|
137
142
|
* Styling is defined in lightspeed-global-styles.css
|
|
@@ -144,25 +149,26 @@ function createCustomTermsElement() {
|
|
|
144
149
|
termsText.className = 'stripe-custom-terms-text';
|
|
145
150
|
// Build terms HTML with translatable strings
|
|
146
151
|
var stripeTermsLink = "<a href=\"".concat(ACH_TERMS_URL.STRIPE_ACH_AUTHORIZATION, "\" target=\"_blank\" rel=\"noopener noreferrer\">").concat(ACH_TERMS_TEXT.STRIPE_TERMS_LINK_TEXT, "</a>");
|
|
147
|
-
var expandableToggle = "<span class=\"stripe-expandable-terms-toggle\">".concat(ACH_TERMS_TEXT.EXPANDABLE_TERMS_LINK_TEXT, "
|
|
152
|
+
var expandableToggle = "<span class=\"stripe-expandable-terms-toggle\" role=\"button\" tabindex=\"0\" aria-expanded=\"false\">".concat(ACH_TERMS_TEXT.EXPANDABLE_TERMS_LINK_TEXT, " ").concat(CHEVRON_DOWN_SVG, "</span>");
|
|
148
153
|
termsText.innerHTML = "".concat(ACH_TERMS_TEXT.TERMS_PREFIX, " ").concat(stripeTermsLink, " ").concat(ACH_TERMS_TEXT.TERMS_CONJUNCTION, " ").concat(expandableToggle);
|
|
149
|
-
// Create expandable terms content
|
|
154
|
+
// Create expandable terms content from plain-text paragraphs
|
|
150
155
|
var expandableContent = document.createElement('div');
|
|
151
156
|
expandableContent.className = 'stripe-expandable-terms-content';
|
|
152
157
|
expandableContent.style.display = 'none';
|
|
153
|
-
|
|
158
|
+
var paragraphs = ACH_TERMS_TEXT.EXPANDED_TERMS_PARAGRAPHS.map(function (text) { return "<p>".concat(text, "</p>"); }).join('');
|
|
159
|
+
var privacyLink = "<a href=\"".concat(ACH_TERMS_URL.PRIVACY_POLICY, "\" target=\"_blank\" rel=\"noopener noreferrer\">").concat(ACH_TERMS_TEXT.PRIVACY_POLICY_LINK_TEXT, "</a>");
|
|
160
|
+
expandableContent.innerHTML = "".concat(paragraphs, "<p>").concat(ACH_TERMS_TEXT.EXPANDED_TERMS_PRIVACY_PREFIX, " ").concat(privacyLink, ".</p>");
|
|
154
161
|
termsContainer.appendChild(termsText);
|
|
155
162
|
termsContainer.appendChild(expandableContent);
|
|
156
163
|
// Add click handler for expandable toggle
|
|
157
164
|
var toggle = termsText.querySelector('.stripe-expandable-terms-toggle');
|
|
158
|
-
|
|
159
|
-
if (toggle && triangle) {
|
|
165
|
+
if (toggle) {
|
|
160
166
|
toggle.addEventListener('click', function (e) {
|
|
161
167
|
e.preventDefault();
|
|
162
168
|
var isExpanded = expandableContent.style.display !== 'none';
|
|
163
169
|
expandableContent.style.display = isExpanded ? 'none' : 'block';
|
|
164
|
-
triangle.textContent = isExpanded ? '▼' : '▲';
|
|
165
170
|
toggle.classList.toggle('expanded', !isExpanded);
|
|
171
|
+
toggle.setAttribute('aria-expanded', String(!isExpanded));
|
|
166
172
|
});
|
|
167
173
|
}
|
|
168
174
|
return termsContainer;
|
|
@@ -17,10 +17,19 @@ export declare const ACH_TERMS_TEXT: {
|
|
|
17
17
|
readonly EXPANDABLE_TERMS_LINK_TEXT: "these terms";
|
|
18
18
|
/**
|
|
19
19
|
* Expanded terms content for ACH authorization.
|
|
20
|
-
*
|
|
20
|
+
* Each entry is a separate paragraph rendered when the user expands
|
|
21
|
+
* "these terms". Kept as plain text — HTML structure is built in code.
|
|
21
22
|
*/
|
|
22
|
-
readonly
|
|
23
|
+
readonly EXPANDED_TERMS_PARAGRAPHS: readonly ["By providing your bank account details and confirming this payment, you authorize the merchant to debit your account for the amount shown.", "If you choose to save your bank account for future payments, this authorization will also apply to any amounts now or hereafter due and payable, including amounts previously invoiced, accrued, outstanding, or otherwise payable, in addition to current, and future payment obligations owed for products or services provided by the merchant, until you cancel it.", "You also authorize the merchant to credit your account as necessary to correct any erroneous debits.", "You may revoke authorization at any time by contacting the merchant, allowing up to thirty (30) days for processing.\nYou confirm that you are an authorized signer on the account and that sufficient funds will be available for each payment.\nACH payments may take up to five (5) business days to complete, and you may be responsible for fees if a payment is returned."];
|
|
24
|
+
/**
|
|
25
|
+
* Final paragraph containing a link to the Privacy Policy.
|
|
26
|
+
* The link text and URL are defined separately so translators only
|
|
27
|
+
* localize the surrounding copy, not the URL.
|
|
28
|
+
*/
|
|
29
|
+
readonly EXPANDED_TERMS_PRIVACY_PREFIX: "Lightspeed may collect or access certain payment-related information as described in the platform agreement and";
|
|
30
|
+
readonly PRIVACY_POLICY_LINK_TEXT: "Privacy Policy";
|
|
23
31
|
};
|
|
24
32
|
export declare const ACH_TERMS_URL: {
|
|
25
33
|
readonly STRIPE_ACH_AUTHORIZATION: "https://stripe.com/legal/ach-payments/authorization";
|
|
34
|
+
readonly PRIVACY_POLICY: "https://www.lightspeedhq.com/legal/privacy-policy/";
|
|
26
35
|
};
|
package/dist/v1/stripe/terms.js
CHANGED
|
@@ -17,10 +17,24 @@ export var ACH_TERMS_TEXT = {
|
|
|
17
17
|
EXPANDABLE_TERMS_LINK_TEXT: 'these terms',
|
|
18
18
|
/**
|
|
19
19
|
* Expanded terms content for ACH authorization.
|
|
20
|
-
*
|
|
20
|
+
* Each entry is a separate paragraph rendered when the user expands
|
|
21
|
+
* "these terms". Kept as plain text — HTML structure is built in code.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
EXPANDED_TERMS_PARAGRAPHS: [
|
|
24
|
+
'By providing your bank account details and confirming this payment, you authorize the merchant to debit your account for the amount shown.',
|
|
25
|
+
'If you choose to save your bank account for future payments, this authorization will also apply to any amounts now or hereafter due and payable, including amounts previously invoiced, accrued, outstanding, or otherwise payable, in addition to current, and future payment obligations owed for products or services provided by the merchant, until you cancel it.',
|
|
26
|
+
'You also authorize the merchant to credit your account as necessary to correct any erroneous debits.',
|
|
27
|
+
'You may revoke authorization at any time by contacting the merchant, allowing up to thirty (30) days for processing.\nYou confirm that you are an authorized signer on the account and that sufficient funds will be available for each payment.\nACH payments may take up to five (5) business days to complete, and you may be responsible for fees if a payment is returned.',
|
|
28
|
+
],
|
|
29
|
+
/**
|
|
30
|
+
* Final paragraph containing a link to the Privacy Policy.
|
|
31
|
+
* The link text and URL are defined separately so translators only
|
|
32
|
+
* localize the surrounding copy, not the URL.
|
|
33
|
+
*/
|
|
34
|
+
EXPANDED_TERMS_PRIVACY_PREFIX: 'Lightspeed may collect or access certain payment-related information as described in the platform agreement and',
|
|
35
|
+
PRIVACY_POLICY_LINK_TEXT: 'Privacy Policy',
|
|
23
36
|
};
|
|
24
37
|
export var ACH_TERMS_URL = {
|
|
25
38
|
STRIPE_ACH_AUTHORIZATION: 'https://stripe.com/legal/ach-payments/authorization',
|
|
39
|
+
PRIVACY_POLICY: 'https://www.lightspeedhq.com/legal/privacy-policy/',
|
|
26
40
|
};
|
package/dist/v1/stripe/themes.js
CHANGED
|
@@ -36,7 +36,7 @@ function ensureThemeStylesheet() {
|
|
|
36
36
|
}
|
|
37
37
|
var styleElement = document.createElement('style');
|
|
38
38
|
styleElement.id = THEME_STYLESHEET_ID;
|
|
39
|
-
styleElement.textContent = "\n /* Dark theme styles for the mount element */\n .lsp-theme-dark {\n background-color: ".concat(THEME_COLORS.DARK.BACKGROUND, " !important;\n color: ").concat(THEME_COLORS.DARK.TEXT, " !important;\n }\n /* Dark theme styles for Stripe custom terms elements */\n .lsp-theme-dark .stripe-terms-
|
|
39
|
+
styleElement.textContent = "\n /* Dark theme styles for the mount element */\n .lsp-theme-dark {\n background-color: ".concat(THEME_COLORS.DARK.BACKGROUND, " !important;\n color: ").concat(THEME_COLORS.DARK.TEXT, " !important;\n }\n /* Dark theme styles for Stripe custom terms elements */\n .lsp-theme-dark .stripe-terms-chevron-icon {\n color: ").concat(THEME_COLORS.DARK.TEXT, " !important;\n }\n .lsp-theme-dark .stripe-custom-terms-text {\n color: ").concat(THEME_COLORS.DARK.TEXT, " !important;\n }\n .lsp-theme-dark .stripe-expandable-terms-content p {\n color: ").concat(THEME_COLORS.DARK.TEXT, " !important;\n }\n ");
|
|
40
40
|
document.head.appendChild(styleElement);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
@@ -82,7 +82,7 @@ export function getThemeConfig(theme) {
|
|
|
82
82
|
appearance: {
|
|
83
83
|
theme: 'night',
|
|
84
84
|
},
|
|
85
|
-
fonts: []
|
|
85
|
+
fonts: [],
|
|
86
86
|
};
|
|
87
87
|
default:
|
|
88
88
|
return undefined;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.4.
|
|
1
|
+
export declare const SDK_VERSION = "1.4.2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
1
|
@import '@adyen/adyen-web/styles/adyen.css';
|
|
2
2
|
|
|
3
|
-
/* Custom Terms & Conditions for US Bank Account (ACH) payments
|
|
3
|
+
/* Custom Terms & Conditions for US Bank Account (ACH) payments.
|
|
4
|
+
Values are chosen to match Stripe's PaymentElement checkbox label
|
|
5
|
+
("Save payment details for future purchases") which renders inside
|
|
6
|
+
an iframe with its own typography. */
|
|
7
|
+
|
|
4
8
|
.stripe-custom-terms-container {
|
|
5
|
-
margin-top: 12px;
|
|
6
9
|
padding: 0;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
.stripe-custom-terms-text {
|
|
10
|
-
margin: 0;
|
|
11
|
-
font-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
13
|
+
margin: 16px 0 0 0;
|
|
14
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
|
15
|
+
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
16
|
+
font-size: 0.93rem;
|
|
15
17
|
font-weight: 400;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
color: #30313d;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
|
-
.stripe-custom-terms-text a
|
|
22
|
+
.stripe-custom-terms-text a,
|
|
23
|
+
.stripe-expandable-terms-content a {
|
|
19
24
|
color: #635bff;
|
|
20
25
|
text-decoration: underline;
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
/* Expandable terms toggle */
|
|
24
28
|
.stripe-expandable-terms-toggle {
|
|
25
29
|
color: #635bff;
|
|
26
30
|
cursor: pointer;
|
|
27
31
|
text-decoration: underline;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
gap: 4px;
|
|
35
|
+
user-select: none;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
.stripe-terms-
|
|
38
|
+
.stripe-terms-chevron-icon {
|
|
31
39
|
display: inline-block;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
40
|
+
width: 12px;
|
|
41
|
+
height: 12px;
|
|
42
|
+
transition: transform 150ms ease;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.stripe-expandable-terms-toggle.expanded .stripe-terms-chevron-icon {
|
|
47
|
+
transform: rotate(180deg);
|
|
35
48
|
}
|
|
36
49
|
|
|
37
|
-
/* Expandable terms content */
|
|
38
50
|
.stripe-expandable-terms-content {
|
|
39
51
|
margin-top: 8px;
|
|
40
52
|
padding: 0;
|
|
@@ -42,13 +54,32 @@
|
|
|
42
54
|
|
|
43
55
|
.stripe-expandable-terms-content p {
|
|
44
56
|
margin: 0 0 8px 0;
|
|
45
|
-
font-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
57
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
|
58
|
+
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
59
|
+
font-size: 0.93rem;
|
|
49
60
|
font-weight: 400;
|
|
61
|
+
line-height: 1.5;
|
|
62
|
+
color: #30313d;
|
|
50
63
|
}
|
|
51
64
|
|
|
52
65
|
.stripe-expandable-terms-content p:last-child {
|
|
53
66
|
margin-bottom: 0;
|
|
54
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Invoicing theme: only override font-family to match the Inter font
|
|
70
|
+
passed to Stripe Elements via the invoicing theme config. */
|
|
71
|
+
|
|
72
|
+
.lsp-theme-invoicing {
|
|
73
|
+
padding-bottom: 0 !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lsp-theme-invoicing .stripe-custom-terms-text,
|
|
77
|
+
.lsp-theme-invoicing .stripe-expandable-terms-content p {
|
|
78
|
+
font-family: 'Inter', system-ui, sans-serif;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.lsp-theme-invoicing .stripe-custom-terms-text a,
|
|
82
|
+
.lsp-theme-invoicing .stripe-expandable-terms-toggle,
|
|
83
|
+
.lsp-theme-invoicing .stripe-expandable-terms-content a {
|
|
84
|
+
color: var(--accent-9, #635bff);
|
|
85
|
+
}
|