@plurix/ecom-components 1.19.4 → 1.19.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
2
2
|
|
|
3
|
-
interface ModalProps {
|
|
3
|
+
export interface ModalProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
6
6
|
children: ReactNode;
|
|
@@ -11,6 +11,11 @@ interface ModalProps {
|
|
|
11
11
|
Footer?: ReactNode;
|
|
12
12
|
hideHeader?: boolean;
|
|
13
13
|
PreContent?: ReactNode;
|
|
14
|
+
/** Fecha o modal com a tecla Esc. Default: true. */
|
|
15
|
+
closeOnEsc?: boolean;
|
|
16
|
+
/** Mantém o foco do teclado dentro do modal enquanto aberto. Default: true. */
|
|
17
|
+
trapFocus?: boolean;
|
|
18
|
+
/** Texto acessível do botão de fechar. Default: 'Fechar'. */
|
|
19
|
+
closeButtonLabel?: string;
|
|
14
20
|
}
|
|
15
21
|
export declare const Modal: (props: ModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
-
export {};
|
|
@@ -1,62 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var j = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var N = (r, t, o) => t in r ? j(r, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[t] = o, R = (r, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
T.call(t, o) && N(r, o, t[o]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var o of v(t))
|
|
10
|
+
$.call(t, o) && N(r, o, t[o]);
|
|
11
|
+
return r;
|
|
12
|
+
}, F = (r, t) => B(r, K(t));
|
|
13
|
+
import { jsx as i, jsxs as E } from "react/jsx-runtime";
|
|
14
|
+
import { useRef as m, useId as M, useEffect as w } from "react";
|
|
15
|
+
import { ArrowIcon as W } from "../../assets/svgs/ArrowIcon.js";
|
|
16
|
+
import { CloseIcon as _ } from "../../assets/svgs/CloseIcon.js";
|
|
17
|
+
import { HAS_WINDOW as H } from "../../constants/index.js";
|
|
18
|
+
/* empty css */const q = [
|
|
19
|
+
"a[href]",
|
|
20
|
+
"button:not([disabled])",
|
|
21
|
+
"input:not([disabled])",
|
|
22
|
+
"select:not([disabled])",
|
|
23
|
+
"textarea:not([disabled])",
|
|
24
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
25
|
+
].join(","), X = (r) => {
|
|
7
26
|
const {
|
|
8
|
-
isOpen:
|
|
9
|
-
setIsOpen:
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
title:
|
|
13
|
-
titleAction:
|
|
14
|
-
hasTitleArrow:
|
|
15
|
-
Footer:
|
|
16
|
-
hideHeader:
|
|
17
|
-
PreContent:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
isOpen: t,
|
|
28
|
+
setIsOpen: o,
|
|
29
|
+
children: O,
|
|
30
|
+
className: S,
|
|
31
|
+
title: f,
|
|
32
|
+
titleAction: L,
|
|
33
|
+
hasTitleArrow: D,
|
|
34
|
+
Footer: g,
|
|
35
|
+
hideHeader: d,
|
|
36
|
+
PreContent: x,
|
|
37
|
+
closeOnEsc: A = !0,
|
|
38
|
+
trapFocus: s = !0,
|
|
39
|
+
closeButtonLabel: I = "Fechar"
|
|
40
|
+
} = r, h = m(null), b = m(null), u = m(null), C = m(null), p = `modal-title-${M()}`, y = () => o == null ? void 0 : o(!1);
|
|
41
|
+
return w(() => {
|
|
42
|
+
if (H)
|
|
43
|
+
return t ? window.document.body.classList.add("no-scroll") : window.document.body.classList.remove("no-scroll"), () => {
|
|
22
44
|
window.document.body.classList.remove("no-scroll");
|
|
23
45
|
};
|
|
24
|
-
}, [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
46
|
+
}, [t]), w(() => {
|
|
47
|
+
if (b.current && h.current) {
|
|
48
|
+
const n = d ? 0 : 56;
|
|
49
|
+
h.current.style.maxHeight = `calc(100% - ${n}px - ${b.current.offsetHeight}px)`;
|
|
50
|
+
}
|
|
51
|
+
const c = (n) => {
|
|
52
|
+
var e;
|
|
53
|
+
u.current && (n == null ? void 0 : n.target) instanceof Node && !((e = u.current) != null && e.contains(n == null ? void 0 : n.target)) && y();
|
|
29
54
|
};
|
|
30
|
-
return
|
|
55
|
+
return t ? document.addEventListener("mousedown", c) : document.removeEventListener("mousedown", c), () => {
|
|
31
56
|
document.removeEventListener("mousedown", c);
|
|
32
57
|
};
|
|
33
|
-
}, [
|
|
58
|
+
}, [t, d]), w(() => {
|
|
59
|
+
if (!t || !H)
|
|
60
|
+
return;
|
|
61
|
+
C.current = document.activeElement;
|
|
62
|
+
const c = () => {
|
|
63
|
+
var e, l;
|
|
64
|
+
return Array.from(
|
|
65
|
+
(l = (e = u.current) == null ? void 0 : e.querySelectorAll(q)) != null ? l : []
|
|
66
|
+
).filter(
|
|
67
|
+
(a) => !a.hasAttribute("hidden") && a.getAttribute("aria-hidden") !== "true"
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
if (s) {
|
|
71
|
+
const [e] = c();
|
|
72
|
+
e == null || e.focus();
|
|
73
|
+
}
|
|
74
|
+
const n = (e) => {
|
|
75
|
+
if (A && e.key === "Escape") {
|
|
76
|
+
y();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!s || e.key !== "Tab")
|
|
80
|
+
return;
|
|
81
|
+
const l = c();
|
|
82
|
+
if (l.length === 0)
|
|
83
|
+
return;
|
|
84
|
+
const a = l[0], k = l[l.length - 1];
|
|
85
|
+
if (e.shiftKey && document.activeElement === a) {
|
|
86
|
+
e.preventDefault(), k.focus();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
!e.shiftKey && document.activeElement === k && (e.preventDefault(), a.focus());
|
|
90
|
+
};
|
|
91
|
+
return document.addEventListener("keydown", n), () => {
|
|
92
|
+
var e, l;
|
|
93
|
+
document.removeEventListener("keydown", n), s && ((l = (e = C.current) == null ? void 0 : e.focus) == null || l.call(e));
|
|
94
|
+
};
|
|
95
|
+
}, [t, A, s]), t ? /* @__PURE__ */ i(
|
|
34
96
|
"div",
|
|
35
97
|
{
|
|
36
98
|
id: "modal-container",
|
|
37
99
|
"data-testid": "modal-container",
|
|
38
|
-
className:
|
|
39
|
-
children: /* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
100
|
+
className: S,
|
|
101
|
+
children: /* @__PURE__ */ i("div", { id: "modal-content-container", children: /* @__PURE__ */ E(
|
|
102
|
+
"div",
|
|
103
|
+
F(R({
|
|
104
|
+
id: "modal-content",
|
|
105
|
+
ref: u,
|
|
106
|
+
role: "dialog",
|
|
107
|
+
"aria-modal": "true"
|
|
108
|
+
}, d ? { "aria-label": f } : { "aria-labelledby": p }), {
|
|
109
|
+
children: [
|
|
110
|
+
!d && /* @__PURE__ */ E("header", { children: [
|
|
111
|
+
L ? /* @__PURE__ */ E(
|
|
112
|
+
"button",
|
|
113
|
+
{
|
|
114
|
+
id: p,
|
|
115
|
+
onClick: L,
|
|
116
|
+
className: "modal-title",
|
|
117
|
+
children: [
|
|
118
|
+
D && /* @__PURE__ */ i(
|
|
119
|
+
W,
|
|
120
|
+
{
|
|
121
|
+
rotate: "Left",
|
|
122
|
+
color: "var(--color-support-links)"
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
f
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
) : /* @__PURE__ */ i("h2", { id: p, className: "modal-title", children: f }),
|
|
129
|
+
/* @__PURE__ */ i(
|
|
130
|
+
"button",
|
|
131
|
+
{
|
|
132
|
+
onClick: y,
|
|
133
|
+
className: "modal-close",
|
|
134
|
+
type: "button",
|
|
135
|
+
"aria-label": I,
|
|
136
|
+
children: /* @__PURE__ */ i(_, { color: "var(--color-main)" })
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }),
|
|
140
|
+
!!x && x,
|
|
141
|
+
/* @__PURE__ */ i("div", { ref: h, children: O }),
|
|
142
|
+
g && /* @__PURE__ */ i("footer", { className: "modal-footer", ref: b, children: g })
|
|
143
|
+
]
|
|
144
|
+
})
|
|
145
|
+
) })
|
|
57
146
|
}
|
|
58
147
|
) : null;
|
|
59
148
|
};
|
|
60
149
|
export {
|
|
61
|
-
|
|
150
|
+
X as Modal
|
|
62
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
#carousel .carousel-content{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center}#carousel .carousel-content .carousel-arrow-button-prev,#carousel .carousel-content .carousel-arrow-button-next{display:flex;justify-content:center;align-items:center}#carousel .carousel-content .carousel-container{display:flex;flex-direction:row;width:100%;height:100%;scroll-behavior:smooth;overflow-x:scroll}#carousel .numeric-bullets{display:flex;flex-direction:row;justify-content:center;text-align:center}#carousel .bullets-container{display:flex;flex-direction:row;justify-content:center}
|
|
1
|
+
#carousel .carousel-content{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center}#carousel .carousel-content .carousel-arrow-button-prev,#carousel .carousel-content .carousel-arrow-button-next{display:flex;justify-content:center;align-items:center}#carousel .carousel-content .carousel-container{display:flex;flex-direction:row;width:100%;height:100%;scroll-behavior:smooth;overflow-x:scroll}#carousel .numeric-bullets{display:flex;flex-direction:row;justify-content:center;text-align:center}#carousel .bullets-container{display:flex;flex-direction:row;justify-content:center;margin-top:8px}@media (min-width: 768px){#carousel .bullets-container{margin-top:16px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{-webkit-tap-highlight-color:transparent}:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.invisible-button{width:100%;height:46px;background-color:transparent}.product-card-horizontal .invisible-button{height:38px}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:100%;min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%;min-height:163px;max-height:206px}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white)}.product-card .product-card-image-container{border-top:7px}.product-card-horizontal .product-card-image-container{border-top-left-radius:7px;border-bottom-left-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;border-radius:4px;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.product-card .quantity-selector,.product-card .product-card-button,.product-card-horizontal .quantity-selector,.product-card-horizontal .product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:100%;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}}}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@include media(">tablet"){.product-add-text p {font-size: var(--text-size-1); line-height: 18px;}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
|
|
1
|
+
*{-webkit-tap-highlight-color:transparent}:root{--product-card-horizontal-width: 100px;--product-card-horizontal-margin: 8px;--product-card-horizontal-padding: 8px}#product-card,#product-card-unavailable{display:flex;flex-direction:column;min-height:276px;max-height:304px;height:100%}#product-card-unavailable.product-card-horizontal-unavailable{min-height:172px;max-height:206px}.product-card{display:flex;flex-direction:column;flex:1;position:relative;height:100%;cursor:pointer;border:1px solid var(--color-grayScale-lightest);border-radius:8px;overflow:hidden}.clean-button{display:flex;flex-direction:column;appearance:none;border:none;background:none;outline:none;text-align:left;cursor:pointer;font:inherit;color:inherit;margin:0;padding:0;text-transform:none;height:100%}.product-card,.product-card+.product-card-unavailable-text{width:162px}.product-card-description{display:flex;flex-direction:column;gap:4px;padding:8px;height:100%}.invisible-button{width:100%;height:46px;background-color:transparent}.product-card-horizontal .invisible-button{height:38px}.product-card-badge{display:flex;gap:4px}.product-card-badge-kg{display:inline-block;width:fit-content;height:16px;padding:2px 4px;background-color:var(--color-main);border-radius:2px;color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:10px;line-height:13px;text-align:center;vertical-align:middle}.product-card-discount-badge{display:flex;align-items:center;justify-content:center;width:42px;height:16px;background-color:var(--color-badge-main);border-radius:2px}.product-card-discount-badge-value{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary)}.product-card-badge-club{width:43px;background-color:var(--color-badge-main);border-radius:4px;text-align:center}.product-card-badge-club-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;color:var(--color-badge-secondary);padding:1px 0}.product-card-section-badge{display:flex;gap:4px}.product-card-horizontal{position:relative;display:flex;flex-direction:column;width:304px;height:100%;min-height:163px;max-height:206px;border:1px solid var(--color-grayScale-lightest);border-radius:8px}.product-card-section-product-horizontal{display:flex;flex-direction:row;position:relative;height:100%;border-radius:8px}.product-card-section-product-horizontal .product-card-image-container{position:relative;align-self:flex-start;padding:0 var(--product-card-horizontal-padding);height:100%;min-height:163px;max-height:206px}.product-card-section-product-horizontal .product-card-image-container .image{width:var(--product-card-horizontal-width);height:100px;object-fit:contain;margin-top:8px;margin-bottom:auto}.product-card-horizontal-description{display:flex;flex-direction:column;gap:4px;height:100%;width:100%;padding:7.5px 8px;border-radius:8px;border-bottom-left-radius:unset;border-top-left-radius:unset}.product-card-section-name{display:flex;flex-direction:column;gap:4px}.product-card-horizontal-description .product-card-club-price{line-height:18px}.out-of-stock{min-height:126px}.out-of-stock-description-content{display:flex;flex-direction:column;flex:1;background-color:var(--color-grayScale-faded)}.product-card-section-product-horizontal .product-card-name{font-size:var(--text-size-1);line-height:20px;min-height:auto;height:100%;max-width:172px}.product-card-section-product-horizontal .product-card-section-badge-horizontal{display:flex;gap:4px;height:16px}.product-card-horizontal .product-card-price-container{display:flex;flex-direction:row;align-items:center;min-height:20px}.product-card-horizontal .product-card-price-container .product-card-old-price{padding-right:4px;border-right:1px solid var(--color-grayScale-light)}.product-card-horizontal .product-card-price-container .product-card-new-price{padding-left:4px;font-size:var(--text-size-2);line-height:20px}.product-card-section-badge-container.horizontal{position:unset;height:24px;width:100%}.product-card-button{display:flex;justify-content:center;align-items:center;width:calc(100% - 16px);height:40px;padding:8px 16px;margin:8px;border:1px solid var(--color-main);border-radius:20px;background-color:var(--color-main);color:var(--color-grayScale-white);font-weight:var(--text-weight-bold);font-size:var(--text-size-2);line-height:20px;cursor:pointer}.product-card-button span{display:flex;align-items:center;gap:4px}#product-card-button{position:absolute;bottom:0;left:0;width:stretch}.product-card-button.unavailable{background-color:var(--color-grayScale-lightest);color:#545454;cursor:not-allowed}.product-card-button .button{padding:12px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;font-size:var(--text-size-3);line-height:24px;max-height:unset}.product-card-image-container{position:relative;display:flex;justify-content:center;align-items:center;padding:7.5px 8px;background-color:var(--color-grayScale-white)}.product-card .product-card-image-container{border-top:7px}.product-card-horizontal .product-card-image-container{border-top-left-radius:7px;border-bottom-left-radius:7px}.product-card-image-container .image{max-width:96px;height:96px;object-fit:contain}.product-club-badge{position:absolute;width:50px;height:18px;inset:8px 0 0 8px}.product-card-section-badge-container{position:absolute;bottom:8px;height:18px;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;border-radius:4px}.product-card-section-badge-text{font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 4px}.product-club-badge.horizontal{inset:9px 0 0 9px}.product-card-name{display:-webkit-box;font-weight:var(--text-weight-regular);font-size:var(--text-size-1);line-height:18px;color:#545454;vertical-align:middle;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-card-price{display:flex;flex-direction:column;gap:4px;margin-top:auto}.product-card-club-price{display:inline-block;width:100%;padding:4px;border-radius:4px;font-weight:var(--text-weight-bold);font-size:var(--text-size-0);line-height:16px}.product-card-old-price{height:16px;font-weight:400;font-size:var(--text-size-0);line-height:16px;color:#545454;text-decoration:line-through;vertical-align:middle}.product-card-new-price{font-weight:var(--text-weight-bold);font-size:var(--text-size-3);line-height:24px;color:var(--color-main);vertical-align:middle}.product-card-price-container{display:flex;flex-direction:column;min-height:24px}.product-card-old-price .mobile{display:block}@media (min-width: 769px){.product-card,.product-card+.product-card-unavailable-text{width:226px}#product-card,#product-card-unavailable{min-height:324px;max-height:350px}.product-card-description{padding:8px 16px 0}.product-card-unavailable{height:74px}.product-card-image-container{padding:15.5px 16px 7.5px}.product-card-image-container .image{max-width:144px;height:144px}.product-club-badge{width:67px;height:24px;inset:16px 0 0 16px}.product-card-section-badge-container{max-width:194px;height:24px}.product-card-section-badge-text{font-size:var(--text-size-1);line-height:18px}.product-card-name{font-size:var(--text-size-2);line-height:20px}.product-card-old-price .mobile{display:none}.product-card-old-price{padding-right:4px;border-right:2px solid var(--color-grayScale-light)}.product-card-new-price{padding-left:4px}.product-card-club-price{font-size:var(--text-size-1);line-height:18px}.product-card-price-container{display:flex;flex-direction:row;align-items:center}.product-card-badge-club{width:57px}.product-card-badge-club-text{font-size:var(--text-size-1);line-height:18px;padding:3px 0}.product-card .quantity-selector,.product-card .product-card-button,.product-card-horizontal .quantity-selector,.product-card-horizontal .product-card-button{width:calc(100% - 32px);margin:8px 16px}}.quantity-selector{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:calc(100% - 16px);height:40px;margin:8px;border:1px solid var(--color-grayScale-light);border-radius:20px;background-color:var(--color-grayScale-white);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow);transition:box-shadow .2s ease}[data-store-quantity-selector] [data-store-icon]{display:inline-block;margin:0;color:var(--color-main);line-height:0}.quantity-selector .quantity-selector-quantity{display:block;width:100%;height:100%;padding:0;font-weight:400;line-height:20px;color:var(--color-grayScale);text-align:center;background-color:transparent;border-width:0;opacity:1}.quantity-selector .quantity-selector-quantity:focus{outline:0}.quantity-selector .quantity-selector-quantity:disabled{color:var(--color-grayScale);opacity:1}.quantity-selector-button{display:flex;align-items:center;justify-content:center;width:46px;height:100%;padding:var(--space-0);background-color:#e6e6e6;border:unset;border-bottom-left-radius:20px;border-top-left-radius:20px;cursor:pointer}.quantity-selector-button.quantity-selector-button-plus{border-top-right-radius:20px;border-top-left-radius:unset;border-bottom-right-radius:20px;border-bottom-left-radius:unset}.quantity-selector-measure-unit{font-family:DM Sans,sans-serif;font-size:var;font-weight:400;line-height:20px;color:var(--color-grayScale)}.quantity-selector .quantity-selector-button [data-store-icon]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:var(--border-radius-default);transition:background-color .2s ease}.quantity-selector .quantity-selector-button:disabled{cursor:not-allowed}.quantity-selector .quantity-selector-button:disabled [data-store-icon]{color:var(--color-grayScale-light)}.quantity-selector[data-store-quantity-selector=disabled]{background-color:var(--color-grayScale-light);box-shadow:0 0 0 var(--border-width-0) var(--color-support-shadow)}@media not all and (min-resolution: .001dpcm){@supports (-webkit-appearance: none){.quantity-selector .quantity-selector-button:focus{outline:none;box-shadow:none}}}.product-add-text{display:block;height:10px;padding-bottom:17px;text-align:center;transition-delay:.25s;transition-property:margin-top}.product-add-text p{font-family:DM Sans,sans-serif;font-size:var(--text-size-0);font-weight:400;font-style:normal;line-height:16px;color:var(--color-positiveFeedback-dark);text-align:center;white-space:nowrap}@media (min-width: 768px){.product-add-text p{font-size:var(--text-size-1);line-height:18px}}.product-card-unavailable-text{height:40px;margin:8px;align-content:center;border:1px solid var(--color-grayScale-light);border-radius:20px;position:absolute;bottom:0;left:0;width:stretch;background-color:var(--color-grayScale-lightest)}.product-card-unavailable-text p{text-align:center;font-size:var(--text-size-3);font-weight:var(--text-weight-bold);line-height:24px;color:var(--color-grayScale-darkest)}
|