editor.css
221 lines
| 1 | .elementor-element .surecart-checkout-icon::after { |
| 2 | content: ""; |
| 3 | background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgZmlsbD0iI2E3YWFhZCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTI2LjIyNiAxMTAuMDExQzEzOC42NTQgOTcuNTc4MyAxNjIuOTc3IDg3LjUgMTgwLjU1MyA4Ny41SDMzOS42NzRMMjgzLjQxNiAxNDMuNzc2SDkyLjQ3MTRMMTI2LjIyNiAxMTAuMDExWk0xMTYuOTA1IDI1Ni4yMjRIMzA3Ljg1TDI3NC4wOTUgMjg5Ljk5QzI2MS42NjcgMzAyLjQyMiAyMzcuMzQ0IDMxMi41IDIxOS43NjggMzEyLjVINjAuNjQ3MkwxMTYuOTA1IDI1Ni4yMjRaTTMyOC43NjYgMTcxLjg2Mkg2NC42MjVMNTMuMzczNSAxODMuMTE3QzI4LjUxNzMgMjA3Ljk4MiAzNi44NjM3IDIyOC4xMzggNzIuMDE1NyAyMjguMTM4SDMzNi4xNTZMMzQ3LjQwOCAyMTYuODgzQzM3Mi4yNjQgMTkyLjAxOCAzNjMuOTE4IDE3MS44NjIgMzI4Ljc2NiAxNzEuODYyWiIvPgo8L3N2Zz4K"); |
| 4 | position: absolute; |
| 5 | top: 0; |
| 6 | right: 0; |
| 7 | z-index: 1; |
| 8 | width: 20px; |
| 9 | height: 20px; |
| 10 | padding: 0.2em 0.5em; |
| 11 | border-width: 0 0 1px 1px; |
| 12 | border-color: #797878; |
| 13 | border-style: solid; |
| 14 | background-repeat: no-repeat; |
| 15 | background-position: center center; |
| 16 | } |
| 17 | |
| 18 | /* SureCart Icon for Template selector */ |
| 19 | .elementor-add-new-section .elementor-surecart-template-button { |
| 20 | -webkit-mask: url("../../../../../images/icon.svg") no-repeat center; |
| 21 | mask: url("../../../../../images/icon.svg") no-repeat center; |
| 22 | -webkit-mask-size: contain; |
| 23 | mask-size: contain; |
| 24 | background-color: #01824c !important; |
| 25 | transition: opacity 0.3s ease; |
| 26 | } |
| 27 | |
| 28 | .elementor-add-new-section .elementor-surecart-template-button:hover { |
| 29 | opacity: 0.8; |
| 30 | } |
| 31 | |
| 32 | .elementor-add-new-section .elementor-surecart-template-button > i { |
| 33 | height: 12px; |
| 34 | } |
| 35 | |
| 36 | body .elementor-add-new-section .elementor-add-section-area-button { |
| 37 | margin-left: 0; |
| 38 | } |
| 39 | |
| 40 | /* SureCart custom dialog styles */ |
| 41 | #sc-elementor-modal-dialog { |
| 42 | display: flex; |
| 43 | align-items: center; |
| 44 | justify-content: center; |
| 45 | position: fixed; |
| 46 | top: 0; |
| 47 | left: 0; |
| 48 | width: 100%; |
| 49 | height: 100%; |
| 50 | z-index: 99999; |
| 51 | visibility: hidden; |
| 52 | opacity: 0; |
| 53 | transition: all 0.5s ease; |
| 54 | } |
| 55 | |
| 56 | #sc-elementor-modal-dialog.show { |
| 57 | visibility: visible; |
| 58 | opacity: 1; |
| 59 | } |
| 60 | |
| 61 | .sc-elementor-modal__overlay { |
| 62 | position: absolute; |
| 63 | top: 0; |
| 64 | left: 0; |
| 65 | width: 100%; |
| 66 | height: 100%; |
| 67 | background-color: rgba(0, 0, 0, 0.8); |
| 68 | } |
| 69 | |
| 70 | .sc-elementor-modal__content { |
| 71 | box-sizing: border-box; |
| 72 | position: absolute; |
| 73 | width: var(--sc-dialog-width, 60rem); |
| 74 | max-width: 90%; |
| 75 | max-height: 95%; |
| 76 | overflow: auto; |
| 77 | font-family: Roboto, Arial, Helvetica, sans-serif; |
| 78 | background-color: var(--e-a-bg-default); |
| 79 | border-radius: 3px; |
| 80 | box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2); |
| 81 | text-align: center; |
| 82 | } |
| 83 | |
| 84 | .sc-elementor-modal__title { |
| 85 | text-align: left; |
| 86 | line-height: 0; |
| 87 | } |
| 88 | |
| 89 | .sc-elementor-modal__header { |
| 90 | padding: 15px 20px; |
| 91 | border-block-end: var(--e-a-border); |
| 92 | display: flex; |
| 93 | justify-content: space-between; |
| 94 | align-items: center; |
| 95 | position: sticky; |
| 96 | top: 0; |
| 97 | background-color: var(--e-a-bg-default); |
| 98 | } |
| 99 | |
| 100 | .sc-elementor-modal__card-container { |
| 101 | display: flex; |
| 102 | width: 100%; |
| 103 | justify-content: center; |
| 104 | align-items: center; |
| 105 | } |
| 106 | |
| 107 | .sc-elementor-modal__card-actions { |
| 108 | display: flex; |
| 109 | justify-content: space-between; |
| 110 | align-items: center; |
| 111 | } |
| 112 | |
| 113 | .sc-elementor-modal__card { |
| 114 | flex-basis: 50%; |
| 115 | cursor: pointer; |
| 116 | text-align: center; |
| 117 | transition: box-shadow 0.3s ease; |
| 118 | margin: calc(30px / 2); |
| 119 | padding: 8px; |
| 120 | border: var(--e-a-border); |
| 121 | border-radius: 3px; |
| 122 | display: flex; |
| 123 | flex-direction: column; |
| 124 | gap: 8px; |
| 125 | } |
| 126 | |
| 127 | .sc-elementor-modal__card img { |
| 128 | width: 100%; |
| 129 | height: 370px; |
| 130 | object-fit: cover; |
| 131 | border-radius: 3px; |
| 132 | } |
| 133 | |
| 134 | .sc-elementor-modal__card-title { |
| 135 | display: flex; |
| 136 | justify-content: space-between; |
| 137 | font-size: 12px; |
| 138 | line-height: 1; |
| 139 | align-items: center; |
| 140 | } |
| 141 | |
| 142 | #sc-elementor-modal-close.sc-elementor-modal__close { |
| 143 | background: none; |
| 144 | border: none; |
| 145 | font-size: 13px; |
| 146 | color: var(--e-a-color-txt); |
| 147 | cursor: pointer; |
| 148 | transition: opacity 0.3s ease; |
| 149 | line-height: 0; |
| 150 | } |
| 151 | |
| 152 | #sc-elementor-modal-close.sc-elementor-modal__close:hover { |
| 153 | opacity: 0.8; |
| 154 | } |
| 155 | |
| 156 | #sc-elementor-modal-close.sc-elementor-modal__close:focus-visible { |
| 157 | outline: 2px solid #fff; |
| 158 | outline-offset: 2px; |
| 159 | border-radius: 1px; |
| 160 | } |
| 161 | |
| 162 | /* Empty state styling */ |
| 163 | .sc-elementor-empty-state { |
| 164 | padding: 30px; |
| 165 | font-size: 14px; |
| 166 | color: var(--e-a-color-txt); |
| 167 | text-align: center; |
| 168 | width: 100%; |
| 169 | } |
| 170 | |
| 171 | /* Product Review Content widget - minimize in editor to not affect layout */ |
| 172 | .elementor-widget-surecart-product-review-content { |
| 173 | position: absolute !important; |
| 174 | width: 0 !important; |
| 175 | height: 0 !important; |
| 176 | min-width: 0 !important; |
| 177 | min-height: 0 !important; |
| 178 | padding: 0 !important; |
| 179 | margin: 0 !important; |
| 180 | overflow: hidden !important; |
| 181 | opacity: 0 !important; |
| 182 | pointer-events: none !important; |
| 183 | } |
| 184 | |
| 185 | /* Responsive adjustments for when fewer templates are shown */ |
| 186 | .sc-elementor-modal.surecart-product .sc-elementor-modal__card-container, |
| 187 | .sc-elementor-modal.loop-item .sc-elementor-modal__card-container { |
| 188 | justify-content: center; |
| 189 | padding: 20px; |
| 190 | } |
| 191 | |
| 192 | /* Elementor Template selector modal - Responsive styles */ |
| 193 | @media (max-width: 768px) { |
| 194 | .sc-elementor-modal__content { |
| 195 | width: 100%; |
| 196 | height: auto; |
| 197 | max-height: 90%; |
| 198 | } |
| 199 | |
| 200 | .sc-elementor-modal__card-container { |
| 201 | flex-direction: column; |
| 202 | } |
| 203 | |
| 204 | .sc-elementor-modal__header { |
| 205 | padding: 20px; |
| 206 | } |
| 207 | |
| 208 | .sc-elementor-modal__card { |
| 209 | flex-basis: 100%; |
| 210 | width: 100%; |
| 211 | } |
| 212 | |
| 213 | .sc-elementor-modal__card img { |
| 214 | height: 100%; |
| 215 | } |
| 216 | |
| 217 | .sc-elementor-modal__close { |
| 218 | font-size: var(--sc-font-size-medium, 16px); |
| 219 | } |
| 220 | } |
| 221 |