| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- .charge-layout {
- position: relative;
- min-height: 100vh;
- }
- .charge-page {
- width: 100%;
- padding: 0;
- min-height: inherit;
- &__card {
- border-radius: 0;
- overflow: hidden;
- min-height: inherit;
- }
- &__header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px;
- background: var(--bg-head);
- color: var(--text-normal);
- h1 {
- font-size: 1.125rem;
- font-weight: 700;
- margin: 0;
- }
- }
- &__close {
- width: 32px;
- height: 32px;
- background: transparent;
- font-size: 1.25rem;
- cursor: pointer;
- &:hover {
- background: var(--bg-subtle);
- color: var(--text-primary);
- }
- }
- &__body {
- padding: 16px 20px 24px;
- }
- &__label {
- font-size: 0.8125rem;
- font-weight: 600;
- color: var(--text-secondary);
- margin-bottom: 10px;
- display: block;
- }
- &__amount-input {
- width: 100%;
- padding: 6px 14px;
- border: 1px solid var(--border-default);
- border-radius: 8px;
- font-size: 1.125rem;
- font-weight: 600;
- outline: none;
- text-align: right;
- background: var(--bg-page);
- color: var(--fg-default);
- &:focus {
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
- }
- }
- &__quick-btns {
- display: flex;
- gap: 6px;
- margin-top: 8px;
- }
- &__quick-btn {
- flex: 1;
- padding: 8px 0;
- border: 1px solid var(--border-default);
- border-radius: 8px;
- font-size: 0.75rem;
- font-weight: 500;
- background: var(--bg-page, #fff);
- color: var(--fg-default);
- cursor: pointer;
- transition: all 0.15s;
- &:hover {
- background: var(--bg-subtle);
- border-color: #3b82f6;
- color: #bb1a98;
- }
- }
- &__method-section {
- margin-top: 16px;
- }
- &__method-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 6px;
- margin-top: 8px;
- }
- &__method-btn {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- padding: 10px 4px;
- border: 1px solid var(--border-default);
- border-radius: 8px;
- font-size: 0.6875rem;
- font-weight: 500;
- background: var(--bg-page);
- color: var(--fg-default);
- cursor: pointer;
- transition: all 0.15s;
- &:hover:not(&--active) {
- background: var(--bg-subtle);
- }
- &--active {
- border-color: #3b82f6;
- background: rgba(59, 130, 246, 0.08);
- color: #3b82f6;
- font-weight: 600;
- }
- }
- &__method-icon {
- font-size: 1.125rem;
- line-height: 1;
- padding: 2px 27px;
- > svg {
- fill: var(--text-primary);
- }
- }
- &__receipt {
- width: 100%;
- margin-top: 20px;
- padding: 16px;
- background: var(--bg-subtle);
- border-radius: 8px;
- }
- &__receipt-row {
- display: flex;
- justify-content: space-between;
- font-size: 0.8125rem;
- padding: 4px 0;
- color: var(--text-secondary);
- &--total {
- font-size: 0.9375rem;
- font-weight: 700;
- color: var(--fg-default);
- border-top: 1px solid var(--border-default);
- margin-top: 8px;
- padding-top: 10px;
- }
- }
- &__submit {
- width: 100%;
- padding: 10px 0;
- margin-top: 16px;
- border: none;
- border-radius: 8px;
- background: #2a8db3;
- color: #fff;
- font-size: 1rem;
- font-weight: 600;
- cursor: pointer;
- transition: background 0.15s;
- &:hover {
- background: #82b917;
- }
- &:disabled {
- background: var(--text-muted);
- cursor: not-allowed;
- }
- }
- // 결제 결과
- &__result {
- padding: 40px 20px;
- min-height: inherit;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- &__result-icon {
- width: 56px;
- height: 56px;
- border-radius: 50%;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- font-size: 1.5rem;
- font-weight: 700;
- margin-bottom: 16px;
- &--success {
- background: #dcfce7;
- color: #16a34a;
- }
- &--error {
- background: #fee2e2;
- color: #dc2626;
- }
- }
- &__result-message {
- font-size: 1rem;
- font-weight: 600;
- }
- &__result-code {
- font-size: 0.75rem;
- color: var(--text-muted);
- margin-bottom: 16px;
- }
- &__spinner {
- width: 40px;
- height: 40px;
- border: 3px solid var(--border-default);
- border-top-color: #3b82f6;
- border-radius: 50%;
- animation: charge-spin 0.8s linear infinite;
- margin: 0 auto 16px;
- }
- }
- @keyframes charge-spin {
- to { transform: rotate(360deg); }
- }
|