/* =====================================================================
   FT Withdrawal - Odstoupení od smlouvy
   CSS styly pro wizard (front-end)
   Přizpůsobte CSS proměnné dle barev vašeho tématu
   ===================================================================== */

:root {
  --ftwd-primary:     #1a2e4a;   /* Tmavě modrá - postranní panely */
  --ftwd-accent:      #FE3A01;   /* Oranžová - akcenty, dokončené kroky */
  --ftwd-accent-2:    #cc2e00;   /* Tmavší oranžová */
  --ftwd-danger:      #e74c3c;
  --ftwd-warning:     #f39c12;
  --ftwd-success:     #27ae60;
  --ftwd-text:        #333;
  --ftwd-text-muted:  #777;
  --ftwd-border:      #ddd;
  --ftwd-bg:          #f9f9f9;
  --ftwd-white:       #fff;
  --ftwd-radius:      2px;
  --ftwd-shadow:      0 2px 8px rgba(0,0,0,.08);
}

/* ---- WRAPPER ---- */
.ftwd-wizard {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 15px 40px;
  font-family: inherit;
  color: var(--ftwd-text);
}

/* ---- STEPPER ---- */
.ftwd-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 4px;
}
.ftwd-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ftwd-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: background .25s, color .25s;
}
.ftwd-step-circle .material-icons { font-size: 20px; }
.ftwd-step-item.active .ftwd-step-circle {
  background: var(--ftwd-primary);
  color: #fff;
}
.ftwd-step-item.done .ftwd-step-circle {
  background: var(--ftwd-accent);
  color: #fff;
}
.ftwd-step-label {
  font-size: 12px;
  color: var(--ftwd-text-muted);
  text-align: center;
}
.ftwd-step-item.active .ftwd-step-label,
.ftwd-step-item.done .ftwd-step-label {
  color: var(--ftwd-text);
  font-weight: 600;
}
.ftwd-step-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  min-width: 40px;
  margin-bottom: 20px;
  transition: background .25s;
}
.ftwd-step-line.done { background: var(--ftwd-accent); }

/* ---- ALERT ---- */
.ftwd-alert {
  padding: 12px 16px;
  border-radius: var(--ftwd-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.ftwd-alert-error {
  background: #fdecea;
  color: #b71c1c;
  border-left: 4px solid var(--ftwd-danger);
}
.ftwd-alert .material-icons { font-size: 20px; flex-shrink: 0; }

/* ---- PANEL ---- */
.ftwd-panel {
  display: flex;
  background: var(--ftwd-white);
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--ftwd-shadow);
}
.ftwd-panel-accent { border-color: var(--ftwd-accent); }
.ftwd-panel-accent .ftwd-panel-body { background: #fff3ef; }

.ftwd-panel-sidebar {
  background: var(--ftwd-primary);
  color: #fff;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  text-align: center;
}
.ftwd-panel-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.ftwd-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.4;
  opacity: .85;
}
.ftwd-panel-body {
  flex: 1;
  padding: 20px 24px;
}

/* ---- NOTICE ---- */
.ftwd-notice {
  background: #fff8e1;
  border-left: 4px solid var(--ftwd-warning);
  padding: 12px 16px;
  border-radius: 0 var(--ftwd-radius) var(--ftwd-radius) 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #5a4b00;
}
.ftwd-notice .material-icons { color: var(--ftwd-warning); flex-shrink: 0; }

/* ---- BUTTONS ---- */
.ftwd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--ftwd-radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
  line-height: 1.4;
}
.ftwd-btn:hover { transform: translateY(-1px); }
.ftwd-btn .material-icons { font-size: 18px; }

.ftwd-btn-primary {
  background: var(--ftwd-primary);
  color: #fff;
}
.ftwd-btn-primary:hover { background: #152438; color: #fff; }
.ftwd-btn-primary:disabled,
.ftwd-btn-primary[disabled] { background: #999; cursor: not-allowed; transform: none; }

.ftwd-btn-secondary {
  background: transparent;
  border: 2px solid var(--ftwd-primary);
  color: var(--ftwd-primary);
}
.ftwd-btn-secondary:hover { background: var(--ftwd-primary); color: #fff; }

/* ---- FORM ---- */
.ftwd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 576px) {
  .ftwd-form-row { grid-template-columns: 1fr; }
}

/* ---- CHECKBOX LARGE ---- */
.ftwd-checkbox-large label {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ftwd-accent-2);
  text-align: left !important;
}
.ftwd-checkbox-large input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--ftwd-accent);
}

/* ---- ITEM ROW (krok 2) ---- */
.ftwd-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ftwd-white);
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  margin-bottom: 10px;
  box-shadow: var(--ftwd-shadow);
  transition: border-color .2s;
}
.ftwd-item-row.selected { border-color: var(--ftwd-accent); }
.ftwd-item-checkbox input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--ftwd-accent);
  cursor: pointer;
}
.ftwd-item-image img { border-radius: 2px; display: block; }
.ftwd-item-info { flex: 1; }
.ftwd-item-info small { color: var(--ftwd-text-muted); }
.ftwd-item-qty-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 120px;
  font-size: 13px;
}
.ftwd-qty-control { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ftwd-qty-control label { font-size: 12px; color: var(--ftwd-text-muted); margin: 0; }

/* ---- SELECTED ITEM (krok 3) ---- */
.ftwd-selected-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ftwd-border);
  font-size: 14px;
}
.ftwd-selected-item:last-child { border-bottom: none; }
.ftwd-qty-badge {
  background: var(--ftwd-primary);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- DECLARATION ---- */
.ftwd-declaration-box {
  border: 2px solid var(--ftwd-primary);
  border-radius: var(--ftwd-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  background: #f8faff;
}
.ftwd-declaration-label {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  cursor: pointer;
  margin: 0;
  text-align: left !important;
}
.ftwd-declaration-label input[type="checkbox"] {
  width: 22px; height: 22px;
  flex-shrink: 0;
  accent-color: var(--ftwd-primary);
}
.ftwd-declaration-label strong {
  display: block;
  margin-bottom: 4px;
  text-align: left !important;
}
.ftwd-declaration-label p {
  margin: 0;
  font-size: 13px;
  color: var(--ftwd-text);
  text-align: left !important;
}

/* ---- STEP NAV ---- */
.ftwd-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

/* ---- INFO BOX ---- */
.ftwd-info-box {
  background: var(--ftwd-white);
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: var(--ftwd-shadow);
}
.ftwd-info-box h4 {
  color: var(--ftwd-primary);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}
.ftwd-info-box ol, .ftwd-info-box ul { margin: 0; padding-left: 20px; }
.ftwd-info-box li { margin-bottom: 6px; }

/* ---- HISTORY ---- */
.ftwd-history { margin-top: 24px; }
.ftwd-history h4 { color: var(--ftwd-primary); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ftwd-history-item {
  background: var(--ftwd-white);
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ftwd-history-header { display: flex; align-items: center; gap: 10px; flex: 1 0 200px; }
.ftwd-history-meta { font-size: 13px; color: var(--ftwd-text-muted); flex: 1; }
.ftwd-history-meta code { font-size: 12px; background: #f0f0f0; padding: 1px 5px; border-radius: 3px; }
.ftwd-link-detail {
  font-size: 13px;
  color: var(--ftwd-accent-2);
  text-decoration: underline;
  white-space: nowrap;
}

/* ---- BADGES / STAV ---- */
.ftwd-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ftwd-status-0 { background: #fff3cd; color: #856404; }  /* Nová */
.ftwd-status-1 { background: #d4edda; color: #155724; }  /* Přijatá */
.ftwd-status-2 { background: #f8d7da; color: #721c24; }  /* Zamítnutá */
.ftwd-status-3 { background: #cce5ff; color: #004085; }  /* Vyřízená */

/* ---- CONFIRM ---- */
.ftwd-confirm { max-width: 680px; margin: 0 auto; }
.ftwd-confirm-header { text-align: center; margin: 32px 0 24px; }
.ftwd-confirm-icon { font-size: 0; margin-bottom: 12px; }
.ftwd-confirm-icon .material-icons { font-size: 56px; color: var(--ftwd-accent); }
.ftwd-confirm-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.ftwd-confirm-header p { color: var(--ftwd-text-muted); font-size: 15px; }

.ftwd-summary-box {
  display: flex;
  background: var(--ftwd-white);
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--ftwd-shadow);
}
.ftwd-summary-sidebar {
  background: var(--ftwd-primary);
  color: #fff;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  gap: 8px;
  font-size: 28px;
  font-weight: 900;
}
.ftwd-summary-sidebar div {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  opacity: .85;
}
.ftwd-summary-body { flex: 1; padding: 20px 24px; }
.ftwd-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  gap: 12px;
}
.ftwd-summary-row:last-child { border-bottom: none; }
.ftwd-summary-item { color: var(--ftwd-text-muted); }

.ftwd-after-box {
  display: flex;
  background: var(--ftwd-accent);
  color: var(--ftwd-white);
  border-radius: var(--ftwd-radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--ftwd-shadow);
}
.ftwd-after-sidebar {
  background: rgba(0,0,0,.15);
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  gap: 8px;
}
.ftwd-after-sidebar .material-icons { font-size: 28px; }
.ftwd-after-sidebar div { font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.ftwd-after-body { flex: 1; padding: 20px 24px; }
.ftwd-after-body ol, .ftwd-after-body ul { margin: 0; padding-left: 20px; }
.ftwd-after-body li { margin-bottom: 8px; }

.ftwd-confirm-footer { text-align: center; margin-top: 16px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
  .ftwd-panel { flex-direction: column; }
  .ftwd-panel-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .ftwd-panel-num { font-size: 20px; margin-bottom: 0; }
  .ftwd-panel-label { font-size: 12px; text-align: left; }
  .ftwd-stepper { gap: 0; }
  .ftwd-step-line { min-width: 20px; }
  .ftwd-item-row { flex-wrap: wrap; }
  .ftwd-item-qty-wrap { align-items: flex-start; }
  .ftwd-step-nav { flex-direction: column-reverse; }
  .ftwd-step-nav .ftwd-btn { width: 100%; justify-content: center; }
  .ftwd-summary-box, .ftwd-after-box { flex-direction: column; }
  .ftwd-summary-sidebar, .ftwd-after-sidebar { flex-direction: row; min-width: auto; justify-content: flex-start; gap: 12px; }
}

/* ---- HOOK: My Account Block - dlaždice ---- */
.ftwd-account-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: var(--ftwd-text);
}
.ftwd-account-tile:hover { color: var(--ftwd-accent-2); }
.ftwd-account-tile .material-icons { font-size: 36px; margin-bottom: 8px; color: var(--ftwd-primary); }

/* ---- HOOK: Order Detail Block ---- */
.ftwd-order-block {
  margin-top: 20px;
  border: 1px solid var(--ftwd-border);
  border-radius: var(--ftwd-radius);
  overflow: hidden;
  box-shadow: var(--ftwd-shadow);
}
.ftwd-order-block-header {
  background: var(--ftwd-primary);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}
.ftwd-order-block-body { padding: 16px 20px; background: var(--ftwd-white); }
.ftwd-order-block table { width: 100%; font-size: 13px; }
.ftwd-order-block th { font-weight: 600; border-bottom: 2px solid var(--ftwd-border); padding: 6px 8px; }
.ftwd-order-block td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.ftwd-order-block-footer { padding: 12px 20px; border-top: 1px solid var(--ftwd-border); background: #f9f9f9; }
