/* Ferry checkout page — isolated from theme conflicts */
.ferry-checkout-page {
    background: #f3f5f8 !important;
    padding: 28px 0 64px !important;
    min-height: 70vh;
}

.ferry-checkout-page *,
.ferry-checkout-page *::before,
.ferry-checkout-page *::after {
    box-sizing: border-box;
}

.ferry-checkout-top {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin: 0 0 22px !important;
}

.ferry-checkout-route {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1a3a6b !important;
    line-height: 1.2 !important;
}

.ferry-checkout-route__sep {
    color: #e67e22 !important;
    padding: 0 6px;
}

.ferry-checkout-trip-badge {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8edf5 !important;
    color: #1a3a6b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.ferry-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}

.fc-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(26, 58, 107, 0.06) !important;
    margin: 0 0 18px !important;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.fc-card.is-dial-open {
    z-index: 80 !important;
}

.fc-card__head {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 16px 20px !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: #fff !important;
}

.fc-card__head i {
    color: #e67e22 !important;
    font-size: 20px !important;
}

.fc-card__head h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a3a6b !important;
    line-height: 1.3 !important;
}

.fc-card__head--plain {
    border-bottom: 0 !important;
    padding-bottom: 4px !important;
}

.fc-card__body {
    padding: 18px 20px 20px !important;
    background: #fff !important;
}

.fc-card__lead {
    margin: 0 20px 14px !important;
    color: #64748b !important;
    font-size: 14px !important;
}

.fc-grid {
    display: grid !important;
    gap: 14px 16px !important;
    width: 100% !important;
}

.fc-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.fc-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.fc-field {
    min-width: 0 !important;
    width: 100% !important;
}

.fc-field--full {
    grid-column: 1 / -1 !important;
}

.fc-label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.3 !important;
}

.ferry-checkout-page .fc-input,
.ferry-checkout-page input.fc-input,
.ferry-checkout-page select.fc-input {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    border: 1px solid #d5dde8 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    background: #fff !important;
    color: #12263a !important;
    font-size: 14px !important;
    line-height: 44px !important;
    box-shadow: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.ferry-checkout-page .fc-input:focus {
    outline: none !important;
    border-color: #1a3a6b !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.12) !important;
}

.fc-phone {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    position: relative;
    gap: 0 !important;
    margin: 0 !important;
}

.fc-phone > * {
    margin: 0 !important;
}

.fc-phone-dial {
    position: relative;
    flex: 0 0 auto;
    z-index: 2;
    margin: 0 !important;
}

.fc-phone-dial.is-open {
    z-index: 90 !important;
}

.fc-phone-dial__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 108px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #d5dde8 !important;
    border-right-width: 0 !important;
    border-radius: 10px 0 0 10px !important;
    background: #f8fafc !important;
    color: #1a3a6b !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer;
    box-shadow: none !important;
}

.fc-phone-dial__btn i {
    font-size: 10px !important;
    color: #64748b !important;
    margin-left: 2px;
}

.fc-phone-dial__flag,
.fc-phone-dial__option-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fc-phone-dial__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 100 !important;
    width: min(280px, 80vw);
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(26, 58, 107, 0.14) !important;
    overflow: hidden;
}

.fc-phone-dial__menu[hidden] {
    display: none !important;
}

.fc-phone-dial__search {
    width: 100% !important;
    height: 40px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
}

.fc-phone-dial__list {
    max-height: 240px;
    overflow-y: auto;
}

.fc-phone-dial__option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px !important;
    border: 0 !important;
    background: #fff !important;
    text-align: left;
    cursor: pointer;
}

.fc-phone-dial__option[hidden],
.fc-phone-dial__option.is-hidden {
    display: none !important;
}

.fc-phone-dial__option:hover,
.fc-phone-dial__option.is-selected {
    background: #f3f6fb !important;
}

.fc-phone-dial__option-code {
    font-weight: 700 !important;
    color: #1a3a6b !important;
    font-size: 13px !important;
    min-width: 48px;
}

.fc-phone-dial__option-name {
    flex: 1 1 auto;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ferry-checkout-page .fc-phone .fc-input,
.ferry-checkout-page .fc-phone input.fc-input {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 0 10px 10px 0 !important;
    border-left: 1px solid #d5dde8 !important;
}

.fc-phone__cc {
    display: none !important;
}

.fc-check,
.fc-radio {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px !important;
    color: #475569 !important;
    cursor: pointer;
    margin: 0 !important;
}

.fc-check {
    margin-top: 8px !important;
}

.fc-radios {
    display: flex !important;
    gap: 18px;
    flex-wrap: wrap;
}

.fc-radios--input {
    min-height: 44px !important;
    align-items: center !important;
}

.fc-hint {
    display: block !important;
    margin-top: 6px !important;
    color: #e67e22 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.fc-billing__bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px !important;
    border-bottom: 0 !important;
    background: #fff !important;
}

.fc-billing__title {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.fc-billing__title i {
    color: #e67e22 !important;
    font-size: 20px !important;
}

.fc-billing__title h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a3a6b !important;
    line-height: 1.3 !important;
}

.fc-billing__toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    user-select: none;
}

.fc-billing__toggle input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #e67e22;
    cursor: pointer;
    flex: 0 0 auto;
}

.fc-billing .fc-billing__fields {
    border-top: 1px solid #eef2f7 !important;
}

.fc-billing .fc-billing__fields[hidden] {
    display: none !important;
}

.fc-sidebar {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 18px;
}

.fc-summary,
.fc-trip {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 58, 107, 0.06) !important;
}

.fc-summary {
    padding: 18px !important;
}

.fc-summary__row {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    color: #475569 !important;
    font-size: 14px !important;
}

.fc-summary__total {
    margin: 12px 0 14px !important;
    padding: 14px !important;
    border-radius: 12px !important;
    background: #1a3a6b !important;
    color: #fff !important;
    display: flex !important;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.fc-summary__total span {
    font-size: 13px !important;
    opacity: .9;
}

.fc-summary__total strong {
    font-size: 18px !important;
    color: #fff !important;
}

.fc-pay-btn {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #27a9e1, #1a3a6b) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    cursor: pointer;
}

.fc-back-link {
    display: block !important;
    text-align: center;
    margin-top: 10px !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.fc-trip__head {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 14px !important;
    background: #f3f6fb !important;
    color: #1a3a6b !important;
    font-size: 14px !important;
}

.fc-trip__head i {
    color: #e67e22 !important;
}

.fc-trip__body {
    padding: 14px !important;
}

.fc-trip__company {
    margin-bottom: 12px !important;
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.fc-trip__timeline {
    position: relative;
    padding-left: 18px !important;
}

.fc-trip__timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e67e22;
}

.fc-trip__point {
    position: relative;
    margin-bottom: 14px !important;
}

.fc-trip__point:last-child {
    margin-bottom: 0 !important;
}

.fc-trip__dot {
    position: absolute;
    left: -18px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.fc-trip__point em {
    display: block !important;
    font-style: normal !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fc-trip__point strong {
    display: block !important;
    font-size: 13px !important;
    color: #12263a !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.fc-trip__foot {
    padding: 10px 14px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

@media (max-width: 991.98px) {
    .ferry-checkout-layout {
        grid-template-columns: 1fr !important;
    }

    .fc-sidebar {
        position: static !important;
    }

    .ferry-checkout-route {
        font-size: 22px !important;
    }
}

@media (max-width: 767.98px) {
    .fc-grid--2,
    .fc-grid--3 {
        grid-template-columns: 1fr !important;
    }
}
