/*
 * @author    Mediacom87
 * @copyright 2008-today Mediacom87
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 *
 * Front stylesheet loaded on EVERY page of the shop via hookDisplayHeader.
 * Scope: classes used by the snippets the module injects into native pages
 * (footer link, customer-account block, order-detail card). Keep this file
 * as small as possible - everything specific to the withdrawal page itself
 * lives in medretractation-page-VERSION.css and is loaded only there
 * (via setMedia() of the front controller).
 */
.med-retract-block {
    margin: 15px 0;
}

/* Order-detail withdrawal card */
.med-retract-card {
    border: 1px solid #e2e6ea;
    border-left: 4px solid #2fb5d2;
    border-radius: 6px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.med-retract-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #232323;
}

.med-retract-card-text {
    margin: 0 0 14px;
    color: #6c757d;
    font-size: 14px;
}

.med-retract-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.med-retract-card-actions .med-retract-button {
    margin: 0;
}

.med-retract-card-actions .med-retract-modelform {
    font-size: 14px;
    text-decoration: underline;
}

.med-retract-button {
    display: inline-block;
}

/* Button size / alignment options (1.4.0). Applied to the withdrawal button or
   its wrapper; alignment turns the element into a fit-content block so auto
   margins position it regardless of the surrounding container. */
.med-retract-btn-sm { padding: 4px 10px; font-size: 0.85em; }
.med-retract-btn-lg { padding: 12px 24px; font-size: 1.15em; }
.med-retract-align-left,
.med-retract-align-center,
.med-retract-align-right {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
}
.med-retract-align-left { margin-right: auto; }
.med-retract-align-center { margin-left: auto; margin-right: auto; }
.med-retract-align-right { margin-left: auto; }

/* Privacy note and legal links under the withdrawal form (1.4.0). */
.med-retract-privacy {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9em;
    color: #666;
}
.med-retract-privacy-links a { margin: 0; }
