@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Keep section gaps independent of paragraph and figure margins. */
#reku-withdrawal > section { margin-block: var(--case-section-gap) 0; }
#reku-withdrawal > section > :last-child { margin-bottom: 0; }
#reku-withdrawal > header .case-overview { margin-bottom: 0; }
/* Reference sizes use a 360px design width; cqw scales with the phone. */
.withdrawal-design-impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.withdrawal-design-impact-card { padding: 16px; border: 1px solid #a5d8cd; background: #e9f5f1; color: #24221F; }
.withdrawal-design-impact-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.withdrawal-design-impact-card p { margin: 0; font-size: 16px; line-height: 1.5; }
@media (max-width: 540px) { .withdrawal-design-impact-grid { grid-template-columns: 1fr; } }
.refined-device { width: 320px; container-type: inline-size; }
.refined-fee-note { position: relative; align-self: stretch; margin: 20px 0 0; padding: 18px; border: 1px solid #a5d8cd; background: #e9f5f1; color: #24221F; text-align: left; font-size: 16px; line-height: 1.5; }
.refined-fee-note[hidden] { display: none; }
.refined-fee-note::before { content: ''; position: absolute; top: -9px; left: calc(50% - 9px); width: 16px; height: 16px; border-top: 1px solid #a5d8cd; border-left: 1px solid #a5d8cd; background: #e9f5f1; transform: rotate(45deg); }
.refined-fee-note strong { font-weight: 600; }
.refined-fee-note p { margin: 10px 0 0; }
.refined-app { position: absolute; inset: 2% 4.1%; overflow: hidden; border-radius: 28px; background: #f9f8f6; color: #24221F; font: 500 3.889cqw/1.4286 "Manrope", sans-serif; display: flex; flex-direction: column; }
.refined-app * { box-sizing: border-box; }
.refined-app button, .refined-app input { font: inherit; }
.refined-app button { cursor: pointer; }
.refined-app button:focus-visible, .refined-app input:focus-visible { outline: 2px solid #1BA7AC; outline-offset: 2px; }
.refined-app [hidden] { display: none !important; }
.refined-status { display: flex; justify-content: space-between; padding: 3cqw 5cqw 2cqw; font-size: 3.2cqw; font-weight: 600; }
.refined-header { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 4cqw; }
.refined-header h3 { margin: 0; color: #41403E; font: 700 4.444cqw/1.5 "Manrope", sans-serif; }
.refined-back { border: 0; background: transparent; color: inherit; font-size: 7cqw !important; line-height: 1 !important; padding: 0 1cqw; }
.refined-screen { flex: 1; min-height: 0; overflow-y: auto; padding: 3cqw 4cqw 6cqw; scrollbar-width: none; }
.refined-search { width: 100%; padding: 3cqw; border: 1px solid #dedede; border-radius: 3cqw; background: white; margin-bottom: 4cqw; }
.refined-group { margin: 5cqw 0 2cqw; color: #41403E; font-size: 4.3cqw; }
.refined-method { display: flex; align-items: center; gap: 4cqw; width: 100%; border: 0; border-bottom: 1px solid #ddd; background: transparent; padding: 4cqw 0; text-align: left; color: #41403E; }
.refined-method small { display: block; color: #737271; font-size: 3.5cqw; }
.refined-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 9cqw; height: 6cqw; border-radius: .6cqw; background: #0064ad; color: white; font: italic bold 2.6cqw Arial, sans-serif; }
.refined-logo.mandiri { background: #003e76; font-size: 2cqw; }
.refined-logo.gopay { background: white; color: #00a9c5; font-size: 2.4cqw; }
.refined-logo.internal { background: #e6efee; color: #41403E; }
.refined-amount-screen { display: flex; flex-direction: column; padding-bottom: 0; }
.refined-address-screen { display: flex; flex-direction: column; padding-top: 6cqw; }
.refined-address-field { display: flex; align-items: center; gap: 3cqw; margin-top: 1cqw; padding-right: 3cqw; background: white; border: 1px solid #dedede; border-radius: 3cqw; }
.refined-address-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4cqw 3cqw; color: #24221F; }
.refined-address-field img { width: 6cqw; height: 6cqw; }
.refined-save-address { display: flex; align-items: center; gap: 2cqw; margin: 4cqw 0 6cqw; font-size: 3.333cqw; }
.refined-save-address input { appearance: none; flex: none; width: 4.5cqw; height: 4.5cqw; margin: 0; border: 1px solid #dedede; border-radius: 1cqw; background: transparent; cursor: pointer; }
.refined-save-address input:checked { border-color: transparent; background: url("../images/reku-withdrawal/checked-box.svg") center / contain no-repeat; }
.refined-address-label input { display: block; width: 100%; margin-top: 1cqw; padding: 4cqw 3cqw; border: 1px solid #dedede; border-radius: 3cqw; background: white; color: #24221F; }
.refined-address-screen > .refined-primary { margin-top: auto; }
.refined-address-screen:has(.refined-address-keyboard:not([hidden])) { padding-bottom: 0; }
.refined-address-keyboard { flex-shrink: 0; margin: 3cqw -4cqw 0; padding: 2cqw 1cqw 8cqw; background: #eceae7; }
.refined-letter-row { display: flex; justify-content: center; gap: 1.4cqw; margin-bottom: 3cqw; }
.refined-letter-row:nth-child(2) { padding-inline: 5cqw; }
.refined-letter-row:last-child { margin-bottom: 0; }
.refined-letter-row button { position: relative; flex: 1; min-width: 0; height: 11.5cqw; padding: 1cqw 0 0; border: 0; border-radius: 1.6cqw; background: #f5f3f0; color: #24221F; font: 400 7cqw/1 "Roboto", sans-serif; }
.refined-letter-row button small { position: absolute; top: .7cqw; right: .8cqw; font-size: 2.5cqw; }
.refined-letter-row button[data-letter="shift"], .refined-letter-row button[data-letter="delete"] { flex: 1.4; background: #d7d5d3; font-size: 6cqw; }
.refined-letter-row button[data-letter="symbols"] { flex: 1.6; border-radius: 8cqw; background: #eadff7; font-size: 3.8cqw; }
.refined-letter-row button[data-letter="space"] { flex: 5.5; background: #d7d5d3; }
.refined-letter-row button[data-letter="done"] { flex: 1.6; border-radius: 8cqw; background: #cceef0; font-size: 6cqw; }
.refined-letter-row button[aria-pressed="true"] { background: #cceef0; }
.refined-amount-screen { position: relative; }
.refined-address-toast { position: absolute; bottom: 79cqw; left: 3cqw; right: 3cqw; z-index: 2; margin: 0; padding: 3cqw; border-radius: 3cqw; background: #24221Fe6; color: white; font-size: 3.333cqw; }
.refined-address-toast:not([hidden]) { animation: refined-toast-slide 3.6s ease-in-out both; }
@keyframes refined-toast-slide {
  0%, 100% { transform: translateY(calc(79cqw + 100%)); opacity: 0; }
  12%, 88% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .refined-address-toast:not([hidden]) { animation: none; }
}
.refined-destination small { overflow-wrap: anywhere; }
.refined-destination { display: flex; justify-content: space-between; align-items: center; color: #737271; }
.refined-destination span:last-child { text-align: right; }
.refined-destination strong { color: #41403E; font-weight: 400; }
.refined-destination small { display: block; margin-top: 1cqw; }
.refined-amount-center { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 31cqw; }
.refined-amount-input { width: 100%; border: 0; background: transparent; text-align: center; color: #24221F; font-size: 8.889cqw !important; line-height: 1.25 !important; font-weight: 700 !important; padding: 0; }
.refined-balance { color: #737271; margin: 3cqw 0 0; font-size: 3.5cqw; }
.refined-balance strong { color: #41403E; font-weight: 500; }
.refined-error { min-height: 8cqw; margin: 3cqw 0 0; color: #F04438; font-size: 3cqw; }
.refined-percentages { display: flex; justify-content: space-between; gap: 3cqw; margin: 3cqw 0 7cqw; }
.refined-percentages button { flex: 1; padding: 1cqw; border: 1px solid #ddd; border-radius: 2cqw; background: transparent; color: #41403E; font-size: 3.5cqw; }
.refined-percentages button[aria-pressed="true"] { background: #d2eff0; border-color: #9cdee0; color: #1BA7AC; }
.refined-primary { width: 100%; border: 0; border-radius: 3cqw; background: #1BA7AC; color: white; padding: 3cqw; font-weight: 600 !important; }
.refined-primary:disabled { background: #eceae7; color: #aaa; cursor: default; }
.refined-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; margin: 4cqw -4cqw 0; padding: 2cqw 1.5cqw 5cqw; background: #eceae7; }
.refined-keypad button { border: 0; border-radius: 8cqw; background: #f5f3f0; color: #24221F; font-family: "Roboto", sans-serif; font-weight: 400; font-size: 7.5cqw; line-height: normal; padding: .8cqw; }
.refined-keypad button:last-child { background: #ded1f1; }
.refined-preview-screen { background: white; display: flex; flex-direction: column; }
.refined-screen.is-entering:not([hidden]) { animation: refined-screen-enter 360ms cubic-bezier(.22, 1, .36, 1); }
@keyframes refined-screen-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .refined-screen.is-entering:not([hidden]) { animation: none; }
}
.refined-info { padding: 3cqw; border: 1px solid #b3c7ff; border-radius: 3cqw; background: #e2eaff; color: #737271; font-size: 3.2cqw; }
.refined-receive { text-align: center; margin: 6cqw 0; }
.refined-receive p { margin: 0 0 2cqw; color: #737271; }
.refined-receive output { display: block; font-size: 8.889cqw; line-height: 1.25; font-weight: 700; }
.refined-toggle-label { display: flex; justify-content: center; align-items: center; gap: 2cqw; margin-top: 3cqw; }
.refined-toggle-label input { appearance: none; width: 10cqw; height: 5.5cqw; border-radius: 6cqw; background: #ccc; position: relative; cursor: pointer; margin: 0; }
.refined-toggle-label input::after { content: ""; position: absolute; width: 4.3cqw; height: 4.3cqw; left: .6cqw; top: .6cqw; border-radius: 50%; background: white; transition: transform .15s; }
.refined-toggle-label input:checked { background: #1BA7AC; }
.refined-toggle-label input:checked::after { transform: translateX(4.5cqw); }
.refined-summary { margin: 0; border: 1px solid #e0e0e0; border-radius: 3cqw; padding: 3cqw; box-shadow: 0 1px 2px #00000009; }
.refined-summary div { display: flex; justify-content: space-between; gap: 2cqw; margin-bottom: 3cqw; font-size: 3.3cqw; }
.refined-summary dt { color: #737271; }
.refined-summary dd { margin: 0; text-align: right; }
.refined-summary div:last-child { border-top: 1px solid #eee; padding-top: 3cqw; margin-bottom: 0; font-weight: 600; }
.refined-end {
  margin: auto -4cqw -6cqw;
  min-height: 27.778cqw;
  padding: 4cqw;
  border-radius: 3.333cqw 3.333cqw 0 0;
  overflow: hidden;
  background: #1BA7AC url("../images/reku-withdrawal/Logogram.svg") center / cover no-repeat;
  color: #d2eeef;
  text-align: center;
}
.refined-end span { display: block; font-size: 6cqw; }
.refined-end small { display: block; font-size: 3cqw; opacity: .85; }
.refined-restart { margin-top: 12px; border: 1px solid var(--border---neutral---default); background: transparent; padding: 6px 12px; font: inherit; color: var(--text---neutral---secondary); cursor: pointer; }

.refined-method small, .refined-destination small,
.refined-summary div, .refined-info, .refined-error {
  font-size: 3.333cqw;
  line-height: 1.5;
  font-weight: 400;
}
.refined-group, .refined-primary, .refined-receive p {
  font-size: 4.444cqw;
  line-height: 1.5;
}
.refined-percentages button { font-weight: 700; }
.refined-summary div:last-child { font-weight: 700; }
.refined-search::placeholder { color: #737271; opacity: 1; }
.refined-amount-input::placeholder { color: #A4A3A2; opacity: 1; }
.refined-app img.refined-logo {
  width: 8.889cqw;
  height: 6.667cqw;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.refined-back img { display: block; width: 6.667cqw; height: 6.667cqw; }
.refined-search {
  padding-left: 11cqw;
  background: white url("../images/search.svg") no-repeat 3cqw center / 6cqw;
}
.refined-destination-logo {
  display: inline-block;
  width: 6.667cqw;
  height: 5cqw;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 1.5cqw;
}
.refined-end img { display: block; width: 6.667cqw; height: 6.667cqw; margin: 0 auto 2cqw; }

.refined-end { border: 0; flex-shrink: 0; touch-action: none; }
.refined-otp {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; background: #1BA7AC;
  transform: translateY(100%);
}
/* Both screens share one moving track, keeping their edges connected. */
.refined-pages {
  position: relative; display: flex; flex-direction: column;
  height: 100%; min-height: 0; flex: 1;
  padding-top: 10cqw;
  transform: translateY(var(--withdrawal-offset, 0px));
  transition: transform 480ms cubic-bezier(.22, 1, .36, 1);
}
.refined-pages.is-dragging { transition: none; }
/* Outside the moving track, so the phone chrome stays in place. */
.refined-app > .refined-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 10cqw;
  padding-inline: 5cqw;
  background: transparent;
  pointer-events: none;
}
.refined-app { isolation: isolate; z-index: 0; }
.refined-otp { padding-top: 10cqw; }
.refined-app:has(.refined-otp.is-open) > .refined-status { color: white; }
.refined-status-icons { display: flex; align-items: center; }
.refined-status-icons svg { width: 9.444cqw; height: 3.333cqw; }
.refined-otp-back { align-self: center; border: 0; background: transparent; padding: 1cqw 5cqw 5cqw; }
.refined-otp-back img { display: block; width: 5cqw; height: 5cqw; filter: brightness(0) invert(1); }
.refined-otp-card { background: white; border: 1px solid #d2eeef; border-radius: 3cqw; margin: 1cqw 3cqw; padding: 3cqw; }
.refined-otp-card { text-align: left; }
.refined-otp-card h4 { margin: 0 0 3cqw; text-align: left; font: 600 3.889cqw/1.5 "Manrope", sans-serif; }
.refined-otp-card > p { font-size: 3.333cqw; margin: 3cqw 1cqw; }
.refined-email-otp > p { font-size: 3.333cqw; margin: 3cqw 1cqw; }
.refined-email-otp .refined-otp-resend { margin: 5cqw 0 4cqw; }
.refined-otp.has-email-otp .refined-otp-card { flex-shrink: 0; }
.refined-otp.has-email-otp { overflow-y: auto; }
.refined-otp.has-email-otp .refined-otp-help { margin-top: 4cqw; }
.refined-otp.has-email-otp .refined-otp-keypad { flex-shrink: 0; padding-bottom: 3cqw; }
.refined-otp-digits { display: flex; gap: 1cqw; }
.refined-otp-digits input { width: 0; min-width: 0; flex: 1; height: auto; aspect-ratio: 1 / 1; padding: 0; text-align: center; background: white; border: 1px solid #ddd; border-radius: 2cqw; color: #24221F; }
.refined-otp-digits input[aria-invalid="true"] { border-color: #ffb9b5; }
.refined-otp-card .refined-otp-message { min-height: 4cqw; margin: 1cqw 0 3cqw; font-size: 2.778cqw; color: #F04438; }
.refined-otp-message.is-success { color: #14836e; }
.refined-otp-resend { display: flex; justify-content: space-between; align-items: center; color: #737271; font-size: 3.333cqw; }
.refined-otp-resend button { border: 0; border-radius: 5cqw; background: #d2eeef; color: #1BA7AC; padding: .4cqw 2cqw; }
.refined-otp-resend button:disabled { background: #eceae7; color: #a4a3a2; }
.refined-otp-help { display: block; margin: 6cqw 0 2cqw; padding-inline: 0; border: 0; background: transparent; color: #24221F; text-align: left; font-size: 3.333cqw !important; }
.refined-otp-keypad { margin: auto 0 0; padding-bottom: 6cqw; }
.refined-address-keyboard:not([hidden]),
.refined-amount-screen:not([hidden]) > .refined-keypad {
  animation: refined-keyboard-enter 300ms cubic-bezier(.22, 1, .36, 1) 360ms both;
}
.refined-otp.is-open .refined-otp-keypad {
  animation: refined-keyboard-enter 300ms cubic-bezier(.22, 1, .36, 1) 480ms both;
}
@keyframes refined-keyboard-enter {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .refined-address-keyboard:not([hidden]),
  .refined-amount-screen:not([hidden]) > .refined-keypad,
  .refined-otp.is-open .refined-otp-keypad { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .refined-pages { transition: none; } }

.refined-success { position: absolute; inset: 0; transform: translateY(200%); display: flex; flex-direction: column; padding-top: 24cqw; background: #1BA7AC url("../images/reku-withdrawal/Logogram.svg") center top / 100% auto no-repeat; }
.refined-success-card { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 6cqw 3cqw 5cqw; background: white; border-radius: 6cqw 6cqw 0 0; text-align: center; }
.refined-currency { display: flex; align-items: center; gap: 2cqw; font-weight: 700; font-size: 3.889cqw; }
.refined-currency img { display: block; width: 5cqw; height: 5cqw; object-fit: contain; }
.refined-success-art { width: 36cqw; height: 36cqw; flex-shrink: 0; margin: auto 0; }
.refined-success-card h4 { font: 600 3.889cqw/1.5 "Manrope", sans-serif; margin: 3cqw 0 2cqw; }
.refined-success-card p { color: #737271; font-size: 3.333cqw; margin: 0 0 2cqw; }
.refined-success-card output { font-size: 7.778cqw; font-weight: 700; line-height: 1.4; }
.refined-success-actions { width: 100%; margin-top: auto; padding-top: 5cqw; }
.refined-wallet-button { border: 0; background: transparent; padding: 5cqw; color: #24221F; font-size: 3.333cqw !important; font-weight: 600 !important; }

.refined-success-art { object-fit: contain; }
