| 1 |
/* How It Works — Style */ |
| 2 |
.bkbg-hiw-wrapper { |
| 3 |
box-sizing: border-box; |
| 4 |
} |
| 5 |
|
| 6 |
.bkbg-hiw-steps { |
| 7 |
display: flex; |
| 8 |
flex-wrap: wrap; |
| 9 |
gap: var(--bkbg-hiw-gap, 40px); |
| 10 |
} |
| 11 |
|
| 12 |
/* Horizontal layout */ |
| 13 |
.bkbg-hiw-steps.bkbg-hiw--horizontal { |
| 14 |
flex-direction: row; |
| 15 |
align-items: flex-start; |
| 16 |
} |
| 17 |
.bkbg-hiw-steps.bkbg-hiw--horizontal .bkbg-hiw-step { |
| 18 |
flex: 1 1 0; |
| 19 |
min-width: 160px; |
| 20 |
} |
| 21 |
|
| 22 |
/* Vertical layout */ |
| 23 |
.bkbg-hiw-steps.bkbg-hiw--vertical { |
| 24 |
flex-direction: column; |
| 25 |
} |
| 26 |
.bkbg-hiw-steps.bkbg-hiw--vertical .bkbg-hiw-step { |
| 27 |
display: flex; |
| 28 |
flex-direction: row; |
| 29 |
align-items: flex-start; |
| 30 |
gap: 20px; |
| 31 |
width: 100%; |
| 32 |
} |
| 33 |
.bkbg-hiw-steps.bkbg-hiw--vertical .bkbg-hiw-step-body { |
| 34 |
flex: 1; |
| 35 |
} |
| 36 |
|
| 37 |
/* Step card */ |
| 38 |
.bkbg-hiw-step { |
| 39 |
text-align: var(--bkbg-hiw-text-align, center); |
| 40 |
} |
| 41 |
|
| 42 |
.bkbg-hiw-step--card { background: var(--bkbg-hiw-card-bg, #ffffff); padding: var(--bkbg-hiw-card-pad, 28px); border-radius: var(--bkbg-hiw-card-r, 12px); box-shadow: 0 4px 20px rgba(0,0,0,0.07); } |
| 43 |
.bkbg-hiw-step--bordered { background: var(--bkbg-hiw-card-bg, #ffffff); padding: var(--bkbg-hiw-card-pad, 28px); border-radius: var(--bkbg-hiw-card-r, 12px); border: 1.5px solid var(--bkbg-hiw-card-border, #e5e7eb); } |
| 44 |
.bkbg-hiw-step--shadow { background: var(--bkbg-hiw-card-bg, #ffffff); padding: var(--bkbg-hiw-card-pad, 28px); border-radius: var(--bkbg-hiw-card-r, 12px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); } |
| 45 |
|
| 46 |
/* Number badge */ |
| 47 |
.bkbg-hiw-badge { |
| 48 |
display: inline-flex; |
| 49 |
align-items: center; |
| 50 |
justify-content: center; |
| 51 |
width: var(--bkbg-hiw-badge-sz, 52px); |
| 52 |
height: var(--bkbg-hiw-badge-sz, 52px); |
| 53 |
background: var(--bkbg-hiw-num-bg, #6c3fb5); |
| 54 |
color: var(--bkbg-hiw-num-color, #ffffff); |
| 55 |
font-size: var(--bkbg-hiw-num-sz, 22px); |
| 56 |
font-weight: 700; |
| 57 |
margin-bottom: 14px; |
| 58 |
flex-shrink: 0; |
| 59 |
} |
| 60 |
.bkbg-hiw-badge--circle { border-radius: 50%; } |
| 61 |
.bkbg-hiw-badge--square { border-radius: 8px; } |
| 62 |
.bkbg-hiw-badge--plain { background: transparent; color: var(--bkbg-hiw-num-bg, #6c3fb5); } |
| 63 |
.bkbg-hiw-badge--outlined { background: transparent; color: var(--bkbg-hiw-num-bg, #6c3fb5); border: 2px solid var(--bkbg-hiw-num-bg, #6c3fb5); border-radius: 50%; } |
| 64 |
|
| 65 |
.bkbg-hiw-icon { |
| 66 |
font-size: var(--bkbg-hiw-icon-sz, 36px); |
| 67 |
line-height: 1; |
| 68 |
margin-bottom: 10px; |
| 69 |
display: block; |
| 70 |
} |
| 71 |
.bkbg-hiw-icon svg { width: 1em; height: 1em; fill: currentColor; } |
| 72 |
.bkbg-hiw-icon .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; } |
| 73 |
.bkbg-hiw-icon .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; } |
| 74 |
|
| 75 |
.bkbg-hiw-step .bkbg-hiw-title, |
| 76 |
.bkbg-hiw-step h3.bkbg-hiw-title { |
| 77 |
font-family: var(--bkbg-hiw-tt-font-family, inherit); |
| 78 |
font-size: var(--bkbg-hiw-tt-font-size-d, var(--bkbg-hiw-title-sz, 18px)); |
| 79 |
font-weight: var(--bkbg-hiw-tt-font-weight, 700); |
| 80 |
font-style: var(--bkbg-hiw-tt-font-style, normal); |
| 81 |
text-decoration: var(--bkbg-hiw-tt-text-decoration, none); |
| 82 |
text-transform: var(--bkbg-hiw-tt-text-transform, none); |
| 83 |
line-height: var(--bkbg-hiw-tt-line-height-d, 1.3); |
| 84 |
letter-spacing: var(--bkbg-hiw-tt-letter-spacing-d, normal); |
| 85 |
word-spacing: var(--bkbg-hiw-tt-word-spacing-d, normal); |
| 86 |
color: var(--bkbg-hiw-title-color, #111827); |
| 87 |
margin: 0 0 8px; |
| 88 |
} |
| 89 |
|
| 90 |
.bkbg-hiw-step .bkbg-hiw-desc { |
| 91 |
font-family: var(--bkbg-hiw-desc-font-family, inherit); |
| 92 |
font-size: var(--bkbg-hiw-desc-font-size-d, var(--bkbg-hiw-desc-sz, 14px)); |
| 93 |
font-weight: var(--bkbg-hiw-desc-font-weight, 400); |
| 94 |
font-style: var(--bkbg-hiw-desc-font-style, normal); |
| 95 |
text-decoration: var(--bkbg-hiw-desc-text-decoration, none); |
| 96 |
text-transform: var(--bkbg-hiw-desc-text-transform, none); |
| 97 |
line-height: var(--bkbg-hiw-desc-line-height-d, 1.65); |
| 98 |
letter-spacing: var(--bkbg-hiw-desc-letter-spacing-d, normal); |
| 99 |
word-spacing: var(--bkbg-hiw-desc-word-spacing-d, normal); |
| 100 |
color: var(--bkbg-hiw-desc-color, #6b7280); |
| 101 |
margin: 0; |
| 102 |
} |
| 103 |
|
| 104 |
@media (max-width:1024px) { |
| 105 |
.bkbg-hiw-step .bkbg-hiw-title, |
| 106 |
.bkbg-hiw-step h3.bkbg-hiw-title { |
| 107 |
font-size: var(--bkbg-hiw-tt-font-size-t, var(--bkbg-hiw-tt-font-size-d, var(--bkbg-hiw-title-sz, 18px))); |
| 108 |
line-height: var(--bkbg-hiw-tt-line-height-t, var(--bkbg-hiw-tt-line-height-d, 1.3)); |
| 109 |
letter-spacing: var(--bkbg-hiw-tt-letter-spacing-t, var(--bkbg-hiw-tt-letter-spacing-d, normal)); |
| 110 |
word-spacing: var(--bkbg-hiw-tt-word-spacing-t, var(--bkbg-hiw-tt-word-spacing-d, normal)); |
| 111 |
} |
| 112 |
.bkbg-hiw-step .bkbg-hiw-desc { |
| 113 |
font-size: var(--bkbg-hiw-desc-font-size-t, var(--bkbg-hiw-desc-font-size-d, var(--bkbg-hiw-desc-sz, 14px))); |
| 114 |
line-height: var(--bkbg-hiw-desc-line-height-t, var(--bkbg-hiw-desc-line-height-d, 1.65)); |
| 115 |
letter-spacing: var(--bkbg-hiw-desc-letter-spacing-t, var(--bkbg-hiw-desc-letter-spacing-d, normal)); |
| 116 |
word-spacing: var(--bkbg-hiw-desc-word-spacing-t, var(--bkbg-hiw-desc-word-spacing-d, normal)); |
| 117 |
} |
| 118 |
} |
| 119 |
@media (max-width:767px) { |
| 120 |
.bkbg-hiw-step .bkbg-hiw-title, |
| 121 |
.bkbg-hiw-step h3.bkbg-hiw-title { |
| 122 |
font-size: var(--bkbg-hiw-tt-font-size-m, var(--bkbg-hiw-tt-font-size-t, var(--bkbg-hiw-tt-font-size-d, var(--bkbg-hiw-title-sz, 18px)))); |
| 123 |
line-height: var(--bkbg-hiw-tt-line-height-m, var(--bkbg-hiw-tt-line-height-t, var(--bkbg-hiw-tt-line-height-d, 1.3))); |
| 124 |
letter-spacing: var(--bkbg-hiw-tt-letter-spacing-m, var(--bkbg-hiw-tt-letter-spacing-t, var(--bkbg-hiw-tt-letter-spacing-d, normal))); |
| 125 |
word-spacing: var(--bkbg-hiw-tt-word-spacing-m, var(--bkbg-hiw-tt-word-spacing-t, var(--bkbg-hiw-tt-word-spacing-d, normal))); |
| 126 |
} |
| 127 |
.bkbg-hiw-step .bkbg-hiw-desc { |
| 128 |
font-size: var(--bkbg-hiw-desc-font-size-m, var(--bkbg-hiw-desc-font-size-t, var(--bkbg-hiw-desc-font-size-d, var(--bkbg-hiw-desc-sz, 14px)))); |
| 129 |
line-height: var(--bkbg-hiw-desc-line-height-m, var(--bkbg-hiw-desc-line-height-t, var(--bkbg-hiw-desc-line-height-d, 1.65))); |
| 130 |
letter-spacing: var(--bkbg-hiw-desc-letter-spacing-m, var(--bkbg-hiw-desc-letter-spacing-t, var(--bkbg-hiw-desc-letter-spacing-d, normal))); |
| 131 |
word-spacing: var(--bkbg-hiw-desc-word-spacing-m, var(--bkbg-hiw-desc-word-spacing-t, var(--bkbg-hiw-desc-word-spacing-d, normal))); |
| 132 |
} |
| 133 |
} |
| 134 |
|
| 135 |
/* Connector */ |
| 136 |
.bkbg-hiw-connector { |
| 137 |
flex-shrink: 0; |
| 138 |
background: var(--bkbg-hiw-connector-color, #e5e7eb); |
| 139 |
} |
| 140 |
.bkbg-hiw-connector--h { height: 2px; width: var(--bkbg-hiw-gap, 40px); align-self: center; margin-top: calc(var(--bkbg-hiw-badge-sz, 52px) / -1.6); } |
| 141 |
.bkbg-hiw-connector--v { width: 2px; height: var(--bkbg-hiw-gap, 40px); margin-left: calc(var(--bkbg-hiw-badge-sz, 52px) / 2); } |
| 142 |
.bkbg-hiw-connector--dashed { background: repeating-linear-gradient(90deg, var(--bkbg-hiw-connector-color, #e5e7eb) 0, var(--bkbg-hiw-connector-color, #e5e7eb) 8px, transparent 8px, transparent 14px); } |
| 143 |
.bkbg-hiw-connector--dotted { background: repeating-linear-gradient(90deg, var(--bkbg-hiw-connector-color, #e5e7eb) 0, var(--bkbg-hiw-connector-color, #e5e7eb) 3px, transparent 3px, transparent 10px); } |
| 144 |
.bkbg-hiw-connector--v.bkbg-hiw-connector--dashed { background: repeating-linear-gradient(180deg, var(--bkbg-hiw-connector-color, #e5e7eb) 0, var(--bkbg-hiw-connector-color, #e5e7eb) 8px, transparent 8px, transparent 14px); } |
| 145 |
.bkbg-hiw-connector--v.bkbg-hiw-connector--dotted { background: repeating-linear-gradient(180deg, var(--bkbg-hiw-connector-color, #e5e7eb) 0, var(--bkbg-hiw-connector-color, #e5e7eb) 3px, transparent 3px, transparent 10px); } |
| 146 |
|
| 147 |
/* Animation */ |
| 148 |
.bkbg-hiw-anim { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; } |
| 149 |
.bkbg-hiw-visible { opacity: 1; transform: none; } |
| 150 |
|
| 151 |
/* Responsive */ |
| 152 |
@media (max-width: 767px) { |
| 153 |
.bkbg-hiw-steps.bkbg-hiw--horizontal { |
| 154 |
flex-direction: column; |
| 155 |
} |
| 156 |
.bkbg-hiw-connector--h { display: none; } |
| 157 |
} |
| 158 |
|