/**
 * Return Button free – EU online withdrawal (Directive 2023/2673)
 * PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
 *
 * @author    VEKIA.PL VATEU: PL9730945634
 * @copyright 2010-2026 VEKIA
 * @license   This program is not free software and you can't resell and redistribute it
 *
 * * CONTACT WITH DEVELOPER https://mypresta.eu
 * * support@mypresta.eu
 */
.rbf-withdrawal-wrap { margin: 0.75rem 0; }
.rbf-align-center { text-align: center; }
.rbf-align-left { text-align: left; }
.rbf-align-right { text-align: right; }

.rbf-withdrawal-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.rbf-withdrawal-btn:hover,
.rbf-withdrawal-btn:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.rbf-withdrawal-muted { color: #666; font-size: 0.875rem; }

/* Footer light/dark (RBF_FOOTER_THEME) — applies in footer hook context */
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-light .rbf-withdrawal-muted {
  color: #555;
}
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-light .rbf-withdrawal-muted a {
  color: #2563eb;
}
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-dark .rbf-withdrawal-muted {
  color: rgba(255, 255, 255, 0.88);
}
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-dark .rbf-withdrawal-muted a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-dark .rbf-withdrawal-muted a:hover,
.rbf-withdrawal-wrap.rbf-footer.rbf-footer-theme-dark .rbf-withdrawal-muted a:focus {
  color: #fff;
}

.rbf-withdrawal-form .card,
.rbf-confirm-step .card { border-radius: 8px; }

.rbf-success .alert { border-radius: 8px; }

.rbf-steps-front {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.rbf-steps-front .rbf-step {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: #e9ecef;
  font-size: 13px;
}
.rbf-steps-front .rbf-step.is-active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}
.rbf-steps-front .rbf-step.is-done {
  background: #d1fae5;
  color: #065f46;
}

@media (max-width: 576px) {
  .rbf-withdrawal-btn { display: block; text-align: center; }
}

/* Customer account – order picker table */
.rbf-orders-table { margin-bottom: 0; }
.rbf-order-row--disabled {
  opacity: 0.72;
  background-color: #f5f5f5 !important;
}
.rbf-order-row--disabled td {
  color: #6c757d;
}
.rbf-order-ref-muted {
  color: #6c757d;
  font-weight: 600;
  cursor: not-allowed;
}
.rbf-order-ref-link {
  text-decoration: underline;
}
.rbf-order-picker .label-success {
  background-color: #198754;
}
.rbf-order-picker .label-default {
  background-color: #6c757d;
}

@media (max-width: 767px) {
  .rbf-orders-table thead { display: none; }
  .rbf-orders-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
  }
  .rbf-orders-table td {
    display: block;
    text-align: right;
    border: none;
    padding: 0.35rem 0.5rem;
  }
  .rbf-orders-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
  }
  .rbf-orders-table td.text-right { text-align: right; }
}

.rbf-order-detail {
  margin: 1rem 0;
  text-align: left;
}

.rbf-order-detail .rbf-order-withdrawal-notice {
  margin-bottom: 0;
}

.rbf-order-detail__action {
  margin-top: 0.75rem;
}

.rbf-order-withdrawal-notice {
  margin-bottom: 0.75rem;
  text-align: left;
}

.rbf-order-withdrawal-notice__list {
  margin: 0;
}

.rbf-order-withdrawal-notice__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.35rem 0;
}

.rbf-order-withdrawal-notice__item + .rbf-order-withdrawal-notice__item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.rbf-order-withdrawal-notice__ref {
  font-weight: 600;
}

.rbf-order-withdrawal-notice__view {
  margin-left: auto;
}

.rbf-order-history-withdrawal {
  margin-bottom: 0.35rem;
}

.rbf-order-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
}

.rbf-order-history-badge {
  font-size: 12px;
}

.rbf-timeline__item {
  position: relative;
  padding: 0 0 1rem 1.25rem;
  border-left: 2px solid #e5e7eb;
}

.rbf-timeline__item:last-child {
  padding-bottom: 0;
}

.rbf-timeline__item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}

.rbf-timeline__date {
  display: block;
}

.rbf-timeline__label {
  display: block;
  font-weight: 500;
}

.rbf-timeline__body {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #374151;
}

.rbf-timeline__body p:last-child {
  margin-bottom: 0;
}
