|
| 1 | +* { |
| 2 | + box-sizing: border-box; |
| 3 | +} |
| 4 | + |
| 5 | +#shopify-element-wrapper, |
| 6 | +.Shopify-target { |
| 7 | + inline-size: 100%; |
| 8 | + block-size: 100%; |
| 9 | + border: none; |
| 10 | +} |
| 11 | + |
| 12 | +:host { |
| 13 | + @media (prefers-reduced-motion: reduce) { |
| 14 | + --shopify-checkout-overlay-transition-duration: 1ms; |
| 15 | + } |
| 16 | + |
| 17 | + /* |
| 18 | + * Reset any inheritable styles to ensure the text and links are visible by default no matter |
| 19 | + * what the embedding website's styles are. An embedder may override these values |
| 20 | + * using CSS parts. |
| 21 | + */ |
| 22 | + color: hsl(0, 0%, 10%); |
| 23 | + font-family: system-ui, sans-serif; |
| 24 | + font-size: initial; |
| 25 | + line-height: 1.5; |
| 26 | + letter-spacing: initial; |
| 27 | + font-weight: initial; |
| 28 | + font-style: initial; |
| 29 | + text-align: initial; |
| 30 | + word-spacing: initial; |
| 31 | + text-transform: initial; |
| 32 | + text-decoration: initial; |
| 33 | + text-indent: initial; |
| 34 | + /* checkout applies subpixel-antialiased */ |
| 35 | + -webkit-font-smoothing: subpixel-antialiased; |
| 36 | + -moz-osx-font-smoothing: initial; |
| 37 | + text-rendering: initial; |
| 38 | + |
| 39 | + a, |
| 40 | + a:hover, |
| 41 | + a:visited, |
| 42 | + a:focus, |
| 43 | + a:active { |
| 44 | + color: inherit; |
| 45 | + } |
| 46 | +} |
| 47 | + |
| 48 | +.overlay { |
| 49 | + padding: 0; |
| 50 | + transition: |
| 51 | + display var(--shopify-checkout-dialog-transition-duration, 150ms) allow-discrete, |
| 52 | + overlay var(--shopify-checkout-dialog-transition-duration, 150ms) allow-discrete; |
| 53 | +} |
| 54 | + |
| 55 | +.overlay-background { |
| 56 | + opacity: 0; |
| 57 | + position: fixed; |
| 58 | + place-items: center; |
| 59 | + inset: 0; |
| 60 | + background-color: hsla(0, 0%, 0%, 0.8); |
| 61 | + transition: |
| 62 | + opacity var(--shopify-checkout-overlay-transition-duration, 150ms) ease-out, |
| 63 | + backdrop-filter var(--shopify-checkout-overlay-transition-duration, 150ms) ease-out, |
| 64 | + display var(--shopify-checkout-overlay-transition-duration, 150ms) allow-discrete, |
| 65 | + overlay var(--shopify-checkout-overlay-transition-duration, 150ms) allow-discrete; |
| 66 | + color: hsl(0, 0%, 100%); |
| 67 | + font-size: 1.125em; |
| 68 | + text-align: center; |
| 69 | + overflow: auto; |
| 70 | +} |
| 71 | + |
| 72 | +.overlay[open] .overlay-background { |
| 73 | + display: grid; |
| 74 | + opacity: 1; |
| 75 | + backdrop-filter: blur(6px); |
| 76 | +} |
| 77 | + |
| 78 | +@starting-style { |
| 79 | + .overlay[open] .overlay-background { |
| 80 | + opacity: 0; |
| 81 | + } |
| 82 | +} |
| 83 | + |
| 84 | +.overlay-content-wrapper { |
| 85 | + display: grid; |
| 86 | + grid-template-rows: 1fr 20%; |
| 87 | + place-items: center; |
| 88 | + inline-size: 100%; |
| 89 | + block-size: 100%; |
| 90 | +} |
| 91 | + |
| 92 | +.overlay-content { |
| 93 | + padding: 0.75em; |
| 94 | + max-inline-size: 21em; |
| 95 | +} |
| 96 | + |
| 97 | +.overlay-close-button { |
| 98 | + display: inline-flex; |
| 99 | + align-items: center; |
| 100 | + gap: 0.5em; |
| 101 | + background: transparent; |
| 102 | + border: none; |
| 103 | + padding: 0.625em; |
| 104 | + cursor: pointer; |
| 105 | + font-family: inherit; |
| 106 | + color: inherit; |
| 107 | + opacity: 0.8; |
| 108 | + text-decoration: underline; |
| 109 | + line-height: 0; |
| 110 | + |
| 111 | + &:hover { |
| 112 | + opacity: 1; |
| 113 | + } |
| 114 | + |
| 115 | + svg { |
| 116 | + inline-size: 1em; |
| 117 | + block-size: 1em; |
| 118 | + line-height: 0; |
| 119 | + fill: currentColor; |
| 120 | + } |
| 121 | +} |
0 commit comments