/**
 * NOTICE OF LICENSE
 * This file is licenced under the Software License Agreement.
 * @author    01generator
 * @copyright 2015-2026 01generator
 * @license   LICENSE.txt
 */

.zoreturnpolicy-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0;
    padding: 14px 16px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
}

.zoreturnpolicy-entry__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef1f3;
    color: #4a4f54;
}

.zoreturnpolicy-entry__icon svg {
    display: block;
}

.zoreturnpolicy-entry__body {
    flex: 1 1 auto;
    min-width: 0;
}

.zoreturnpolicy-entry__notice {
    margin: 0 0 10px;
    font-size: 0.92em;
    line-height: 1.45;
    color: #4f5459;
}

.zoreturnpolicy-entry__button {
    display: inline-block;
}

@media (max-width: 480px) {
    .zoreturnpolicy-entry {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*
 * Self-contained account-dashboard tile — deliberately NOT matching classic's
 * ".col-lg-4 / link-item" or hummingbird's ".account-menu__link" conventions.
 * Those two are mutually incompatible and can change again in a future
 * theme/version; a fixed-width full-row card renders consistently regardless
 * of whichever grid/flex system the surrounding theme tile-grid uses.
 */
.zoreturnpolicy-account-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 12px 16px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
    color: #32373c;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.zoreturnpolicy-account-tile:hover,
.zoreturnpolicy-account-tile:focus {
    background: #eef1f3;
    color: #32373c;
    text-decoration: none;
}

.zoreturnpolicy-account-tile__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef1f3;
}

.zoreturnpolicy-account-tile__icon svg {
    display: block;
}

.zoreturnpolicy-account-tile__label {
    font-weight: 600;
    font-size: 0.95em;
}

/*
 * Compact sidebar-nav variant (account-link.tpl) — deliberately plain, sized
 * to sit as one row among the theme's own narrow vertical account-menu list
 * ("Order history", "Addresses", "Sign out", ...) rather than as a card.
 * Confirmed live: the card style above overflowed and looked broken there.
 */
.zoreturnpolicy-account-link-compact {
    display: flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.3;
    gap: .5rem;
    padding: .75rem 1rem;
}

.zoreturnpolicy-account-link-compact:hover,
.zoreturnpolicy-account-link-compact:focus {
    color: inherit;
    text-decoration: underline;
}

.zoreturnpolicy-account-link-compact__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.zoreturnpolicy-account-link-compact__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/*
 * "My Withdrawal Requests" list — same self-contained-card rationale as the
 * account tile above: a raw Bootstrap <table class="table"> looks and
 * behaves differently across BS3/4/5 (used respectively by the admin theme,
 * classic, and hummingbird) and can pick up unwanted theme table styles.
 */
.zoreturnpolicy-mywithdrawals {
    margin: 15px 0;
}

.zoreturnpolicy-mywithdrawals__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #dde1e5;
    border-radius: 6px;
    background: #f7f9fa;
}

.zoreturnpolicy-mywithdrawals__order {
    flex: 1 1 140px;
    font-weight: 600;
    color: #32373c;
}

.zoreturnpolicy-mywithdrawals__status {
    flex: 1 1 160px;
}

.zoreturnpolicy-mywithdrawals__action {
    flex: 0 0 auto;
    margin-left: auto;
}

.zoreturnpolicy-mywithdrawals__action form {
    display: inline;
}

.zoreturnpolicy-mywithdrawals__empty {
    color: #6c757d;
    font-style: italic;
}

.zoreturnpolicy-line--excluded {
    opacity: 0.55;
}

.zoreturnpolicy-line__exclusion-reason {
    font-size: 0.85em;
    font-style: italic;
    color: #a94442;
}

.zoreturnpolicy-step2__declaration {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.85em;
}

.zoreturnpolicy-admin-panel {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 15px;
    background: #fffbe6;
}

/*
 * Self-contained status pill, used on both front (BS4/5 theme) and admin
 * (BS3 theme) — deliberately not using Bootstrap's .label-*/.badge-* classes
 * since their names/styles aren't compatible between those two Bootstrap
 * versions, and this module has to render identically in both places.
 */
.zoreturnpolicy-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: #767676;
    white-space: nowrap;
}

.zoreturnpolicy-badge--default {
    background: #767676;
}

.zoreturnpolicy-badge--info {
    background: #5bc0de;
}

.zoreturnpolicy-badge--warning {
    background: #f0ad4e;
}

.zoreturnpolicy-badge--success {
    background: #4cae4c;
}

.zoreturnpolicy-badge--danger {
    background: #d9534f;
}

.zoreturnpolicy-status-badge {
    margin-left: 4px;
}
