/*
 * @author    Mediacom87
 * @copyright 2008-today Mediacom87
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.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,
.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;
}

/* ---- Back-office (configuration page) ---- */
.module-item {
    min-height: 140px;
}

.module-item h4 {
    margin-top: 0;
}

#medConfForm .panel-footer {
    overflow: hidden;
}

/* Excluded categories: native hierarchical checkbox tree, scrollable */
.med-retract-category-tree .panel {
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 0;
}

/* Legal-texts tab */
.med-legal-section {
    margin-bottom: 22px;
}

/* Contain the floated Bootstrap column rendered by ps-form-group, otherwise the
   next section's heading floats up beside the previous textarea. */
.med-legal-section::after {
    content: "";
    display: table;
    clear: both;
}

.med-legal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    clear: both;
}

.med-legal-section textarea {
    font-family: Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: pre;
    background: #fbfcfd;
}

/* Excluded products: tag list */
.med-retract-tags {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.med-retract-tag {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 3px 10px;
    margin: 0 6px 6px 0;
    font-size: 13px;
    line-height: 18px;
}

.med-retract-tag .med-retract-tag-remove {
    margin-left: 6px;
    color: #b30000;
    font-weight: bold;
    text-decoration: none;
}

.med-retract-tag .med-retract-tag-remove:hover {
    color: #ff0000;
}

/* Excluded products: custom search dropdown */
.med-retract-search-wrap {
    position: relative;
}

.med-retract-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.med-retract-result-item {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.med-retract-result-item:last-child {
    border-bottom: 0;
}

.med-retract-result-item:hover {
    background: #eef4ff;
}

.med-retract-result-item .icon-cube {
    margin-right: 6px;
    color: #64748b;
}

.med-retract-result-item.med-retract-ac-added {
    opacity: 0.55;
    cursor: default;
}

.med-retract-result-item.med-retract-ac-added em {
    color: #16a34a;
    font-style: normal;
}
