style.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. .charge-layout {
  2. position: relative;
  3. min-height: 100vh;
  4. }
  5. .charge-page {
  6. width: 100%;
  7. padding: 0;
  8. min-height: inherit;
  9. &__card {
  10. border-radius: 0;
  11. overflow: hidden;
  12. min-height: inherit;
  13. }
  14. &__header {
  15. display: flex;
  16. align-items: center;
  17. justify-content: space-between;
  18. padding: 10px;
  19. background: var(--bg-head);
  20. color: var(--text-normal);
  21. h1 {
  22. font-size: 1.125rem;
  23. font-weight: 700;
  24. margin: 0;
  25. }
  26. }
  27. &__close {
  28. width: 32px;
  29. height: 32px;
  30. background: transparent;
  31. font-size: 1.25rem;
  32. cursor: pointer;
  33. &:hover {
  34. background: var(--bg-subtle);
  35. color: var(--text-primary);
  36. }
  37. }
  38. &__body {
  39. padding: 16px 20px 24px;
  40. }
  41. &__label {
  42. font-size: 0.8125rem;
  43. font-weight: 600;
  44. color: var(--text-secondary);
  45. margin-bottom: 10px;
  46. display: block;
  47. }
  48. &__amount-input {
  49. width: 100%;
  50. padding: 6px 14px;
  51. border: 1px solid var(--border-default);
  52. border-radius: 8px;
  53. font-size: 1.125rem;
  54. font-weight: 600;
  55. outline: none;
  56. text-align: right;
  57. background: var(--bg-page);
  58. color: var(--fg-default);
  59. &:focus {
  60. border-color: #3b82f6;
  61. box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  62. }
  63. }
  64. &__quick-btns {
  65. display: flex;
  66. gap: 6px;
  67. margin-top: 8px;
  68. }
  69. &__quick-btn {
  70. flex: 1;
  71. padding: 8px 0;
  72. border: 1px solid var(--border-default);
  73. border-radius: 8px;
  74. font-size: 0.75rem;
  75. font-weight: 500;
  76. background: var(--bg-page, #fff);
  77. color: var(--fg-default);
  78. cursor: pointer;
  79. transition: all 0.15s;
  80. &:hover {
  81. background: var(--bg-subtle);
  82. border-color: #3b82f6;
  83. color: #bb1a98;
  84. }
  85. }
  86. &__method-section {
  87. margin-top: 16px;
  88. }
  89. &__method-grid {
  90. display: grid;
  91. grid-template-columns: repeat(4, 1fr);
  92. gap: 6px;
  93. margin-top: 8px;
  94. }
  95. &__method-btn {
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. gap: 4px;
  100. padding: 10px 4px;
  101. border: 1px solid var(--border-default);
  102. border-radius: 8px;
  103. font-size: 0.6875rem;
  104. font-weight: 500;
  105. background: var(--bg-page);
  106. color: var(--fg-default);
  107. cursor: pointer;
  108. transition: all 0.15s;
  109. &:hover:not(&--active) {
  110. background: var(--bg-subtle);
  111. }
  112. &--active {
  113. border-color: #3b82f6;
  114. background: rgba(59, 130, 246, 0.08);
  115. color: #3b82f6;
  116. font-weight: 600;
  117. }
  118. }
  119. &__method-icon {
  120. font-size: 1.125rem;
  121. line-height: 1;
  122. padding: 2px 27px;
  123. > svg {
  124. fill: var(--text-primary);
  125. }
  126. }
  127. &__receipt {
  128. width: 100%;
  129. margin-top: 20px;
  130. padding: 16px;
  131. background: var(--bg-subtle);
  132. border-radius: 8px;
  133. }
  134. &__receipt-row {
  135. display: flex;
  136. justify-content: space-between;
  137. font-size: 0.8125rem;
  138. padding: 4px 0;
  139. color: var(--text-secondary);
  140. &--total {
  141. font-size: 0.9375rem;
  142. font-weight: 700;
  143. color: var(--fg-default);
  144. border-top: 1px solid var(--border-default);
  145. margin-top: 8px;
  146. padding-top: 10px;
  147. }
  148. }
  149. &__submit {
  150. width: 100%;
  151. padding: 10px 0;
  152. margin-top: 16px;
  153. border: none;
  154. border-radius: 8px;
  155. background: #2a8db3;
  156. color: #fff;
  157. font-size: 1rem;
  158. font-weight: 600;
  159. cursor: pointer;
  160. transition: background 0.15s;
  161. &:hover {
  162. background: #82b917;
  163. }
  164. &:disabled {
  165. background: var(--text-muted);
  166. cursor: not-allowed;
  167. }
  168. }
  169. // 결제 결과
  170. &__result {
  171. padding: 40px 20px;
  172. min-height: inherit;
  173. display: flex;
  174. flex-direction: column;
  175. align-items: center;
  176. justify-content: center;
  177. }
  178. &__result-icon {
  179. width: 56px;
  180. height: 56px;
  181. border-radius: 50%;
  182. display: inline-flex;
  183. align-items: center;
  184. justify-content: center;
  185. font-size: 1.5rem;
  186. font-weight: 700;
  187. margin-bottom: 16px;
  188. &--success {
  189. background: #dcfce7;
  190. color: #16a34a;
  191. }
  192. &--error {
  193. background: #fee2e2;
  194. color: #dc2626;
  195. }
  196. }
  197. &__result-message {
  198. font-size: 1rem;
  199. font-weight: 600;
  200. }
  201. &__result-code {
  202. font-size: 0.75rem;
  203. color: var(--text-muted);
  204. margin-bottom: 16px;
  205. }
  206. &__spinner {
  207. width: 40px;
  208. height: 40px;
  209. border: 3px solid var(--border-default);
  210. border-top-color: #3b82f6;
  211. border-radius: 50%;
  212. animation: charge-spin 0.8s linear infinite;
  213. margin: 0 auto 16px;
  214. }
  215. }
  216. @keyframes charge-spin {
  217. to { transform: rotate(360deg); }
  218. }