/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

/* ==========================================================================
   Easy Returns – front-end styles
   ========================================================================== */

/* Wrapper */
.er-returns-wrapper {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ---- Landing cards ---- */
.er-card-choice {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: box-shadow .25s, transform .2s;
  height: 100%;
}

.er-card-choice:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}

.er-card-choice .card-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.er-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.er-card-icon.er-icon-customer {
  background: #e4f6fa;
  color: #2fb5d2;
}

.er-card-icon.er-icon-guest {
  background: #f0f0f0;
  color: #888;
}

.er-card-icon .material-icons {
  font-size: 1.75rem;
}

.er-card-choice .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #1a1a1a;
}

.er-card-choice .card-text {
  color: #666;
  font-size: .9rem;
  line-height: 1.6;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.er-card-choice .btn {
  width: 100%;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 6px;
  text-align: center;
}

/* ---- Form panel ---- */
.er-form-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 2rem;
  max-width: 560px;
}

.er-form-panel .form-group,
.er-form-panel .mb-3 {
  margin-bottom: 1.25rem;
}

.er-form-panel label,
.er-form-panel .form-label {
  font-weight: 600;
  font-size: .875rem;
  color: #444;
  margin-bottom: .4rem;
  display: block;
}

.er-form-panel .form-control {
  border-radius: 6px;
  border-color: #ccc;
  padding: .6rem .85rem;
  font-size: .9rem;
}

.er-form-panel .form-control:focus {
  border-color: #2fb5d2;
  box-shadow: 0 0 0 .18rem rgba(47, 181, 210, .22);
  outline: none;
}

.er-form-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ---- PIN input ---- */
.er-pin-input {
  font-size: 2rem;
  letter-spacing: .5rem;
  text-align: center;
  max-width: 220px;
  font-weight: 700;
  border-radius: 8px !important;
}

/* ---- Table styling ---- */
.er-table-wrap .table th {
  background: #f7f7f7;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #555;
  font-weight: 700;
  border-bottom: 2px solid #dee2e6;
}

.er-table-wrap .table td,
.er-table-wrap .table th {
  vertical-align: middle;
  padding: .75rem 1rem;
}

#er-return-form .table td,
#er-return-form .table th {
  vertical-align: middle;
}

.er-qty-input {
  display: inline-block;
  width: 80px !important;
}

/* ---- Confirm ---- */
.er-confirm {
  padding: 3rem 1rem;
}

.er-confirm-icon {
  font-size: 5rem !important;
  color: #28a745;
  display: block;
  margin: 0 auto 1rem;
  text-align: center;
}

/* ---- Back link ---- */
.er-back-link {
  font-size: .875rem;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin-top: .5rem;
  text-decoration: none;
}

.er-back-link:hover {
  color: #2fb5d2;
  text-decoration: underline;
}

/* ---- Hook block (footer) ---- */
.er-hook-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .5rem 0;
}

.er-hook-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #000;
  margin: 0;
  opacity: .85;
  white-space: nowrap;
}

.er-hook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.er-hook-btn {
  font-size: .8rem;
}

/* ---- Message-to-support form ---- */
.er-msg-details {
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: .75rem;
}

.er-msg-summary {
  cursor: pointer;
  font-size: .85rem;
  color: #2fb5d2;
  font-weight: 600;
  list-style: none;
  outline: none;
}

.er-msg-summary::-webkit-details-marker { display: none; }

.er-msg-summary::before {
  content: '+ ';
}

details[open] .er-msg-summary::before {
  content: '- ';
}

.er-msg-form {
  margin-top: .75rem;
}

.er-msg-textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-size: .875rem;
  margin-bottom: .5rem;
}

.er-msg-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.er-msg-counter {
  font-size: .75rem;
}

/* ---- Message history ---- */
.er-msg-history {
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: .75rem;
}

.er-msg-history-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #999;
  margin: 0 0 .6rem;
}

.er-msg-bubble {
  margin-bottom: .6rem;
  max-width: 90%;
  padding: .55rem .75rem;
  border-radius: 8px;
  font-size: .85rem;
  line-height: 1.45;
}

.er-msg-bubble--guest {
  background: #eaf6fb;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.er-msg-bubble--reply {
  background: #f4f4f4;
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.er-msg-bubble-meta {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: #999;
  margin-bottom: .25rem;
}

.er-msg-author {
  font-weight: 700;
  color: #555;
}

.er-msg-text {
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .er-form-panel {
    padding: 1.5rem 1.25rem;
  }

  .er-returns-wrapper .row > [class*="col-"] + [class*="col-"] {
    margin-top: 1rem;
  }
}
