/*
 * @author    Mediacom87
 * @copyright 2008-today Mediacom87
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 *
 * Page-scoped stylesheet for the front withdrawal flow (list / guest /
 * confirm / success). Loaded ONLY from the front controller's setMedia()
 * so it does not weigh on every page of the shop. Everything reusable on
 * native PrestaShop pages (button, card) lives in
 * medretractation-hooks-VERSION.css and is loaded by hookDisplayHeader.
 */
.med-retract-confirm-button {
    display: inline-block;
}

.med-retract-page .med-retract-declaration {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 15px;
    margin: 15px 0;
}

.med-retract-page .med-retract-warning {
    color: #8a6d3b;
    background: #fcf8e3;
    border: 1px solid #faebcc;
    padding: 10px 15px;
    border-radius: 3px;
    margin: 15px 0;
}

.med-retract-recap {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.med-retract-recap li {
    padding: 4px 0;
}

/* Postal mail fallback: rendered as a discreet info card so the
   alternative reads as "additional, optional info" rather than a second
   required step. Wrapping it in a self-contained card sidesteps both the
   PS 1.6 form float (col-xs-12 adds float:left) and the Hummingbird PS 9
   form-row dividers that previously polluted any border-based separator. */
.med-retract-page .med-retract-modelform-card {
    clear: both;
    margin: 32px 0 0;
    padding: 16px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.med-retract-page .med-retract-modelform-intro {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 0.92em;
    line-height: 1.45;
}

.med-retract-page .med-retract-modelform-link {
    margin: 0;
}

.med-retract-page .med-retract-modelform-link a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.med-retract-page .med-retract-modelform-link a:hover {
    text-decoration: none;
    opacity: 0.85;
}

/* Partial-withdrawal item picker (1.2.0+): each row carries a checkbox that
   toggles its quantity input, plus a quantity stepper bounded by the qty
   actually present on the order. */
.med-retract-page .med-retract-items {
    margin: 16px 0 12px;
}

.med-retract-page .med-retract-items-intro {
    color: #6b7280;
    font-size: 0.92em;
    margin: 0 0 12px;
}

.med-retract-page .med-retract-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.med-retract-page .med-retract-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.med-retract-page .med-retract-item-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 60%;
    margin: 0;
    cursor: pointer;
}

.med-retract-page .med-retract-item-ref {
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 400;
    margin-left: 4px;
}

.med-retract-page .med-retract-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.med-retract-page .med-retract-item-qty label {
    margin: 0;
    font-size: 0.92em;
    color: #374151;
}

.med-retract-page .med-retract-item-qty-input {
    width: 70px;
    text-align: center;
}

.med-retract-page .med-retract-item-qty-max {
    color: #6b7280;
    font-size: 0.9em;
}

.med-retract-page .med-retract-reason {
    margin: 16px 0;
}

.med-retract-page .med-retract-reason label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.med-retract-page .med-retract-reason textarea {
    width: 100%;
    resize: vertical;
    min-height: 70px;
}

/* Ineligible items: shown for transparency (the customer sees why a product is
   not in the picker), grayed out and non-interactive. */
.med-retract-page .med-retract-item-ineligible {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    opacity: 0.85;
}

.med-retract-page .med-retract-item-ineligible .med-retract-item-name strong {
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-color: #9ca3af;
}

.med-retract-page .med-retract-item-reason {
    flex: 1 1 100%;
    margin-top: 4px;
    padding: 6px 10px;
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    color: #92400e;
    font-size: 0.88em;
    font-style: italic;
    line-height: 1.4;
}
