| 1 |
/* Compound Interest Calculator — bkbg-cic-* */ |
| 2 |
.bkbg-cic-app { |
| 3 |
box-sizing: border-box; |
| 4 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 5 |
} |
| 6 |
.bkbg-cic-app *, .bkbg-cic-app *::before, .bkbg-cic-app *::after { box-sizing: border-box; } |
| 7 |
|
| 8 |
.bkbg-cic-wrap { |
| 9 |
max-width: 580px; |
| 10 |
margin: 0 auto; |
| 11 |
background: #fff; |
| 12 |
border-radius: 16px; |
| 13 |
padding: 36px 32px; |
| 14 |
box-shadow: 0 4px 24px rgba(0,0,0,0.09); |
| 15 |
} |
| 16 |
.bkbg-cic-header { margin-bottom: 22px; } |
| 17 |
.bkbg-cic-title { |
| 18 |
font-family: var(--bkcic-title-font-family, inherit); |
| 19 |
font-size: var(--bkcic-title-font-size-d, 28px); |
| 20 |
font-weight: var(--bkcic-title-font-weight, 700); |
| 21 |
line-height: var(--bkcic-title-line-height-d, 1.2); |
| 22 |
text-transform: var(--bkcic-title-text-transform, none); |
| 23 |
font-style: var(--bkcic-title-font-style, normal); |
| 24 |
text-decoration: var(--bkcic-title-text-decoration, none); |
| 25 |
letter-spacing: var(--bkcic-title-letter-spacing-d, normal); |
| 26 |
word-spacing: var(--bkcic-title-word-spacing-d, normal); |
| 27 |
margin: 0 0 6px; |
| 28 |
} |
| 29 |
.bkbg-cic-subtitle { font-size: 15px; margin: 0; opacity: .7; } |
| 30 |
|
| 31 |
.bkbg-cic-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } |
| 32 |
.bkbg-cic-field { flex: 1; min-width: 140px; } |
| 33 |
.bkbg-cic-label { |
| 34 |
display: block; |
| 35 |
font-size: 12px; |
| 36 |
font-weight: 600; |
| 37 |
color: #374151; |
| 38 |
margin-bottom: 4px; |
| 39 |
text-transform: uppercase; |
| 40 |
letter-spacing: .04em; |
| 41 |
} |
| 42 |
.bkbg-cic-input, .bkbg-cic-select { |
| 43 |
width: 100%; |
| 44 |
padding: 10px 12px; |
| 45 |
font-size: 15px; |
| 46 |
font-family: inherit; |
| 47 |
border-radius: 8px; |
| 48 |
border: 1.5px solid #e5e7eb; |
| 49 |
outline: none; |
| 50 |
background: #fff; |
| 51 |
transition: border-color .15s; |
| 52 |
-webkit-appearance: none; |
| 53 |
appearance: none; |
| 54 |
} |
| 55 |
.bkbg-cic-input:focus, .bkbg-cic-select:focus { |
| 56 |
border-color: #6c3fb5; |
| 57 |
box-shadow: 0 0 0 3px rgba(108,63,181,.12); |
| 58 |
} |
| 59 |
.bkbg-cic-select { cursor: pointer; } |
| 60 |
.bkbg-cic-freq-field { margin-bottom: 20px; } |
| 61 |
|
| 62 |
.bkbg-cic-result { |
| 63 |
background: #6c3fb5; |
| 64 |
border-radius: 8px; |
| 65 |
padding: 24px; |
| 66 |
margin-bottom: 16px; |
| 67 |
} |
| 68 |
.bkbg-cic-result-label { font-size: 13px; font-weight: 600; opacity: .8; margin-bottom: 4px; } |
| 69 |
.bkbg-cic-result-amount { |
| 70 |
font-family: var(--bkcic-result-font-family, inherit); |
| 71 |
font-size: var(--bkcic-result-font-size-d, 48px); |
| 72 |
font-weight: var(--bkcic-result-font-weight, 800); |
| 73 |
line-height: var(--bkcic-result-line-height-d, 1.1); |
| 74 |
text-transform: var(--bkcic-result-text-transform, none); |
| 75 |
font-style: var(--bkcic-result-font-style, normal); |
| 76 |
text-decoration: var(--bkcic-result-text-decoration, none); |
| 77 |
letter-spacing: var(--bkcic-result-letter-spacing-d, normal); |
| 78 |
word-spacing: var(--bkcic-result-word-spacing-d, normal); |
| 79 |
margin-bottom: 16px; |
| 80 |
} |
| 81 |
.bkbg-cic-result-breakdown { display: flex; gap: 20px; flex-wrap: wrap; } |
| 82 |
.bkbg-cic-result-sub-label { font-size: 12px; opacity: .7; margin-bottom: 2px; } |
| 83 |
.bkbg-cic-result-sub-value { font-size: 18px; font-weight: 700; } |
| 84 |
|
| 85 |
.bkbg-cic-bar-wrap { margin-bottom: 20px; } |
| 86 |
.bkbg-cic-bar-track { height: 10px; border-radius: 5px; background: #e5e7eb; overflow: hidden; } |
| 87 |
.bkbg-cic-bar-inner { display: flex; height: 100%; } |
| 88 |
.bkbg-cic-bar-principal { background: #3b82f6; transition: width .4s; } |
| 89 |
.bkbg-cic-bar-interest { flex: 1; background: #10b981; } |
| 90 |
.bkbg-cic-bar-legend { |
| 91 |
display: flex; |
| 92 |
justify-content: space-between; |
| 93 |
font-size: 12px; |
| 94 |
color: #6b7280; |
| 95 |
margin-top: 5px; |
| 96 |
flex-wrap: wrap; |
| 97 |
gap: 4px; |
| 98 |
} |
| 99 |
|
| 100 |
.bkbg-cic-table-wrap { overflow-x: auto; } |
| 101 |
.bkbg-cic-table { |
| 102 |
width: 100%; |
| 103 |
border-collapse: collapse; |
| 104 |
font-size: 13px; |
| 105 |
border-radius: 8px; |
| 106 |
overflow: hidden; |
| 107 |
} |
| 108 |
.bkbg-cic-table th { |
| 109 |
padding: 10px 12px; |
| 110 |
text-align: left; |
| 111 |
background: #f3f4f6; |
| 112 |
color: #374151; |
| 113 |
font-weight: 700; |
| 114 |
font-size: 12px; |
| 115 |
text-transform: uppercase; |
| 116 |
border-bottom: 1.5px solid #e5e7eb; |
| 117 |
} |
| 118 |
.bkbg-cic-table td { |
| 119 |
padding: 9px 12px; |
| 120 |
border-bottom: 1px solid #e5e7eb; |
| 121 |
} |
| 122 |
.bkbg-cic-table tr:last-child td { border-bottom: none; } |
| 123 |
.bkbg-cic-table tr:hover td { background: #f9fafb; } |
| 124 |
|
| 125 |
@media (max-width: 1024px) { |
| 126 |
.bkbg-cic-title { |
| 127 |
font-size: var(--bkcic-title-font-size-t, var(--bkcic-title-font-size-d, 28px)); |
| 128 |
line-height: var(--bkcic-title-line-height-t, var(--bkcic-title-line-height-d, 1.2)); |
| 129 |
letter-spacing: var(--bkcic-title-letter-spacing-t, var(--bkcic-title-letter-spacing-d, normal)); |
| 130 |
word-spacing: var(--bkcic-title-word-spacing-t, var(--bkcic-title-word-spacing-d, normal)); |
| 131 |
} |
| 132 |
.bkbg-cic-result-amount { |
| 133 |
font-size: var(--bkcic-result-font-size-t, var(--bkcic-result-font-size-d, 48px)); |
| 134 |
line-height: var(--bkcic-result-line-height-t, var(--bkcic-result-line-height-d, 1.1)); |
| 135 |
letter-spacing: var(--bkcic-result-letter-spacing-t, var(--bkcic-result-letter-spacing-d, normal)); |
| 136 |
word-spacing: var(--bkcic-result-word-spacing-t, var(--bkcic-result-word-spacing-d, normal)); |
| 137 |
} |
| 138 |
} |
| 139 |
|
| 140 |
@media (max-width: 767px) { |
| 141 |
.bkbg-cic-title { |
| 142 |
font-size: var(--bkcic-title-font-size-m, var(--bkcic-title-font-size-t, var(--bkcic-title-font-size-d, 28px))); |
| 143 |
line-height: var(--bkcic-title-line-height-m, var(--bkcic-title-line-height-t, var(--bkcic-title-line-height-d, 1.2))); |
| 144 |
letter-spacing: var(--bkcic-title-letter-spacing-m, var(--bkcic-title-letter-spacing-t, var(--bkcic-title-letter-spacing-d, normal))); |
| 145 |
word-spacing: var(--bkcic-title-word-spacing-m, var(--bkcic-title-word-spacing-t, var(--bkcic-title-word-spacing-d, normal))); |
| 146 |
} |
| 147 |
.bkbg-cic-result-amount { |
| 148 |
font-size: var(--bkcic-result-font-size-m, var(--bkcic-result-font-size-t, var(--bkcic-result-font-size-d, 48px))); |
| 149 |
line-height: var(--bkcic-result-line-height-m, var(--bkcic-result-line-height-t, var(--bkcic-result-line-height-d, 1.1))); |
| 150 |
letter-spacing: var(--bkcic-result-letter-spacing-m, var(--bkcic-result-letter-spacing-t, var(--bkcic-result-letter-spacing-d, normal))); |
| 151 |
word-spacing: var(--bkcic-result-word-spacing-m, var(--bkcic-result-word-spacing-t, var(--bkcic-result-word-spacing-d, normal))); |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
@media (max-width: 520px) { |
| 156 |
.bkbg-cic-wrap { padding: 24px 16px; } |
| 157 |
.bkbg-cic-result-amount { font-size: 36px; } |
| 158 |
} |
| 159 |
|