| 1 |
.wpsc-chatbot__modal { |
| 2 |
position: fixed; |
| 3 |
inset: 0; |
| 4 |
display: none; |
| 5 |
align-items: center; |
| 6 |
justify-content: center; |
| 7 |
z-index: 10000001; |
| 8 |
pointer-events: none; |
| 9 |
} |
| 10 |
|
| 11 |
.wpsc-chatbot__modal--active { |
| 12 |
display: flex; |
| 13 |
pointer-events: auto; |
| 14 |
} |
| 15 |
|
| 16 |
.wpsc-chatbot__modal-backdrop { |
| 17 |
position: absolute; |
| 18 |
inset: 0; |
| 19 |
background: rgba(0, 0, 0, .5); |
| 20 |
} |
| 21 |
|
| 22 |
.wpsc-chatbot__modal-dialog { |
| 23 |
position: relative; |
| 24 |
width: calc(100% - 40px); |
| 25 |
max-width: 360px; |
| 26 |
padding: 24px 24px 10px 24px; |
| 27 |
background: #fff; |
| 28 |
border-radius: 12px; |
| 29 |
box-shadow: 0 10px 30px rgba(0, 0, 0, .15); |
| 30 |
text-align: center; |
| 31 |
z-index: 1; |
| 32 |
} |
| 33 |
|
| 34 |
.wpsc-chatbot__modal-cancel { |
| 35 |
position: absolute; |
| 36 |
top: 12px; |
| 37 |
right: 12px; |
| 38 |
width: 32px; |
| 39 |
height: 32px; |
| 40 |
border: 0; |
| 41 |
border-radius: 50%; |
| 42 |
background: transparent; |
| 43 |
cursor: pointer; |
| 44 |
font-size: 18px; |
| 45 |
line-height: 1; |
| 46 |
display: flex; |
| 47 |
align-items: center; |
| 48 |
justify-content: center; |
| 49 |
} |
| 50 |
|
| 51 |
.wpsc-chatbot__modal-cancel { |
| 52 |
color: #DCDCDC; |
| 53 |
} |
| 54 |
|
| 55 |
.wpsc-chatbot__modal-cancel:hover { |
| 56 |
background: #f5f5f5; |
| 57 |
color: #A0A0A0; |
| 58 |
cursor: pointer; |
| 59 |
} |
| 60 |
|
| 61 |
.wpsc-chatbot__modal-title { |
| 62 |
font-size: 18px; |
| 63 |
font-weight: 600; |
| 64 |
margin: 20px 0px 5px 0px; |
| 65 |
} |
| 66 |
|
| 67 |
.wpsc-chatbot__modal-content { |
| 68 |
font-size: 14px; |
| 69 |
line-height: 1.6; |
| 70 |
color: #666; |
| 71 |
margin-bottom: 24px; |
| 72 |
} |
| 73 |
|
| 74 |
.wpsc-chatbot__modal-footer-ask-me-later { |
| 75 |
font-size: 10px; |
| 76 |
line-height: 1.6; |
| 77 |
color: #DCDCDC; |
| 78 |
margin-top: 14px; |
| 79 |
display: block; |
| 80 |
width: 100%; |
| 81 |
text-align: right; |
| 82 |
transform-origin: right center; |
| 83 |
transition: color .2s ease, transform .2s ease; |
| 84 |
} |
| 85 |
|
| 86 |
.wpsc-chatbot__modal-footer-ask-me-later:hover { |
| 87 |
color: #A0A0A0; |
| 88 |
transform: scale(1.02); |
| 89 |
cursor: pointer; |
| 90 |
} |
| 91 |
|
| 92 |
.wpsc-chatbot__modal-reactions { |
| 93 |
display: flex; |
| 94 |
justify-content: center; |
| 95 |
gap: 20px; |
| 96 |
} |
| 97 |
|
| 98 |
.wpsc-chatbot__modal-reaction { |
| 99 |
width: 60px; |
| 100 |
height: 60px; |
| 101 |
border: 1px solid #e5e7eb; |
| 102 |
border-radius: 50%; |
| 103 |
background: #fff; |
| 104 |
cursor: pointer; |
| 105 |
font-size: 28px; |
| 106 |
transition: all .2s ease; |
| 107 |
display: flex; |
| 108 |
align-items: center; |
| 109 |
justify-content: center; |
| 110 |
} |
| 111 |
|
| 112 |
.wpsc-chatbot__modal-reaction:hover { |
| 113 |
transform: translateY(-2px); |
| 114 |
box-shadow: 0 4px 12px rgba(0, 0, 0, .1); |
| 115 |
} |
| 116 |
|
| 117 |
.wpsc-chatbot__modal-reaction--positive:hover { |
| 118 |
border-color: #22c55e; |
| 119 |
} |
| 120 |
|
| 121 |
.wpsc-chatbot__modal-reaction--negative:hover { |
| 122 |
border-color: #ef4444; |
| 123 |
} |
| 124 |
|
| 125 |
.wpsc-chatbot__modal-reaction--negative--selected { |
| 126 |
border-color: #ef4444; |
| 127 |
background: #fee2e2; |
| 128 |
|
| 129 |
} |
| 130 |
|
| 131 |
@media (max-width: 768px) { |
| 132 |
|
| 133 |
.wpsc-chatbot__modal-dialog { |
| 134 |
width: calc(100% - 30px); |
| 135 |
max-width: 340px; |
| 136 |
padding: 20px; |
| 137 |
} |
| 138 |
|
| 139 |
.wpsc-chatbot__modal-reaction { |
| 140 |
width: 54px; |
| 141 |
height: 54px; |
| 142 |
font-size: 24px; |
| 143 |
} |
| 144 |
} |