/* =========================================================
   Marine Booking Wizard — shared styles
   Included by all marine/*.jsp pages
   ========================================================= */

/* ── Breadcrumb: pill/tab navigation ── */
.marine-wizard-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    padding: 14px 0 22px;
}
.marine-wizard-breadcrumb .mw-step {
    display: inline-flex;
    align-items: center;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    background: #e8edf5;
    color: #aaa;
    white-space: nowrap;
}
.marine-wizard-breadcrumb .mw-step.done {
    background: #c8d4e8;
    color: #0F1C3E;
}
.marine-wizard-breadcrumb .mw-step.done a {
    color: #0F1C3E;
    text-decoration: none;
}
.marine-wizard-breadcrumb .mw-step.done a:hover {
    text-decoration: underline;
}
.marine-wizard-breadcrumb .mw-step.active {
    background: #0F1C3E;
    color: #fff;
}
.marine-wizard-breadcrumb .mw-sep {
    color: #bbb;
    font-size: 16px;
    padding: 0 1px;
    font-weight: normal;
}

/* ── Common wizard buttons ── */
.btn-wizard-primary {
    background: #0F1C3E;
    color: #fff;
    padding: 8px 22px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.btn-wizard-primary:disabled {
    background: #6a7a9a;
    cursor: not-allowed;
}
.btn-wizard-secondary {
    background: #888;
    color: #fff;
    padding: 8px 22px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}
.wizard-actions {
    margin-top: 20px;
    margin-bottom: 50px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* ── Spinner (shared across wizard steps) ── */
.mw-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #0F1C3E;
    border-radius: 50%;
    animation: mw-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes mw-spin { to { transform: rotate(360deg); } }

.validate-spinner {
    display: none;
    margin-left: 14px;
    font-size: 13px;
    color: #555;
    vertical-align: middle;
}

/* ── Results page: flight selection (#734) ── */
.mw-count {
    margin: 6px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0F1C3E;
}
.mw-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.mw-select:disabled {
    cursor: not-allowed;
}
.mw-select-now,
.mw-continue,
.mw-show-more {
    padding: 6px 16px;
    background: #0F1C3E;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.mw-select-now:disabled,
.mw-continue:disabled {
    opacity: 0.5;
    cursor: default;
}
.mw-show-more {
    display: block;
    margin: 12px auto;
}
.mw-bf-option {
    cursor: pointer;
    white-space: nowrap;
}
.mw-bf-select {
    padding: 4px 14px;
    background: #0F1C3E;
    color: #fff;
    border: 1px solid #0F1C3E;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
.mw-bf-select.mw-bf-selected,
.mw-bf-select:disabled {
    background: #e6f4ea;
    color: #1e7e34;
    border-color: #1e7e34;
    cursor: default;
}
/* Operator selection panel: right-side sticky, minimisable (#734) */
.mw-panel {
    position: fixed;
    top: 120px;
    right: 12px;
    z-index: 200;
    width: 280px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d5d9e2;
    border-top: 3px solid #0F1C3E;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-size: 12px;
    color: #333;
}
.mw-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f4f6fa;
    border-bottom: 1px solid #e3e6ec;
    font-weight: bold;
    color: #0F1C3E;
    font-size: 13px;
}
.mw-panel-toggle {
    border: none;
    background: none;
    color: #0F1C3E;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}
.mw-panel-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8px 10px 10px;
}
.mw-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    min-height: 0;
}
.mw-card {
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    background: #fafbfd;
}
.mw-card-head {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.mw-card-carrier {
    flex: 1 1 auto;
    font-weight: bold;
    color: #0F1C3E;
}
.mw-card-fare {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #28b1a4;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
}
.mw-card-remove {
    margin-left: 6px;
    border: none;
    background: none;
    color: #c0392b;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}
.mw-card-line {
    padding: 1px 0;
}
.mw-card-caption {
    color: #777;
    margin-right: 4px;
}
.mw-card-price {
    margin-top: 4px;
    text-align: right;
    font-weight: bold;
    font-size: 13px;
    color: #0F1C3E;
}
.mw-panel .mw-continue {
    width: 100%;
    margin-top: 6px;
}
.mw-panel-tab {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 200;
    padding: 8px 12px;
    background: #0F1C3E;
    color: #fff;
    border: none;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}
/* jqTransform replaces .mw-select with a.jqTransformCheckbox; mirror the limit-reached state */
a.jqTransformCheckbox.mw-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Pricing overlay after Continue / Select (#734) */
.mw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(15, 28, 62, 0.45);
}
.mw-overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 22px 30px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 14px;
    color: #0F1C3E;
}
.mw-spinner.mw-spinner-lg {
    width: 36px;
    height: 36px;
    border-width: 4px;
    margin: 0 0 12px;
}
.mw-selection-hint {
    color: #555;
    margin-top: 2px;
    font-size: 11px;
}
