wickes-css2 2.103.0-gift-cards.17 → 2.103.0-lg-788-no-extra-req-empty-cart.1

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.
Files changed (126) hide show
  1. package/Readme.md +2 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/checkout-payment-details-v2.css +1 -1
  4. package/build/css/homepage-main.css +1 -1
  5. package/build/css/kitchen-plp-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/page_checkout_delivery-new.css +1 -1
  10. package/build/css/pages/page_product-details-v2.css +1 -1
  11. package/build/css/pdp-main-before-combine.css +1 -1
  12. package/build/css/pdp-main-non-critical.css +1 -1
  13. package/build/css/pdp-main.css +1 -1
  14. package/build/css/plp-main.css +1 -1
  15. package/build/css/store-locator-main.css +1 -1
  16. package/build/js/account-members.min.js +1 -1
  17. package/build/js/add-project-list-id.min.js +1 -1
  18. package/build/js/address-book.min.js +1 -1
  19. package/build/js/basket.min.js +2 -2
  20. package/build/js/bundle.min.js +1 -1
  21. package/build/js/change-password.min.js +1 -1
  22. package/build/js/checkout.min.js +2 -2
  23. package/build/js/emulation.min.js +970 -282
  24. package/build/js/general.bundle.min.js +1 -1
  25. package/build/js/merged-checkout.min.js +2 -2
  26. package/build/js/mini-basket-slider.min.js +1 -0
  27. package/build/js/page/basket/basket-update-cart-action.js +59 -0
  28. package/build/js/page/basket/basket-update-cart.js +29 -0
  29. package/build/js/page/basket/basket-utils.js +50 -0
  30. package/build/js/page/basket/mini-basket-total.js +97 -0
  31. package/build/js/page/basket/quantity-change-handler.js +64 -0
  32. package/build/js/page/basket/update-quantity-operation.js +37 -0
  33. package/build/js/page/basket/update-quantity.js +65 -0
  34. package/build/js/page/basket-v2.js +138 -244
  35. package/build/js/page/components/discounts.js +6 -6
  36. package/build/js/page/components/mini-basket-slider.js +569 -0
  37. package/build/js/page/components/order-summary.js +25 -42
  38. package/build/js/page/utils/validation.js +1 -46
  39. package/build/js/pdp.bundle.min.js +1 -1
  40. package/build/js/personal-details.min.js +1 -1
  41. package/build/js/plp.bundle.min.js +1 -1
  42. package/build/js/project-list.min.js +1 -44
  43. package/build/js/quiz.min.js +1 -1
  44. package/build/js/track-my-order.min.js +1 -1
  45. package/package.json +2 -2
  46. package/src/components/checkout-payment-details-v2.hbs +11 -10
  47. package/src/components/checkout_payment-new.hbs +4 -1
  48. package/src/components/checkout_payment-other-methods.hbs +4 -1
  49. package/src/components/mini-basket/mini-basket-empty.hbs +3 -13
  50. package/src/components/mini-basket/mini-basket-order-item.hbs +73 -0
  51. package/src/components/mini-basket/mini-basket.hbs +32 -13
  52. package/src/components/mini-basket/product-item.hbs +37 -16
  53. package/src/components/payments-checkout-v2.hbs +7 -2
  54. package/src/components/payments-checkout.hbs +6 -1
  55. package/src/components/payments.hbs +5 -1
  56. package/src/components/table_order-details-klarna.hbs +1 -1
  57. package/src/components/table_payment.hbs +4 -1
  58. package/src/data/data_confirmation-summary.json +4 -2
  59. package/src/data/data_mini-basket.json +4 -80
  60. package/src/data/data_wismo.json +1 -1
  61. package/src/elements/form-row.hbs +1 -1
  62. package/src/elements/input.hbs +2 -31
  63. package/src/js/components/general/cart-slider.js +4 -0
  64. package/src/js/components/general/create-popup-slider.js +5 -2
  65. package/src/js/components/general/notification.js +1 -2
  66. package/src/js/components/toggle-password-visibility.js +58 -0
  67. package/src/js/emulation/checkout-payment-details.js +14 -23
  68. package/src/js/emulation/custom-slider-emulation.js +4 -10
  69. package/src/js/emulation/forms.js +2 -7
  70. package/src/js/emulation/mini-basket-data.js +949 -0
  71. package/src/js/page/basket/basket-update-cart-action.js +59 -0
  72. package/src/js/page/basket/basket-update-cart.js +29 -0
  73. package/src/js/page/basket/basket-utils.js +50 -0
  74. package/src/js/page/basket/mini-basket-total.js +97 -0
  75. package/src/js/page/basket/quantity-change-handler.js +64 -0
  76. package/src/js/page/basket/update-quantity-operation.js +37 -0
  77. package/src/js/page/basket/update-quantity.js +65 -0
  78. package/src/js/page/basket-v2.js +138 -244
  79. package/src/js/page/components/discounts.js +6 -6
  80. package/src/js/page/components/mini-basket-slider.js +569 -0
  81. package/src/js/page/components/order-summary.js +25 -42
  82. package/src/js/page/utils/validation.js +1 -46
  83. package/src/layouts/base.hbs +0 -6
  84. package/src/layouts/checkout.hbs +5 -1
  85. package/src/page_checkout_payment-details_guest-with-checkout-journey.html +1 -1
  86. package/src/page_my-account_change-password.html +0 -1
  87. package/src/page_my-order.html +1 -1
  88. package/src/page_payment-details-with-clearpay.html +2 -2
  89. package/src/page_payment-details-with-gift-card.html +5 -8
  90. package/src/page_shopping-cart-v2.html +2 -2
  91. package/src/page_split-orders-klarna.html +106 -0
  92. package/src/partials/scripts.hbs +1 -0
  93. package/src/scss/components/_custom-slider.scss +131 -3
  94. package/src/scss/components/_popover-mini-basket.scss +0 -4
  95. package/src/scss/components/checkout-payment-details-v2.scss +0 -2
  96. package/src/scss/pages/page_checkout_delivery-new.scss +0 -26
  97. package/src/scss/pages/page_product-details-v2.scss +0 -4
  98. package/src/sitemap.html +6 -0
  99. package/build/img/giftcard.svg +0 -28
  100. package/build/img/klarna.svg +0 -10
  101. package/build/img/payment/checkout/klarna.svg +0 -10
  102. package/build/img/payment/footer/klarna.svg +0 -10
  103. package/build/js/gift-cards.min.js +0 -1
  104. package/build/js/page/components/gift-cards.js +0 -894
  105. package/build/js/page/components/toggle-password-visibility.js +0 -22
  106. package/build/js/page/utils/gift-cards-utils.js +0 -170
  107. package/build/js/page/utils/input-handling.js +0 -92
  108. package/build/js/page/utils/show-hide-input.js +0 -28
  109. package/build/js/toggle-password-visibility.min.js +0 -1
  110. package/src/components/gift-cards-hint.hbs +0 -9
  111. package/src/components/gift-cards.hbs +0 -90
  112. package/src/components/giftcard-chip.hbs +0 -23
  113. package/src/components/giftcard-summary.hbs +0 -6
  114. package/src/img/giftcard.svg +0 -28
  115. package/src/img/klarna.svg +0 -10
  116. package/src/img/payment/checkout/klarna.svg +0 -10
  117. package/src/img/payment/footer/klarna.svg +0 -10
  118. package/src/js/components/general/mini-basket-slider.js +0 -8
  119. package/src/js/emulation/checkout-data.js +0 -35
  120. package/src/js/emulation/gift-cards.js +0 -205
  121. package/src/js/page/components/gift-cards.js +0 -894
  122. package/src/js/page/components/toggle-password-visibility.js +0 -22
  123. package/src/js/page/utils/gift-cards-utils.js +0 -170
  124. package/src/js/page/utils/input-handling.js +0 -92
  125. package/src/js/page/utils/show-hide-input.js +0 -28
  126. package/src/scss/components/_gift-cards.scss +0 -360
@@ -1,22 +0,0 @@
1
- import { initializeInputToggle } from "../utils/show-hide-input";
2
-
3
- var Wick = window.Wick || {};
4
-
5
- Wick.TogglePasswordVisibility = {
6
- el: {
7
- $containers: $('.form-row[data-show-content] .input-wrap'),
8
- },
9
-
10
- init() {
11
- if (!this.el.$containers.length) {
12
- return;
13
- }
14
- this.el.$containers.each(function () {
15
- initializeInputToggle($(this));
16
- });
17
- },
18
- };
19
-
20
- $(document).ready(function () {
21
- Wick.TogglePasswordVisibility.init();
22
- });
@@ -1,170 +0,0 @@
1
- import { showLoader, hideLoader } from "./loader";
2
-
3
- const SUMMARY_SELECTORS = {
4
- subTotal: { item: '.checkout-widget__item-bold', value: '.checkout-widget__item-value', title: 'Items subtotal:' },
5
- vat: { item: '.checkout-widget__item-vat', value: '.checkout-widget__item-value', title: 'VAT:' },
6
- clickAndCollectCost: { item: '.checkout-widget__item-cc', value: '.checkout-widget__item-value', title: 'Click & Collect:' },
7
- deliveryCost: { item: '.checkout-widget__item-delivery', value: '.checkout-widget__item-value', title: 'Delivery:' },
8
- charityPrice: { item: '.checkout-widget__item-charity', value: '.checkout-widget__item-value', title: 'Charity donation:' },
9
- discountTotal: { item: '.checkout-widget__details-discount', value: '.checkout-widget__detail-value' },
10
- giftCardApplied: { item: '.checkout-widget__gift-card', value: '.checkout-widget__item-value', title: 'Gift Card:' },
11
- total: { item: '.checkout-widget__total', value: '.checkout-widget__total-value' },
12
- };
13
-
14
- const CURRENCY_KEYS = new Set([
15
- 'subTotal','vat','clickAndCollectCost','deliveryCost',
16
- 'charityPrice','discountTotal','total','giftCardApplied'
17
- ]);
18
-
19
- const GIFT_CARD_ALREADY_ADDED = 'GIFT_CARD_ALREADY_ADDED';
20
- const PIS_REQUEST_TIMEOUT = 'PIS-REQUEST-TIMEOUT';
21
- const PIS_INTEGRATION_ERROR = 'PIS-INTEGRATION-ERROR';
22
- const HYBRIS_REQUEST_TIMEOUT = 'HYBRIS-REQUEST-TIMEOUT';
23
- const HYBRIS_PIS_INTEGRATION_ERROR = 'HYBRIS-PIS-INTEGRATION-ERROR';
24
- const ZERO_BALANCE = 'ZERO_BALANCE'
25
-
26
- export const DEFAULT_ERROR_MESSAGE =
27
- 'Unable to use Gift Card at this time, please try later or click here for support.';
28
-
29
- export const OK_CODE = 0;
30
-
31
- export const MESSAGE_BY_CODE = {
32
- 10: 'Gift Card number and / or PIN not recognised. A Gift Card will be locked following three unsuccessful PIN attempts.',
33
- 16: 'Card locked due to three unsuccessful PIN entries. For support click here.',
34
- 20: 'Unable to use Gift Card at this time, please try later or click here for support.',
35
- 21: 'Gift Card number not recognised.',
36
- 40: 'Unable to use Gift Card at this time, please try later or click here for support.',
37
- 60: 'The entered Gift Card has expired. For support click here.',
38
- 75: 'The entered Gift Card is invalid. For support click here.',
39
- [GIFT_CARD_ALREADY_ADDED]: 'Gift Card already added, please use a different card.',
40
- [PIS_REQUEST_TIMEOUT]: 'Unable to use Gift Card at this time, please try later or click here for support.',
41
- [PIS_INTEGRATION_ERROR]: 'Unable to use Gift Card at this time, please try later or click here for support.',
42
- [HYBRIS_REQUEST_TIMEOUT]: 'Unable to use Gift Card at this time, please try later or click here for support.',
43
- [HYBRIS_PIS_INTEGRATION_ERROR]: 'Unable to use Gift Card at this time, please try later or click here for support.',
44
- [ZERO_BALANCE]: 'Insufficient funds available, please try another Gift Card or alternate payment method.',
45
- 99: 'The entered Gift Card is invalid. For support click here.',
46
- [-1]: 'Gift Card is unavailable at this time, please try later. For support click here.',
47
- };
48
-
49
- export const PAY_MESSAGE_BY_CODE = {
50
- 101: 'Unable to use Gift Cards at this time, please try later or click here for support.',
51
- 102: 'Unfortunately there was a problem with requesting your card details from the payment provider. Available funds on your Gift Card are unchanged.',
52
- 103: 'Unfortunately there was a problem placing your order with Gift Card(s). Please click here for support.',
53
- 104: 'Unfortunately there was a problem placing your order with Gift Card(s). Please click here for support.',
54
- };
55
-
56
- export const ADD_GIFT_CARD = 'addGiftCard';
57
- export const REMOVE_GIFT_CARD = 'removeGiftCard';
58
- export const PAY_WITH_GIFT_CARD = 'payWithGiftCard';
59
-
60
- export const FAQ_URL = 'https://www.wickes.co.uk/gifts';
61
-
62
- export const escapeHtml = (s) => $('<div>').text(String(s || '')).html();
63
-
64
- export const linkifyClickHere = (msg) =>
65
- escapeHtml(msg).replace(
66
- /\bclick here\b/gi,
67
- `<a href="${FAQ_URL}" target="_blank" rel="noopener" class="notification_link">click here</a>`
68
- );
69
-
70
- export function formatGc16(raw) {
71
- const digits = String(raw || '').replace(/\D/g, '').slice(0, 16);
72
- return digits.replace(/(\d{4})(?=\d)/g, '$1-');
73
- }
74
-
75
- function formatGBP(value) {
76
- if (value === null || typeof value === 'undefined' || String(value).trim() === '') {
77
- return value;
78
- }
79
-
80
- const cleanedValue = String(value).replace(/[^\d.-]/g, '');
81
- const numberValue = Number(cleanedValue);
82
-
83
- if (Number.isFinite(numberValue)) {
84
- return `£${numberValue.toFixed(2)}`;
85
- }
86
-
87
- return value;
88
- }
89
-
90
- export function buildHintContext(count, limit) {
91
- const max = count >= limit;
92
-
93
- return {
94
- canAdd: !max,
95
- max,
96
- hintClass: `giftcard-summary__hint${max ? ' giftcard-summary__hint--max' : ''}`,
97
- };
98
- }
99
-
100
- export function buildSummaryEqualMap(data) {
101
- return Object.entries(SUMMARY_SELECTORS).map(([key, d]) => {
102
- const raw = data[key];
103
- let dataValue = raw;
104
-
105
- if (key === 'giftCardApplied') {
106
- if (isZeroAmount(raw)) {
107
- dataValue = '';
108
- } else if (raw != null && raw !== '') {
109
- dataValue = formatGBP(raw);
110
- if (typeof dataValue === 'string' && dataValue.startsWith('£')) {
111
- dataValue = `-${dataValue}`;
112
- }
113
- }
114
- } else {
115
- if (CURRENCY_KEYS.has(key) && raw != null && raw !== '') {
116
- dataValue = formatGBP(raw);
117
- }
118
- }
119
-
120
- return {
121
- item: d.item,
122
- itemValue: d.value,
123
- dataValue,
124
- ...(d.title ? { title: d.title } : {}),
125
- };
126
- });
127
- }
128
-
129
- export function isZeroAmount(val) {
130
- const cleaned = String(val ?? '').replace(/[^\d.]/g, '');
131
- if (!cleaned) {
132
- return false;
133
- }
134
- const num = Number(cleaned);
135
- return Number.isFinite(num) && num === 0;
136
- }
137
-
138
- // --- API/Event-Dispatching Functions ---
139
-
140
- export function verifyGiftCard($loader, giftCardNumber, pin) {
141
- showLoader($loader);
142
- return new Promise((resolve, reject) => {
143
- const payload = { giftCardNumber, pin };
144
- const detail = { resolve, reject, payload };
145
- const evt = createEvent(ADD_GIFT_CARD, payload, detail);
146
- window.dispatchEvent(evt);
147
- }).finally(() => {
148
- hideLoader($loader);
149
- });
150
- }
151
-
152
- export function removeGiftCard($loader, index) {
153
- showLoader($loader);
154
- return new Promise((resolve, reject) => {
155
- const payload = { index };
156
- const detail = { resolve, reject, payload };
157
- const evt = createEvent(REMOVE_GIFT_CARD, payload, detail);
158
- window.dispatchEvent(evt);
159
- }).finally(() => {
160
- hideLoader($loader);
161
- });
162
- }
163
-
164
- export function payWithGiftCard() {
165
- return new Promise((resolve, reject) => {
166
- const detail = { resolve, reject };
167
- const evt = createEvent(PAY_WITH_GIFT_CARD, undefined, detail);
168
- window.dispatchEvent(evt);
169
- });
170
- }
@@ -1,92 +0,0 @@
1
- import {formatGc16} from './gift-cards-utils';
2
- import {clearErrorText, showErrorText} from './validation';
3
-
4
-
5
- export function createGcNumberInputHandler({
6
- fieldSelector,
7
- fieldErrorClass,
8
- errorTextSelector,
9
- ariaInvalidAttr
10
- }) {
11
- return function handleGcNumberInput(e) {
12
- const input = e.currentTarget;
13
- const $input = $(input);
14
-
15
- const canTrack = typeof input.selectionStart === 'number';
16
- const atEnd = canTrack && input.selectionStart === input.value.length;
17
-
18
- const hadErr = $input.closest(fieldSelector).hasClass(fieldErrorClass);
19
-
20
- input.value = formatGc16(input.value);
21
-
22
- if (hadErr) {
23
- clearErrorText($input, fieldSelector, errorTextSelector, fieldErrorClass, ariaInvalidAttr);
24
- }
25
-
26
- if (atEnd && typeof input.setSelectionRange === 'function') {
27
- input.setSelectionRange(input.value.length, input.value.length);
28
- }
29
- };
30
- }
31
-
32
- export function digitsOnlyKeypress(e) {
33
- if (!/\d/.test(String.fromCharCode(e.which || e.keyCode))) {
34
- e.preventDefault();
35
- }
36
- }
37
-
38
- export function handleGcNumberBlur(e, {
39
- fieldSelector,
40
- errorTextSelector,
41
- errorClass,
42
- ariaInvalidAttr,
43
- numberMessage,
44
- }) {
45
- const $input = $(e.currentTarget);
46
- const len = String($input.val() || '').replace(/\D/g, '').length;
47
-
48
- clearErrorText($input, fieldSelector, errorTextSelector, errorClass, ariaInvalidAttr);
49
-
50
- if (len < 16) {
51
- showErrorText($input, numberMessage, fieldSelector, errorTextSelector, errorClass, ariaInvalidAttr);
52
- }
53
- }
54
-
55
- export function handleGcPinInput(e, {
56
- fieldSelector,
57
- errorTextSelector,
58
- errorClass,
59
- ariaInvalidAttr,
60
- }) {
61
- const input = e.currentTarget;
62
- const $input = $(input);
63
-
64
- const hadErr = $input.closest(fieldSelector).hasClass(errorClass);
65
- input.value = String(input.value || '').replace(/\D/g, '').slice(0, 8);
66
-
67
- if (hadErr) {
68
- clearErrorText($input, fieldSelector, errorTextSelector, errorClass, ariaInvalidAttr);
69
- }
70
- }
71
-
72
-
73
- export function handleGcPinKeypress(e) {
74
- if (!/\d/.test(String.fromCharCode(e.which || e.keyCode))) e.preventDefault();
75
- }
76
-
77
- export function handleGcPinBlur(e, {
78
- fieldSelector,
79
- errorTextSelector,
80
- errorClass,
81
- ariaInvalidAttr,
82
- pinMessage,
83
- }) {
84
- const $input = $(e.currentTarget);
85
- const length = String($input.val() || '').replace(/\D/g, '').length;
86
-
87
- clearErrorText($input, fieldSelector, errorTextSelector, errorClass, ariaInvalidAttr);
88
-
89
- if (length < 8) {
90
- showErrorText($input, pinMessage, fieldSelector, errorTextSelector, errorClass, ariaInvalidAttr);
91
- }
92
- }
@@ -1,28 +0,0 @@
1
- export function initializeInputToggle($container) {
2
- const $input = $container.find('input');
3
- const $toggle = $container.find('.toggle-show');
4
-
5
- if (!$input.length || !$toggle.length) return;
6
-
7
- const handleToggleClick = (e) => {
8
- e.preventDefault();
9
-
10
- const isPassword = String($input.attr('type')) === 'password';
11
- $input.attr('type', isPassword ? 'text' : 'password');
12
- const $icon = $toggle.find('svg, i').first();
13
-
14
- if ($icon.length) {
15
- $icon.removeClass('fa-eye fa-eye-slash').addClass(isPassword ? 'fa-eye' : 'fa-eye-slash');
16
- }
17
- };
18
-
19
- const updateToggleVisibility = () => {
20
- $toggle.toggle(($input.val() || '').length > 0);
21
- };
22
-
23
- $toggle.off('click.passwordToggle mousedown.passwordToggle')
24
- .on('mousedown.passwordToggle', handleToggleClick);
25
-
26
- $input.off('input.passwordToggle').on('input.passwordToggle', updateToggleVisibility);
27
- updateToggleVisibility();
28
- }
@@ -1,360 +0,0 @@
1
- .giftcard-row {
2
- position: relative;
3
- display: flex;
4
- gap: 16px;
5
- }
6
-
7
- .giftcard {
8
- border: 1px solid $gray;
9
- border-radius: 4px;
10
- background: $white;
11
- padding: 12px 16px;
12
- width: 100%;
13
- order: 3;
14
- position: relative;
15
-
16
- .giftcard__field {
17
- .form-row {
18
- margin-bottom: 0;
19
- }
20
- }
21
- }
22
-
23
- .giftcard-add {
24
- display: inline-flex;
25
- align-items: center;
26
- gap: 8px;
27
- color: $blue;
28
- text-decoration: none;
29
- cursor: pointer;
30
-
31
- &__icon {
32
- width: 16px;
33
- height: 16px;
34
- }
35
-
36
- &__text {
37
- font-size: .875rem;
38
- line-height: 1.375rem;
39
- font-weight: 500;
40
- }
41
- }
42
-
43
- .giftcard-hint {
44
- display: block;
45
- color: $squant;
46
- font-size: .875rem;
47
- line-height: 1.375rem;
48
- font-weight: 400;
49
- margin-left: 32px;
50
- }
51
-
52
- .giftcard-inline {
53
- padding: 12px 8px;
54
-
55
- &__header {
56
- display: flex;
57
- justify-content: space-between;
58
- margin-bottom: 16px;
59
- }
60
-
61
- &__title {
62
- font-weight: 500;
63
- font-size: 1.125rem;
64
- line-height: 1.5rem;
65
- white-space: nowrap;
66
- }
67
-
68
- &__balance {
69
- color: $blue;
70
- font-weight: 400;
71
- font-size: .875rem;
72
- line-height: 1.375rem;
73
- text-decoration: underline;
74
- white-space: nowrap;
75
- }
76
-
77
- &__close {
78
- position: absolute;
79
- width: 24px;
80
- height: 24px;
81
- top: 8px;
82
- right: 8px;
83
- cursor: pointer;
84
- display: flex;
85
- justify-content: center;
86
- align-items: center;
87
- color: $warm-grey;
88
- }
89
-
90
- &__fields {
91
- display: flex;
92
- flex-direction: column;
93
- gap: 24px;
94
- }
95
-
96
- .notification {
97
- margin-bottom: 16px;
98
- }
99
- }
100
-
101
- .form-row__label {
102
- margin-bottom: 8px;
103
- }
104
-
105
- .giftcard__btn {
106
- width: 100%;
107
- }
108
-
109
- .giftcard__field {
110
- position: relative;
111
- display: flex;
112
- flex-direction: column;
113
- padding-bottom: 18px;
114
- min-width: 0;
115
- }
116
-
117
- .giftcard-inline .giftcard-inline__fields > .form-row.giftcard__field {
118
- margin-bottom: 0;
119
- }
120
-
121
- .giftcard-field--error .giftcard__input {
122
- border-color: $red;
123
- }
124
-
125
- .giftcard__error-text {
126
- font-weight: 400;
127
- font-size: .75rem;
128
- line-height: 1rem;
129
- color: $red;
130
- margin-top: 8px;
131
- }
132
-
133
- .giftcard .toggle-show svg {
134
- pointer-events: none;
135
- }
136
-
137
- .form-row .toggle-show {
138
- font-size: 1rem;
139
- cursor: pointer;
140
- position: absolute;
141
- right: 8px;
142
- top: 0;
143
- height: 100%;
144
- display: inline-flex;
145
- align-items: center;
146
- justify-content: center;
147
- width: 24px;
148
- }
149
-
150
- .giftcard-applied {
151
- width: 100%;
152
- border: 1px solid $gray-light;
153
- border-radius: 4px;
154
- background: $white;
155
- padding: 15px 16px;
156
- order: 2;
157
-
158
- &__inner {
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
- gap: 12px;
163
- }
164
-
165
- &__icon {
166
- display: inline-flex;
167
- align-items: center;
168
- justify-content: center;
169
- }
170
-
171
- .fa-check-circle {
172
- text-align: center;
173
- color: $green;
174
- font-size: 1rem;
175
- }
176
-
177
- &__text {
178
- margin: 0;
179
- font-size: .875rem;
180
- line-height: 1.5rem;
181
- font-weight: 500;
182
- word-break: break-word;
183
- }
184
- }
185
-
186
- .giftcard-summary {
187
- position: relative;
188
- width: 100%;
189
-
190
- &__hint {
191
- margin-top: 16px;
192
- margin-bottom: 0;
193
- font-size: .875rem;
194
- font-weight: 400;
195
- line-height: 1.375rem;
196
- }
197
-
198
- &__add {
199
- text-decoration: underline;
200
- cursor: pointer;
201
- color: $blue;
202
- }
203
- }
204
-
205
- .giftcard-chip-list {
206
- display: flex;
207
- flex-direction: column;
208
- gap: 16px;
209
- }
210
-
211
- .giftcard-chip {
212
- display: flex;
213
- align-items: center;
214
- width: 100%;
215
- gap: 12px;
216
- padding: 12px 16px;
217
- border: 1px solid $gray;
218
- border-radius: 4px;
219
- background: $white;
220
- min-height: 44px;
221
- position: relative;
222
-
223
- &__close {
224
- position: absolute;
225
- width: 24px;
226
- height: 24px;
227
- top: 8px;
228
- right: 8px;
229
- cursor: pointer;
230
- display: flex;
231
- justify-content: center;
232
- align-items: center;
233
- color: $warm-grey;
234
- }
235
- }
236
-
237
- .giftcard-chip__icon {
238
- width: 48px;
239
- height: 30px;
240
- display: inline-flex;
241
- align-items: center;
242
- justify-content: center;
243
- }
244
-
245
- .giftcard-chip__content {
246
- flex: 1 1 auto;
247
- min-width: 0;
248
- }
249
-
250
- .giftcard-chip__line {
251
- display: block;
252
- line-height: 1.25rem;
253
-
254
- .giftcard-chip__applied {
255
- font-size: .875rem;
256
- font-weight: 400;
257
- line-height: 1.5rem;
258
- color: $gray-dark;
259
- }
260
- }
261
-
262
- .giftcard-chip__number {
263
- font-weight: 500;
264
- line-height: 1.5rem;
265
- font-size: 1rem;
266
- color: $gray-dark;
267
- }
268
-
269
- .giftcard-chip__applied {
270
- white-space: nowrap;
271
- }
272
-
273
- @include media-breakpoint-up(sm) {
274
- .giftcard-inline__fields {
275
- display: flex;
276
- flex-direction: row;
277
- justify-content: space-between;
278
- gap: 16px;
279
- }
280
-
281
- .giftcard-inline__fields > .form-row.giftcard__field--pin.giftcard__field--pin {
282
- width: 116px;
283
- }
284
-
285
- .giftcard-inline__fields > .form-row.giftcard__field--number.giftcard__field--number {
286
- width: 224px;
287
- }
288
-
289
- .giftcard__actions {
290
- display: flex;
291
- align-items: flex-end;
292
- height: 72px;
293
- }
294
-
295
- .giftcard-summary {
296
- &__hint {
297
- width: 354px;
298
-
299
- &--max {
300
- width: 100%;
301
- }
302
- }
303
- }
304
- }
305
-
306
- @include media-breakpoint-up(md) {
307
- .giftcard-inline__fields > .form-row.giftcard__field--pin.giftcard__field--pin {
308
- width: 214px;
309
- }
310
-
311
- .giftcard-inline__fields > .form-row.giftcard__field--number.giftcard__field--number {
312
- width: 240px;
313
- }
314
-
315
-
316
- .giftcard-inline__title {
317
- font-weight: 700;
318
- }
319
-
320
- .giftcard-summary {
321
- &__hint {
322
- width: 100%;
323
-
324
- &--max {
325
- width: 460px;
326
- }
327
- }
328
- }
329
- }
330
-
331
- @include media-breakpoint-up(lg) {
332
- .giftcard-inline__fields {
333
- max-width: 470px;
334
- }
335
-
336
- .giftcard-summary {
337
- &__hint {
338
- width: 100%;
339
-
340
- &--max {
341
- width: 100%;
342
- }
343
- }
344
- }
345
- }
346
-
347
- @include media-breakpoint-up(xl) {
348
- .giftcard-inline__fields {
349
- max-width: 100%;
350
- }
351
-
352
- .giftcard__btn {
353
- width: 140px;
354
- }
355
-
356
- .giftcard__field--number,
357
- .giftcard__field--pin {
358
- width: 100%;
359
- }
360
- }