﻿html, body {
    min-height: 100%;
}

body.or-page {
    margin: 0;
    background: #f3f7f8;
    color: #17343b;
    font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

.or-shell {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 18px 48px;
}

.or-shell-login {
    max-width: 520px;
    padding-top: 9vh;
}

.or-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.or-brand-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0c7a79;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(12, 122, 121, .22);
}

.or-brand-title {
    margin: 0;
    color: #123c43;
    font-size: 22px;
    line-height: 1.3;
}

.or-brand-title-line {
    display: block;
}

.or-brand-title-system {
    margin-top: 2px;
    font-size: .86em;
    letter-spacing: .035em;
}

.or-brand-subtitle {
    margin: 3px 0 0;
    color: #668087;
    font-size: 14px;
}

.or-card {
    overflow: hidden;
    border: 1px solid #dce8ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(34, 73, 82, .09);
}

.or-card-body {
    padding: 30px;
}

.or-card + .or-card {
    margin-top: 18px;
}

.or-heading {
    margin: 0 0 8px;
    color: #163c43;
    font-size: 23px;
}

.or-description {
    margin: 0 0 24px;
    color: #657c82;
}

.or-field {
    margin-bottom: 20px;
}

.or-field label,
.or-label {
    display: block;
    margin-bottom: 7px;
    color: #274e55;
    font-size: 15px;
    font-weight: 700;
}

.or-input,
.or-select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #b9ced2;
    border-radius: 10px;
    background: #fff;
    color: #17343b;
    font-family: inherit;
    font-size: 17px;
    outline: none;
}

.or-input:focus,
.or-select:focus {
    border-color: #0c7a79;
    box-shadow: 0 0 0 3px rgba(12, 122, 121, .13);
}

.or-hint,
.or-validator {
    display: block;
    margin-top: 6px;
    color: #6f858a;
    font-size: 13px;
}

.or-validator {
    color: #b3261e;
}

.or-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: #0c7a79;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.or-button:hover,
.or-button:focus {
    background: #086565;
}

.or-button:active {
    transform: translateY(1px);
}

.or-button[disabled] {
    background: #a9babc;
    cursor: not-allowed;
}

.or-button-block {
    width: 100%;
}

.or-button-link {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid #b9ced2;
    background: #fff;
    color: #315a61;
    font-size: 14px;
}

.or-button-link:hover,
.or-button-link:focus {
    background: #edf5f6;
    color: #173f46;
}

.or-alert {
    display: block;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}

.or-alert-error {
    border: 1px solid #f1c2bd;
    background: #fff1ef;
    color: #9a231b;
}

.or-alert-success {
    border: 1px solid #a7d9c3;
    background: #eaf8f1;
    color: #17613f;
}

.or-alert-info {
    border: 1px solid #bad8e2;
    background: #eef8fb;
    color: #285f70;
}

.or-footer-note {
    margin: 18px 4px 0;
    color: #70878c;
    font-size: 13px;
    text-align: center;
}

.or-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.or-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.or-summary-item {
    padding: 14px;
    border-radius: 12px;
    background: #f2f8f8;
}

.or-summary-key {
    display: block;
    margin-bottom: 3px;
    color: #6b8287;
    font-size: 12px;
}

.or-summary-value {
    color: #193e45;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.or-divider {
    height: 1px;
    margin: 25px 0;
    background: #e3edef;
}

.or-section + .or-section {
    margin-top: 26px;
}

.or-section-title {
    margin: 0;
    color: #214a51;
    font-size: 18px;
}

.or-package-choice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.or-package-choice-list > li {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid #cfdddf;
    border-radius: 10px;
    background: #fff;
}

.or-package-choice-list > li:hover {
    border-color: #75aaa9;
    background: #f5fbfb;
}

.or-package-choice-list input[type="radio"],
.or-package-choice-list input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 9px 0 0;
    accent-color: #0c7a79;
}

.or-package-choice-list label {
    flex: 1;
    cursor: pointer;
    color: #244b52;
    font-size: 14px;
}

.or-package-details {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.or-package-detail {
    overflow: hidden;
    border: 1px solid #dce8ea;
    border-radius: 10px;
    background: #f8fbfb;
}

.or-package-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
    color: #28545b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.or-package-detail[open] summary {
    border-bottom: 1px solid #dce8ea;
    background: #eef7f7;
}

.or-package-detail-body {
    padding: 14px;
}

.or-item-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.or-item-group {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dce8ea;
    border-radius: 10px;
    background: #fff;
}

.or-item-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6eff0;
}

.or-item-group-title {
    margin: 0;
    color: #174b53;
    font-size: 14px;
    line-height: 1.4;
}

.or-item-count {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e1f2f1;
    color: #0b6c6b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.or-item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.or-item-list > li {
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #d9e8e9;
    border-radius: 7px;
    background: #f3f8f8;
    color: #486970;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.or-item-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f8f8;
    color: #60797e;
    font-size: 13px;
    line-height: 1.7;
}

.or-package-money {
    flex: 0 0 auto;
    color: #0b6c6b;
    white-space: nowrap;
}

.or-date-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 22px;
    padding: 0;
    list-style: none;
}

.or-date-list > li {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #cfdddf;
    border-radius: 10px;
    background: #fff;
}

.or-date-list > li:hover {
    border-color: #75aaa9;
    background: #f5fbfb;
}

.or-date-list input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 9px 0 0;
    accent-color: #0c7a79;
}

.or-date-list label {
    flex: 1;
    cursor: pointer;
    color: #244b52;
    font-size: 15px;
}

.or-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.or-actions .or-button {
    min-width: 170px;
}

.or-review-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.or-button-secondary {
    border: 1px solid #9cbfc2;
    background: #fff;
    color: #0b6467;
    box-shadow: none;
}

.or-button-secondary:hover {
    border-color: #0c7a79;
    background: #f2fafa;
}

.or-help {
    margin: 22px 0 0;
    padding-left: 21px;
    color: #687f84;
    font-size: 13px;
}

.or-success-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 40, 46, 0.58);
}

.or-success-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 28px 30px 30px;
    border: 1px solid #d6e4e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 61, 68, 0.28);
    text-align: center;
}

.or-success-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #668087;
    font-size: 30px;
    line-height: 38px;
    cursor: pointer;
}

.or-success-sticker {
    display: block;
    width: 185px;
    max-width: 55%;
    height: auto;
    margin: 0 auto 6px;
}

.or-success-title {
    margin: 0 0 12px;
    color: #073f4b;
    font-size: 27px;
}

.or-success-message {
    display: block;
    color: #315b63;
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
}

.or-success-button {
    width: 100%;
}

.or-success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.or-review-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 40, 46, 0.64);
}

.or-review-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid #d6e4e5;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 61, 68, 0.3);
}

.or-review-summary {
    margin-top: 18px;
}

.or-review-package-header {
    margin-top: 24px;
}

.or-review-package-header .or-section-title {
    margin-bottom: 4px;
}

.or-review-package-details {
    margin-top: 12px;
}

.or-review-package-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.or-review-package-type {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dff2f1;
    color: #075e60;
    font-size: 12px;
    font-weight: 700;
}

.or-review-close-button {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 680px) {
    .or-shell {
        padding: 20px 13px 34px;
    }

    .or-shell-login {
        padding-top: 26px;
    }

    .or-card-body {
        padding: 22px 18px;
    }

    .or-brand-title {
        font-size: 19px;
    }

    .or-summary,
    .or-package-choice-list,
    .or-date-list {
        grid-template-columns: 1fr;
    }

    .or-package-detail summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .or-package-detail-body {
        padding: 10px;
    }

    .or-item-groups {
        grid-template-columns: 1fr;
    }

    .or-topbar {
        align-items: flex-start;
    }

    .or-actions,
    .or-actions .or-button {
        width: 100%;
    }

    .or-success-dialog {
        padding: 24px 20px 22px;
    }

    .or-success-message {
        font-size: 15px;
    }

    .or-success-actions {
        grid-template-columns: 1fr;
    }

    .or-review-action,
    .or-review-action .or-button {
        width: 100%;
    }

    .or-review-dialog {
        padding: 24px 18px 22px;
    }

    .or-review-package-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
