/* ==========================================================================
   ODR Manager - Front Office Styles (v2)
   Compatible with PrestaShop 8 classic / child_classic theme (Bootstrap 4)
   ========================================================================== */

:root {
  /* Colors - Primary */
  --odr-color-primary: #e87a1e;
  --odr-color-primary-dark: #c76a18;
  --odr-color-primary-light: #fef8f3;
  --odr-color-orange: #eb6909;
  --odr-color-gray-light: #d8d8d8;

  /* Colors - Secondary */
  --odr-color-black: #232323;
  --odr-color-text: #333;
  --odr-color-text-muted: #6c757d;

  /* Colors - Background */
  --odr-bg-main: #ffffff;
  --odr-bg-soft: #f8f9fa;
  --odr-bg-light: #fafafa;
  --odr-bg-hero: #fbf4ed;

  /* Colors - Border */
  --odr-border-color: #e2e2e2;
  --odr-border-light: #e9ecef;

  /* Colors - Status */
  --odr-success: #28a745;
  --odr-danger: #dc3545;
  --odr-warning: #ffc107;
  --odr-info: #17a2b8;

  /* Typography */
  --odr-font-family: "Gotham", sans-serif;
  --odr-font-size-base: 14px;
  --odr-font-size-sm: 12px;
  --odr-font-size-lg: 18px;

  /* Spacing */
  --odr-spacing-xs: 4px;
  --odr-spacing-sm: 8px;
  --odr-spacing-md: 16px;
  --odr-spacing-lg: 24px;
  --odr-spacing-xl: 40px;

  /* Radius */
  --odr-radius-sm: 4px;
  --odr-radius-md: 6px;
  --odr-radius-lg: 8px;

  /* Transitions */
  --odr-transition-normal: 0.3s ease;
}

#module-odrmanager-form #wrapper {
  background: linear-gradient(
    180deg,
    rgba(251, 244, 237, 1) 424px,
    rgba(255, 255, 255, 1) 0
  );
  min-height: 722px;
}

#module-odrmanager-form #wrapper.odr-form-page {
  background: linear-gradient(
    180deg,
    rgba(251, 244, 237, 1) 12%,
    rgba(255, 255, 255, 1) 0
  );
}

#module-odrmanager-form #wrapper  .page-content {
 background-color: transparent;
}

.odr-form-section {
  padding: 50px 20px 80px;
}

.odr-form-header {
  text-align: center;
  max-width: 1036px;
  margin: 0 auto 40px;
}

.odr-form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.odr-form-logo-icon {
  display: flex;
  /* gap: 0; */
}

.odr-form-logo-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--odr-color-orange);
  margin-left: -2px;
}

.odr-form-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.odr-form-desc {
  color: #000;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.odr-form-notice {
  color: #666;
  font-size: var(--odr-font-size-base);
}

/* Form Fields */
.odr-form-group {
  margin-bottom: 20px;
}

.odr-form-group-title {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
}

.odr-form-group-subtitle {
  text-align: center;
  color: #666;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 20px;
}

.odr-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.odr-form-label {
  flex: 0 0 180px;
  text-align: right;
  font-size: var(--odr-font-size-base);
  color: var(--odr-color-text);
}

.odr-form-input-wrapper {
  flex: 1;
}

.odr-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: var(--odr-font-size-base);
  outline: none;
  transition: border-color 0.2s;
}

.odr-form-input:focus {
  border-color: #ff6b00;
}

.odr-form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: var(--odr-font-size-base);
  outline: none;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.odr-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0 50px;
}

.odr-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding-top: 17px;
}

.odr-hero-image {
  flex: 0 0 620px;
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #e8e0d5;
}

.odr-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.odr-hero-content {
  max-width: 500px;
  width: 100%;
}

.odr-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.odr-hero-subtitle {
  color: #ff6b00;
  font-size: var(--odr-font-size-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.odr-hero-desc {
  font-size: 20px;
  color: #444;
  line-height: 1.5;
}

.odr-page-hero {
  display: flex;
  align-items: stretch;
  margin-bottom: 2rem;
  border-radius: var(--odr-radius-lg);
  overflow: hidden;
  background-color: #f5f5f5;
  min-height: 300px;
}

.odr-page-hero-image {
  flex: 0 0 48%;
  max-width: 48%;
  line-height: 0;
}

.odr-page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.odr-page-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
}

.odr-page-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--odr-color-black);
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

.odr-page-hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--odr-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem 0;
}

.odr-page-hero-desc {
  font-size: 1rem;
  color: var(--odr-color-text);
  line-height: 1.6;
  margin: 0;
}

/* ============================================== */

/* Upload Areas */
.upload-area {
  border: 1.5px dashed #ff6b00;
  border-radius: var(--odr-radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 15px;
}

.upload-area:hover {
  background: #fff8f3;
}

.upload-area-inner {
  border: 1px solid #ff6b00;
  border-radius: 6px;
  padding: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--odr-color-text);
  font-size: var(--odr-font-size-base);
  width: 100%;
  justify-content: center;
}

.upload-icon {
  width: 20px;
  height: 20px;
  color: #ff6b00;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  background: var(--odr-bg-light);
}

.file-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-item-name {
  font-size: var(--odr-font-size-base);
  color: var(--odr-color-text);
}

.file-item-check {
  color: #22c55e;
  font-size: 16px;
}

.file-item-action {
  color: #ff6b00;
  font-size: var(--odr-font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
}

.odr-tutorial-grid {
  display: grid;
  margin-bottom: 1.25rem;
  column-gap: 15px;
  grid-template-columns: repeat(2, 1fr);
}

.odr-form .odr-barcode-list > div {
  padding: 15px;
  border: 1px solid var(--odr-border-color);
  margin: 0;
}
.odr-form .odr-tutorial-grid > div:nth-child(2) ~ div {
  border-top: 0;
}
.odr-form .odr-barcode-list .odr-upload-btn-content,
.odr-form .odr-barcode-list .odr-barcode-header {
  font-size: 0.7rem;
}

/* ==========================================================================
   Common
   ========================================================================== */

.odr-required {
  color: var(--odr-danger);
  font-weight: 700;
}

.odr-required-notice {
  font-size: 0.85rem;
}

/* Screen reader only (accessible hidden text) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Page-level Hero Banner (administrable)
   ========================================================================== */

/* ==========================================================================
   Intro Section
   ========================================================================== */

.odr-intro-section {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.odr-intro-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1rem;
}

.odr-intro-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--odr-color-primary);
  display: block;
}

.odr-intro-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--odr-color-black);
  margin: 0 0 1rem 0;
}

.odr-intro-text {
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.odr-intro-note {
  font-size: 0.9rem;
  color: var(--odr-color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Per-offer Hero Banner (dynamic)
   ========================================================================== */

.odr-hero-banner {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--odr-radius-lg);
  overflow: hidden;
  line-height: 0;
}

.odr-hero-banner img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Form Page
   ========================================================================== */

.odr-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

/* Fieldsets */
.odr-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.odr-legend {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--odr-color-black);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 20px;
  width: 100%;
}

/* Form fields â€” force vertical layout (override theme horizontal form styles) */
.odr-form .form-group {
  margin-bottom: 1.25rem;
  display: block;
  flex-direction: unset;
  flex-wrap: unset;
}

.odr-form label,
.odr-form .form-group > label {
  margin-bottom: 0.5rem;
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  flex: none;
  text-align: left;
  padding-right: 0;
  color: var(--odr-color-black);
}

/* ==========================================================================
   Horizontal Form Layout (CoordonnÃ©es & Point de vente)
   ========================================================================== */

.odr-legend-center {
  text-align: center;
  border-bottom: none;
  margin-bottom: 10px;
}

.odr-fieldset-subtitle {
  text-align: center;
  font-style: italic;
  font-size: 0.7rem;
  margin: -10px 0 20px 0;
}

.odr-fieldset-horizontal .odr-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
  gap: 16px;
}

.odr-fieldset-horizontal .odr-form-label {
  flex: 0 0 30%;
  max-width: 30%;
  text-align: left;
  color: var(--odr-color-black);
  margin: 0;
  padding-right: var(--odr-spacing-xs);
  font-size: 0.95rem;
}

.odr-fieldset-horizontal .odr-form-field {
  flex: 1;
  min-width: 0;
}

.odr-fieldset-horizontal .odr-form-field .form-control {
  width: 100%;
}

.odr-fieldset-horizontal .odr-form-field .invalid-feedback {
  display: none;
  color: var(--odr-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.odr-fieldset-horizontal
  .odr-form-field
  .form-control.is-invalid
  ~ .invalid-feedback {
  display: block;
}

/* Upload button style (simple bordered button) */
.odr-form .form-group .odr-upload-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--odr-border-color);
  border-radius: 6px;
  padding: var(--odr-font-size-base) 20px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  font-weight: 400 !important;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.odr-form .form-group .odr-upload-btn.is-invalid {
    border-color: var(--odr-danger) !important;
}

label.odr-upload-btn.is-invalid ~ .invalid-feedback {display: block;}

.form-infos {
  font-size: 14px;
}

.odr-rgpd-simple.is-invalid span {
  color: var(--odr-danger) !important;
}

.odr-rgpd-simple a {
  text-decoration: underline;
}

.odr-upload-btn:hover {
  border-color: var(--odr-color-primary);
  background-color: var(--odr-color-primary-light);
}

.odr-upload-btn input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.odr-upload-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #495057;
  font-size: 0.95rem;
}
.odr-upload-btn-file > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.odr-upload-btn-file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--odr-color-black);
  justify-content: space-between;
}

.odr-upload-btn-filename {
  flex: 1;
  word-break: break-all;
}

.odr-upload-btn-change {
  padding: 0;
  font-family: var(--odr-font-family);
  background: none;
  border: none;
  font-weight: 500;
  font-size: 11px;
  color: var(--odr-color-black);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--odr-color-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.odr-upload-btn-change:hover {
  color: var(--odr-color-primary);
}

.odr-upload-btn.is-invalid {
  border-color: var(--odr-danger);
  background-color: #fff5f5;
}

/* RGPD simple (no background) */
.odr-rgpd-simple {
  /* margin: 1rem 0; */
  /* padding: 0.5rem 0; */
}

.odr-rgpd-simple label {
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 0;
}

.odr-rgpd-simple input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--odr-color-primary);
}

.odr-rgpd-simple.is-invalid label {
  color: var(--odr-danger);
}

.odr-form .form-control {
  border: 1px solid var(--odr-border-color);
  border-radius: var(--odr-radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  flex: none;
  box-sizing: border-box;
  background: #fff;
  height: 48px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.odr-form .form-control:focus {
  border-color: var(--odr-color-primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 122, 30, 0.15);
  outline: none;
}

.odr-form .form-control.is-invalid {
  border-color: var(--odr-danger);
}

.odr-form .invalid-feedback {
  display: none;
  color: var(--odr-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.odr-form .form-control.is-invalid ~ .invalid-feedback,
.odr-form .was-validated .form-control:invalid ~ .invalid-feedback,
.odr-form select.is-invalid ~ .invalid-feedback {
  display: block;
}

.odr-form .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  color: var(--bs-body-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bs-body-bg);
  background-image:
    var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.odr-form .form-text {
  font-size: 0.85rem;
}

/* Offer details panel */
.odr-offer-details {
  margin-bottom: 1rem;
}

.odr-offer-image {
  margin-bottom: 1rem;
  border-radius: var(--odr-radius-lg);
  overflow: hidden;
}

.odr-offer-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.odr-offer-description {
  padding: 1rem;
  background-color: var(--odr-bg-soft);
  border-radius: 6px;
  border-left: 4px solid var(--odr-color-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}

/* Offer conditions */
.odr-offer-conditions {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
}

.odr-offer-conditions h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #856404;
}

.odr-offer-conditions .conditions-content {
  font-size: 0.9rem;
  color: #856404;
  line-height: 1.5;
}

/* ==========================================================================
   Tutorial / Didacticiel Section
   ========================================================================== */

/* Tutorial / Didacticiel section */
.odr-tutorial-section {
  margin: 1.5rem 0;
}

.odr-tutorial-warning {
  text-align: center;
  color: #856404;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.odr-tutorial-card {
  display: flex;
  align-items: center;
  border: 1px solid #dee2e6;
  padding: 10px 12px;
  gap: 12px;
  background: #fff;
}

.odr-tutorial-card.odr-tutorial-invalid {
  border-color: var(--odr-border-color);
}

.odr-tutorial-card.odr-tutorial-valid {
  border-color: var(--odr-border-color);
}

.odr-tutorial-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.odr-tutorial-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--odr-radius-sm);
}

.odr-tutorial-info {
  flex: 1;
  min-width: 0;
}

.odr-tutorial-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--odr-color-text);
  margin-bottom: 2px;
}

.odr-tutorial-link {
  font-size: 0.8rem;
  color: var(--odr-color-primary);
  text-decoration: underline;
}

.odr-tutorial-link:hover {
  color: var(--odr-color-primary-dark);
}

.odr-tutorial-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.odr-tutorial-icon svg path {
  transform: scale(0.7) translate(5px, 4px);
}

/* ==========================================================================
   Multi-barcode Upload
   ========================================================================== */

.odr-barcode-entry {
  margin-bottom: 1rem;
}

.odr-barcode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.odr-barcode-header label {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--odr-color-black);
}

.odr-remove-barcode {
  padding: 0.15rem 0.5rem;
  font-size: 1.2rem;
  line-height: 1;
}

#odr-add-barcode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-color: var(--odr-color-orange);
  background: transparent;
  padding: 0.82rem;
  justify-content: center;
}

#odr-add-barcode:hover {
  background-color: var(--odr-color-primary);
  color: #fff;
}

/* ==========================================================================
   Bank Section (show/hide transition)
   ========================================================================== */

.odr-bank-section {
  transition:
    opacity var(--odr-transition-normal),
    max-height var(--odr-transition-normal);
}

.odr-bank-section[style*="display: none"],
.odr-bank-section[style*="display:none"] {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   File Upload - Drag & Drop Zones
   ========================================================================== */

/* Force file upload label above zone */
.odr-form .form-group .odr-file-upload {
  margin-top: 0;
}

.odr-file-upload {
  position: relative;
  border: 2px dashed #ced4da;
  border-radius: var(--odr-radius-lg);
  padding: var(--odr-spacing-lg) 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
  background-color: var(--odr-bg-light);
  width: 100%;
  max-width: 100%;
}

.odr-file-upload:hover,
.odr-file-upload:focus-within,
.odr-file-upload.dragover {
  border-color: var(--odr-color-primary);
  background-color: var(--odr-color-primary-light);
}

.odr-file-upload.is-invalid {
  border-color: var(--odr-danger);
  background-color: #fff5f5;
}

.odr-file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.odr-file-upload .upload-icon {
  margin-bottom: var(--odr-radius-lg);
  line-height: 1;
}

.odr-file-upload .upload-text {
  color: var(--odr-color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.odr-file-upload .upload-text strong {
  color: var(--odr-color-primary);
  text-decoration: underline;
}

/* File preview (after selection) */
.odr-file-upload .file-preview {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.odr-file-upload .file-preview .file-name {
  font-weight: 600;
  word-break: break-all;
  color: var(--odr-color-black);
}

.odr-file-upload .file-preview .file-size {
  color: var(--odr-color-text-muted);
  font-size: 0.85rem;
}

.odr-file-upload .file-preview .file-remove {
  background: none;
  border: none;
  color: var(--odr-danger);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--odr-spacing-xs);
  position: relative;
  z-index: 3;
}

.odr-file-upload .file-preview .file-remove:hover {
  color: #a71d2a;
}

.odr-file-upload.has-file .upload-text,
.odr-file-upload.has-file .upload-icon {
  display: none;
}

.odr-file-upload.has-file .file-preview {
  display: flex;
}

.odr-file-upload.has-file {
  border-style: solid;
  border-color: var(--odr-success);
  background-color: #f0fff4;
}

/* ==========================================================================
   RGPD Checkbox
   ========================================================================== */

.odr-rgpd {
  margin: 1.5rem 0 0.75rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--odr-bg-soft);
  border: 1px solid var( --odr-border-light);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.odr-rgpd.is-invalid {
  border-color: var(--odr-danger);
  background-color: #fff5f5;
}

.odr-rgpd label {
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #495057;
}

.odr-rgpd input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Opt-in Newsletter Checkbox
   ========================================================================== */

.odr-optin {
  margin: 0.75rem 0;
  padding: 0.75rem 1.25rem;
}

.odr-optin label {
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #495057;
}

.odr-optin input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--odr-color-primary);
}

/* ==========================================================================
   Legal Mentions Block
   ========================================================================== */

.odr-legal-mentions {
  margin: 1rem 0;
  padding: 0;
}

.odr-legal-mentions p {
  font-size: 0.78rem;
  color: #868e96;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */


.odr-btn-submit:hover,
.odr-btn-submit:focus {
  background-color: #000;
  color: #fff;
}

.odr-btn-submit:disabled {
  background-color: var(--odr-color-text-muted);
  cursor: not-allowed;
}

.odr-submit-wrapper .btn-spinner .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* ==========================================================================
   Tracking Login Page
   ========================================================================== */

.odr-tracking-login {
  margin: 0 auto;
  max-width: 688px;
  padding: 0;
  /* background: #fff; */
}

.odr-tracking-login-card {
  padding: 4rem;
  border-radius: var(--odr-radius-lg);
  border: 1px solid #e3dad1;
  background-color: #fff;
  margin-bottom: 40px;
}

.odr-tracking-login-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.odr-tracking-login-intro {
  text-align: center;
  color: #211f1f;
  margin-bottom: 1.5rem;
  font-size: var(--odr-font-size-base);
  line-height: 1.5;
}

.odr-tracking-login-card .form-group {
  margin-bottom: 1.25rem;
  display: block;
  flex-direction: unset;
  flex-wrap: unset;
}

.odr-tracking-login-card label,
.odr-tracking-login-card .form-group > label {
  /* font-weight: 600; */
  margin-bottom: 0.5rem;
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  flex: none;
  text-align: left;
  padding-right: 0;
  color: var(--odr-color-black);
}

.odr-tracking-login-card .form-control {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  flex: none;
}

.odr-tracking-login-card .odr-tracking-login-title {
  font-size: 32px;
  text-align: center;
  font-weight: 500;
  color: #211f1f;
}

body#module-odrmanager-tracking:not(.odr-tracking-status-page) #wrapper,
body#module-odrmanager-tracking:not(.odr-tracking-status-page) .page-content {
  background: rgb(251, 244, 237);
}

.odr-tracking-input-wrapper {
  position: relative;
}

span.odr-tracking-input-info {
  position: absolute;
  right: 16px;
  top: 16px;
}

p.odr-tracking-required-note {
  margin-bottom: 0;
  color: #211f1f;
  font-size: 11px;
}

.odr-tracking-login .btn.odr-btn-submit {
  margin-bottom: var(--odr-spacing-md);
  border-radius: var(--odr-radius-lg);
}

.odr-tracking-contact > p {
  margin-bottom: 0;
  color: #211f1f;
}

.odr-tracking-contact {
  align-items: center;
  display: flex;
  flex-direction: column;
  color: #211f1f;
}

.odr-tracking-contact-title {
  font-weight: 500;
}

.odr-tracking-contact-phone {
  background: #fff;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #ebebeb;
}

span.odr-tracking-contact-phone-number {
  color: #91919b;
  font-size: 20px;
  font-weight: 700;
  padding: 17px;
}

.odr-tracking-contact-phone-badge {
  font-size: var(--odr-font-size-base);
  max-width: 148px;
  background-color: #91919b;
  color: #fff;
  padding: 0 20px 0;
  margin-right: 10px;
  position: relative;
  font-weight: 700;
  line-height: 1.2;
  height: 115%;
  display: grid;
  align-items: center;
}

.odr-tracking-contact-phone {
  margin-top: 15px;
}

.odr-tracking-contact-phone-badge:before {
  content: "";
  height: 4px;
  width: 100%;
  position: absolute;
  left: 0;
  border-left: 10px solid #fff;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
  top: 10px;
}

.odr-tracking-login-card .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.odr-tracking-login-card .invalid-feedback {
  display: none;
  color: var(--odr-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.odr-tracking-login-card .btn-block {
  padding: 0.7rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.odr-tracking-login-help {
  margin-top: 1.5rem;
}

.odr-tracking-login-help p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   Tracking Status Page
   ========================================================================== */

.odr-tracking-status {
  padding: 0;
}

.odr-tracking-status .odr-tracking-status-title {
  font-size: 32px;
  margin-bottom: var(--odr-spacing-md);
  text-align: center;
}

.odr-tracking-status .odr-tracking-status-subtitle {
  text-align: center;
  font-size: 16px;
  margin-bottom: 32px;
}

.odr-tracking-status .odr-tracking-status-identity {
  text-align: center;
  color: #211f1f;
  font-size: var(--odr-font-size-base);
}

.odr-tracking-table-wrapper table {
  border: 1px solid #e8e9ea;
}

table.odr-tracking-table th {
  background: var(--odr-bg-hero);
  padding: 12px var(--odr-spacing-lg);
  font-size: var(--odr-font-size-base);
  border: 1px solid #e8e9ea;
  font-weight: 400;
}

table.odr-tracking-table tbody td {
  padding: 12px var(--odr-spacing-lg);
  border: 1px solid #e8e9ea;
  font-size: var(--odr-font-size-base);
}

table.odr-tracking-table tbody td .odr-status-description {
  font-size: var(--odr-font-size-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
}

table.odr-tracking-table tbody td .odr-status-description a {
  word-break: break-all;
}

.odr-tracking-table-wrapper {
  margin: 0 auto var(--odr-spacing-xl);
  max-width: 922px;
}

table.odr-tracking-table .odr-tracking-table-status {
  width: 50%;
}

table.odr-tracking-table .odr-tracking-table-status.is-refused,
table.odr-tracking-table .odr-tracking-table-status.is-cancelled {
  width: 37%;
}

td.odr-tracking-table-action > a {
  display: grid;
  justify-content: center;
  text-align: center;
  grid-auto-columns: auto;
  font-size: 13px;
  color: #211f1f;
}

td.odr-tracking-table-action svg line {
  stroke: #211f1f;
}

td.odr-tracking-table-action svg circle {
  stroke: #c7ccd3;
}

td.odr-tracking-table-action svg {
  transform: scale(1.35);
}

.odr-status-progress {
  display: grid;
  position: relative;
  grid-template-columns: repeat(6, auto);
  margin-top: var(--odr-spacing-md);
  justify-content: space-between;
}

.odr-progress-dot {
  width: 18px;
  height: 18px;
  border: 1px solid var(--odr-color-gray-light);
  background: #fff;
  position: relative;
  z-index: 1;
  border-radius: 100%;
}

.is-cancelled .odr-progress-dot,
.is-refused .odr-progress-dot {
  border-color: var(--odr-color-gray-light);
}

.odr-progress-dot.active + .odr-progress-dot:before {
  content: "";
  width: 10px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 10px;
  background: var(--odr-color-orange);
  border-radius: 100%;
}

.odr-progress-dot.active,
.odr-progress-dot.completed,
.odr-progress-dot.active + .odr-progress-dot {
    border-color: var(--odr-color-orange);
}

.odr-progress-dot.active:before,.odr-progress-dot.completed:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iI0VCNjkwOSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTkgMTYuMkw0LjggMTJsLTEuNCAxLjRMOSAxOSAyMSA3bC0xLjQtMS40TDkgMTYuMnoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: contain;
}

.odr-progress-line {
  position: absolute;
  left: 0;
  background-color: var(--odr-color-orange);
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.is-refused .odr-progress-line,
.is-cancelled .odr-progress-line {
  background-color: var(--odr-color-gray-light);
}

.odr-progress-dot.refused svg {
  stroke: #f44351;
  width: 11px;
}

.odr-progress-dot.refused {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #f44351;
}

td.odr-tracking-table-status .odr-status-title {
  font-weight: 500;
  margin-bottom: 8px;
}

td.odr-tracking-table-status .odr-status-title.is-refused,
td.odr-tracking-table-status .odr-status-title.is-cancelled {
  color: #f44351;
}

/* Info card */
.odr-tracking-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--odr-bg-soft);
  border-radius: var(--odr-radius-lg);
  border: 1px solid var( --odr-border-light);
}

.odr-tracking-info-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var( --odr-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.odr-info-list {
  margin: 0;
}

.odr-info-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--odr-color-text-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.odr-info-list dd {
  font-size: 1rem;
  color: var(--odr-color-black);
  margin-bottom: 1rem;
}

.odr-tracking-actions {
  display: grid;
  justify-content: center;
  gap: 40px;
  text-align: center;
  margin-bottom: var(--odr-spacing-xl);
}

.odr-tracking-actions > div {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

a.odr-action-btn.btn-primary.btn {
  max-width: 280px;
  flex: 0 0 280px;
}

.btn.odr-action-btn-outline {
  border-width: 2px;
  background-color: transparent;
  color: #211f1f;
}

.odr-action-btn-primary.btn {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: var(--odr-color-black);
  color: #fff;
  border: none;
  border-radius: var(--odr-radius-lg);
  cursor: pointer;
  transition: background-color 0.2s;
}

/* ==========================================================================
   Progress Bar - Steps
   ========================================================================== */

.odr-progress {
  margin: 2rem 0;
  padding: 0 1rem;
}

.odr-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  counter-reset: step;
}

/* Connecting line behind steps */
.odr-progress-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var( --odr-border-light);
  z-index: 0;
}

.odr-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 var(--odr-spacing-xs);
}

.odr-progress-step .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var( --odr-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--odr-color-text-muted);
  margin-bottom: var(--odr-spacing-sm);
  transition: all 0.3s;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var( --odr-border-light);
}

.odr-progress-step .step-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--odr-color-text-muted);
  max-width: 90px;
  line-height: 1.3;
}

/* Active step (current) */
.odr-progress-step.active .step-circle {
  background-color: var(--odr-color-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(232, 122, 30, 0.25);
}

.odr-progress-step.active .step-label {
  color: var(--odr-color-primary);
  font-weight: 700;
}

/* Completed steps */
.odr-progress-step.completed .step-circle {
  background-color: var(--odr-success);
  color: #fff;
  box-shadow: 0 0 0 1px var(--odr-success);
}

.odr-progress-step.completed .step-label {
  color: var(--odr-success);
  font-weight: 600;
}

/* Refused badge */
.odr-refused-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background-color: var(--odr-danger);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.odr-progress .odr-refused-badge {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Status Alert Styles
   ========================================================================== */

.odr-status-current {
  margin-bottom: 1.5rem;
}

/* Status-specific colors using CSS classes instead of inline styles */
.odr-status-alert {
  font-size: 1rem;
  border-radius: var(--odr-radius-md);
  padding: 1rem 1.25rem;
}

.odr-status-alert.odr-status-0 {
  background-color: rgba(23, 162, 184, 0.1);
  border: 1px solid var(--odr-info);
  color: #0c5460;
}

.odr-status-alert.odr-status-1 {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--odr-warning);
  color: #856404;
}

.odr-status-alert.odr-status-2 {
  background-color: rgba(253, 126, 20, 0.1);
  border: 1px solid #fd7e14;
  color: #854800;
}

.odr-status-alert.odr-status-3 {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--odr-success);
  color: #155724;
}

.odr-status-alert.odr-status-4 {
  background-color: rgba(0, 123, 255, 0.1);
  border: 1px solid #007bff;
  color: #004085;
}

.odr-status-alert.odr-status-5 {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid var(--odr-success);
  color: #155724;
}

.odr-status-alert.odr-status-6 {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--odr-danger);
  color: #721c24;
}

.odr-status-alert.odr-status-7 {
  background-color: rgba(23, 162, 184, 0.1);
  border: 1px solid var(--odr-info);
  color: #0c5460;
}

.odr-status-alert.odr-status-8 {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid var(--odr-success);
  color: #155724;
}

/* Status message box */
.odr-status-message-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--odr-bg-soft);
  border-radius: var(--odr-radius-md);
  border-left: 4px solid var(--odr-color-text-muted);
}

.odr-status-message-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.odr-status-message-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}

/* Cancel section */
.odr-cancel-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var( --odr-border-light);
}

.odr-cancel-section .btn-outline-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Confirmation Page
   ========================================================================== */

.odr-confirmation {
  max-width: 560px;
  margin: 20px auto;
  padding: 2rem 0;
  text-align: center;
  background-color: #fff;
}

.odr-confirmation-icon {
  margin-bottom: 1rem;
}

.odr-confirmation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--odr-success);
  margin-bottom: 1.5rem;
}

.odr-confirmation-details {
  margin-bottom: 2rem;
}

.odr-confirmation-details p {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 1.2rem;
}

.odr-reference-box {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--odr-bg-soft);
  border: 2px solid var(--odr-color-black);
  border-radius: var(--odr-radius-lg);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--odr-color-black);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.odr-confirmation-note {
  font-weight: 600;
  color: var(--odr-color-black) !important;
}

.odr-confirmation-details .text-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.odr-confirmation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.odr-confirmation-actions .btn {
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  font-size: 11px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  /* Horizontal form â†’ vertical on mobile */

  #module-odrmanager-form .container {
    width: 100%;
  }

  #module-odrmanager-form #wrapper {
    min-height: auto;
  }

  #module-odrmanager-form #wrapper.odr-form-page {
    background: linear-gradient(
      180deg,
      rgba(251, 244, 237, 1) 10%,
      rgba(255, 255, 255, 1) 0
    );
  }

  .odr-hero-title {
    font-size: 30px;
  }

  .odr-form-section {
    padding-left: 0;
    padding-right: 0;
  }

  .odr-hero {
    flex-direction: column;
    gap: 10px;
  }

  .odr-hero-image {
    max-height: 268px;
    width: 100%;
    max-width: 100%;
  }

  .odr-hero:before {
    height: 650px;
  }
  .odr-hero-content {
    max-width: 100%;
  }
  .odr-hero-content > div {
    margin: 0 -20px;
    padding: 0 20px;
    position: relative;
  }
  .odr-hero-content > div:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background-color: rgba(251, 244, 237, 1);
    z-index: -1;
}
.odr-hero-subtitle {
  padding-bottom: 15px;
}
  .odr-upload-btn-content {
    flex-direction: column;
    height: 100px;
  }

  span.custom-checkbox span {
    text-align: left;
  }

  #odr-add-barcode {
    flex-direction: column;
    height: 100px;
    gap: 10px;
  }

  .odr-tutorial-grid {
    grid-template-columns: 1fr;
  }

  .odr-form .odr-tutorial-grid > div:nth-child(1) ~ div {
    border-top: 0;
  }

  .odr-form .odr-tutorial-grid .odr-upload-btn-content {
    height: auto;
    flex-direction: row;
  }

  .odr-upload-btn-file > span {
    gap: 10px;
  }

  .odr-fieldset-horizontal .odr-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .odr-fieldset-horizontal .odr-form-label {
    flex: none;
    max-width: 100%;
    text-align: left;
    margin-bottom: 0.25rem;
  }

  .odr-form-container,
  .odr-tracking-login,
  .odr-tracking-status {
    padding: 10px 0;
  }

  .odr-confirmation {
    padding: 20px;
  }

  .odr-confirmation:before {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    height: 100%;
    background: rgb(251, 244, 237);
    z-index: -1;
    top: 0;
  }

  .odr-tracking-login-card {
    padding: 1.25rem;
  }

  /* Page hero banner */
  .odr-page-hero {
    flex-direction: column;
    min-height: auto;
  }

  .odr-page-hero-image {
    flex: none;
    max-width: 100%;
  }

  .odr-page-hero-image img {
    max-height: 250px;
  }

  .odr-page-hero-content {
    padding: 1.5rem;
  }

  .odr-page-hero-title {
    font-size: 1.5rem;
  }

  .odr-intro-title {
    font-size: 1.35rem;
  }

  /* Per-offer hero banner */
  .odr-hero-banner img {
    max-height: 200px;
  }

  /* Progress bar: vertical on mobile */
  .odr-progress {
    padding: 0;
  }

  .odr-progress-steps {
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
  }

  .odr-progress-steps::before {
    top: 0;
    bottom: 0;
    left: 37px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .odr-progress-step {
    flex-direction: row;
    gap: 12px;
    padding: var(--odr-spacing-sm) 0;
  }

  .odr-progress-step .step-circle {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .odr-progress-step .step-label {
    text-align: left;
    max-width: none;
    font-size: 0.85rem;
  }

  /* Info list stacking */
  .odr-info-list dd {
    margin-bottom: 0.75rem;
  }

  /* Reference box sizing */
  .odr-reference-box {
    font-size: 1.35rem;
    padding: 0.75rem 1.25rem;
  }

  /* Confirmation actions full width */
  .odr-confirmation-actions .btn {
    min-width: auto;
    width: 100%;
  }

  /* File upload zones */
  .odr-file-upload {
    padding: var(--odr-spacing-md) 12px;
  }

  table.odr-tracking-table,
  table.odr-tracking-table thead,
  table.odr-tracking-table tbody,
  table.odr-tracking-table tr,
  table.odr-tracking-table td {
    display: block;
    width: 100%;
  }
  table.odr-tracking-table th {
    display: none;
  }

  table.odr-tracking-table .odr-tracking-table-status {
    width: 100% !important;
  }

  td.odr-tracking-table-action > a {
    grid-template-columns: auto auto;
    gap: 1rem;
    text-decoration: underline;
    align-items: center;
  }

  td.odr-tracking-table-action > a > span {
    display: flex;
  }

  .tracking-table-mobile-title {
    display: block !important;
  }
  .tracking-table-mobile-title + div {
    padding: var(--odr-spacing-md) var(--odr-spacing-sm);
  }

  .tracking-table-mobile-title > div {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .tracking-table-mobile-title {
    display: block !important;
    background: var(--odr-bg-hero);
    padding: 10px;
    font-size: var(--odr-font-size-sm);
  }
  td.odr-tracking-table-action svg {
    transform: none;
  }

  table.odr-tracking-table tbody td:not(.odr-tracking-table-action) {
    display: grid;
    grid-template-columns: 30% 1fr;
    padding: 0;
  }

}

@media (max-width: 576px) {
  .odr-legend {
    font-size: 1.05rem;
  }

  .odr-tracking-info {
    padding: 1rem;
  }

  .odr-hero-banner {
    border-radius: 0;
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* ==========================================================================
   Mon Compte â€” Historique ODR
   ========================================================================== */

.odr-account-container {
  max-width: 900px;
  margin: 0 auto;
}

.odr-account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.odr-account-header p {
  margin: 0;
}

/* Table desktop */
.odr-account-table {
  width: 100%;
  border-collapse: collapse;
}

.odr-account-table thead th {
  background-color: var(--odr-bg-soft);
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--odr-color-text-muted);
  font-weight: 600;
}

.odr-account-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.odr-account-table tbody tr:hover {
  background-color: var(--odr-bg-soft);
}

/* Status badge */
.odr-status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

#module-odrmanager-account .btn-primary.odr-tracking-btn {
  background-color: #f6f6f6;
  color: #000;
}

#module-odrmanager-account .btn-primary.odr-tracking-btn:hover {
  background-color: #211f1f !important;
  border-color: #211f1f;
  color: #fff;
}

/* Mobile cards */
.odr-account-card {
  border: 1px solid #dee2e6;
  border-radius: var(--odr-radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.odr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--odr-bg-soft);
  border-bottom: 1px solid #eee;
}

.odr-card-body {
  padding: 0.75rem 1rem;
}

.odr-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.odr-card-label {
  color: var(--odr-color-text-muted);
  font-weight: 500;
}

.odr-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #eee;
}

.odr-card-footer .btn-block {
  width: 100%;
  text-align: center;
}

/* Account link in Mon Compte page */
#odr-account-link img {
  margin-top: 32px;
}