/* Webit RMA – Vrácení zboží */

/* ===========================
   LANDING PAGE
   =========================== */

.rma-landing {
  max-width: 80dvw;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.rma-landing__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.rma-landing__title {
  font-family: 'Botanika Mono', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .5rem;
  color: #232323;
}

.rma-landing__subtitle {
  font-size: .9375rem;
  color: #5a5a5a;
  margin: 0;
}

/* Two-column cards */
.rma-landing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.rma-card {
  border: 1px solid #ddd;
  padding: 2rem 1.75rem;
  background: #fff;
}

.rma-card__title {
  font-family: 'Botanika Mono', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #232323;
  margin-bottom: .75rem;
  letter-spacing: .02em;
}

.rma-card__desc {
  font-size: .875rem;
  color: #5a5a5a;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Form fields */
.rma-field {
  margin-bottom: 1rem;
}

.rma-field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: #232323;
  margin-bottom: .375rem;
}

.rma-input {
  display: block;
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  font-size: .875rem;
  color: #232323;
  outline: none;
  transition: border-color .15s;
  border-radius: 0;
  -webkit-appearance: none;
}

.rma-input:focus {
  border-color: #232323;
}

/* Buttons */
.rma-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: .8rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-top: 1.25rem;
}

.rma-btn--primary {
  background: #232323;
  color: #fff;
}

.rma-btn--primary:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.rma-btn--outline {
  background: transparent;
  color: #232323;
  border: 1.5px solid #232323;
}

.rma-btn--outline:hover {
  background: #232323;
  color: #fff;
  text-decoration: none;
}

/* Forgot password */
.rma-forgot {
  display: block;
  text-align: center;
  margin-top: .875rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #456d44;
  text-decoration: none;
}

.rma-forgot:hover {
  color: #2e4a2e;
  text-decoration: underline;
}

/* Guest bullet list */
.rma-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}

.rma-list li {
  font-size: .875rem;
  color: #5a5a5a;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: .35rem;
}

.rma-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #5a5a5a;
}

/* Responsive */
@media (max-width: 767px) {
  .rma-landing__cards {
    grid-template-columns: 1fr;
  }

  .rma-landing__title {
    font-size: 1.5rem;
  }

  .rma-card {
    padding: 1.5rem 1.25rem;
  }
}

.webit-rma-auth,
.webit-rma-form {
  max-width: 80dvw;
  margin: 0 auto;
}

.webit-rma-auth .rma-card,
.webit-rma-form .card,
.webit-rma-status .card {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.webit-rma-status {
  max-width: 80dvw;
  margin: 0 auto;
}

.webit-rma-auth .rma-intro {
    color: #555;
    margin-bottom: 1.5rem;
}

/* Products table */
.rma-products-table {
    border-collapse: separate;
    border-spacing: 0;
}

.rma-products-table thead th {
    background: #f8f9fa;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #dee2e6;
}

.rma-products-table tbody tr {
    transition: background .15s;
}

.rma-products-table tbody tr:hover {
    background: #f5f5f5;
}

.rma-product-img {
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #fff;
}

.rma-no-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
    display: inline-block;
}

.rma-col-select { width: 60px; }
.rma-col-image  { width: 80px; }
.rma-col-qty    { width: 110px; }
.rma-col-return-qty { width: 120px; }
.rma-col-reason { min-width: 200px; }

.rma-reason-other {
    font-size: .875rem;
}

.rma-reason-select {
    color: #232323;
    padding: .25rem .5rem !important;
    height: auto !important;
}

/* Status timeline */
.rma-timeline {
    overflow-x: auto;
    padding: 1rem 0;
}

.rma-timeline-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.rma-timeline-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.rma-timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 80px;
}

.rma-timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

.rma-timeline-step.active .rma-timeline-dot {
    box-shadow: 0 0 0 2px #495057;
}

.rma-timeline-label {
    color: #6c757d;
    font-size: .75rem;
    line-height: 1.2;
}

.rma-timeline-step.active .rma-timeline-label {
    color: #212529;
    font-weight: 600;
}

.rma-state-badge {
    display: inline-block;
    font-size: 1rem !important;
}

/* Returned items table */
.rma-returned-table {
    font-size: .9rem;
}

/* List table */
.rma-list-table th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Footer link */
.webit-rma-footer-link {
  color: #5a5a5a !important;
  font-weight: 700;
  margin: 2.5rem 0;
  text-align: center;
  }

/* Orders list page */
.webit-rma-orders {
  max-width: 80dvw;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* My Account link */
.account-link .material-icons {
    vertical-align: middle;
    margin-right: 6px;
    font-size: 1.4rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .rma-products-table .rma-col-image { display: none; }
    .rma-col-select { width: 44px; }
    .rma-form-footer { flex-direction: column; }
    .rma-form-footer .btn { width: 100%; }
    .rma-timeline-steps::before { display: none; }
    .rma-timeline-steps { flex-direction: column; gap: .5rem; }
    .rma-timeline-step { display: flex; align-items: center; min-width: unset; text-align: left; }
    .rma-timeline-dot { margin: 0 12px 0 0; flex-shrink: 0; }
}
