/* Resi e Rimborsi - stile front-end (compilato da assets/scss/resi-e-rimborsi.scss) */
.rr-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.rr-wrap * {
  box-sizing: border-box;
}

.rr-intro {
  margin-bottom: 1.5rem;
}
.rr-intro .rr-conditions {
  font-size: 0.95rem;
  line-height: 1.6;
}
.rr-intro .rr-instructions {
  margin-top: 1rem;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
.rr-intro .rr-instructions summary {
  cursor: pointer;
  font-weight: 600;
}

.rr-notice {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  border-left: 4px solid;
}
.rr-notice--success {
  background: #edf7ed;
  border-color: #1a7f37;
}
.rr-notice--error {
  background: #fcebea;
  border-color: #b32d2e;
}
.rr-notice--info {
  background: #eef4fb;
  border-color: #2271b1;
}

.rr-form {
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.rr-form h3 {
  margin-top: 0;
}
.rr-form .rr-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.rr-form .rr-field label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.rr-form .rr-field input,
.rr-form .rr-field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

.rr-btn {
  display: inline-block;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.rr-btn--primary {
  background: #2271b1;
  color: #fff;
}
.rr-btn--primary:hover {
  background: #135e96;
  color: #fff;
}
.rr-btn--confirm {
  background: #1a7f37;
  color: #fff;
}
.rr-btn--confirm:hover {
  background: #156029;
  color: #fff;
}

.rr-orders__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rr-orders__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.rr-orders__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.rr-orders__info .rr-orders__date,
.rr-orders__info .rr-orders__total,
.rr-orders__info .rr-orders__deadline {
  font-size: 0.9rem;
  color: #555;
}

.rr-products-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.rr-products-table th,
.rr-products-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e2e4e7;
  vertical-align: middle;
}
.rr-products-table .rr-qty {
  width: 70px;
  padding: 0.4rem;
}
.rr-products-table .rr-reason {
  width: 100%;
  padding: 0.4rem;
}
.rr-products-table input:disabled {
  opacity: 0.45;
}

.rr-instructions-box,
.rr-conditions-box {
  background: #f8f9fa;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.rr-summary {
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  padding: 1.5rem;
}
.rr-summary .rr-warning {
  background: #fff8e5;
  border-left: 4px solid #dba617;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.rr-confirmation {
  text-align: center;
  background: #edf7ed;
  border: 1px solid #c6e8c6;
  border-radius: 6px;
  padding: 2rem 1.5rem;
}
.rr-confirmation__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1a7f37;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rr-recesso-button {
  display: inline-block;
}
