/* Scoped to the reservation history; preserve the site's existing pink accent. */
.nd-order-locations {padding:2px 20px 10px;font-size:12px;line-height:1.7;}
.nd-order-locations>div {display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;margin:5px 0;}
.nd-order-locations strong {color:#51434a;margin-right:3px;}
.nd-order-locations span {display:inline-block;background:#f6f2f4;color:#75636c;padding:2px 8px;border-radius:4px;}
.nd-order-locations p {margin:6px 0 0;color:#93868c;font-size:11px;}
@media(max-width:600px) {.nd-order-locations {padding-left:12px;padding-right:12px;}.nd-order-locations strong {flex-basis:100%;}}
.nd-history-tabs {display:flex;gap:6px;padding:5px;margin:12px 0 20px;background:#f6f3f4;border:1px solid #eee7ea;border-radius:10px;box-sizing:border-box;}
.nd-history-tabs .nd-history-tab {flex:1;min-width:0;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#71666b;font-family:inherit;font-size:14px;line-height:1.5;font-weight:normal;text-align:center;text-decoration:none;}
.nd-history-tabs .nd-history-tab:hover {color:#a71b4c;background:#fff9fb;}
.nd-history-tabs .nd-history-tab.is-active {color:#b51d53;background:#fff;border-color:#e9ccd7;font-weight:bold;box-shadow:0 1px 3px rgba(70,25,40,.05);}
.nd-history-tabs .nd-history-tab:focus {outline:2px solid #a71b4c;outline-offset:2px;}
@media(max-width:600px) {.nd-history-tabs {gap:3px;margin:12px 0 16px;padding:4px;}.nd-history-tabs .nd-history-tab {font-size:13px;padding:10px 4px;min-height:44px;}}
.nd-order-actions {display:inline-block;vertical-align:top;margin:12px 8px 14px 0;text-align:left;}
.nd-order-actions form {margin:0;}
.nd-cancel-action {appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 18px;border:1px solid #c91d5b;border-radius:7px;font-family:inherit;font-size:13px;font-weight:bold;line-height:1.4;cursor:pointer;white-space:nowrap;transition:background-color .15s;}
.nd-cancel-select {background:#c91d5b;color:#fff;}
.nd-cancel-select:hover {background:#a9174c;}
.nd-cancel-all {background:#fff;color:#a71b4c;border-color:#dcb9c6;}
.nd-cancel-all:hover {background:#fcf1f5;}
.nd-cancel-action:focus {outline:2px solid #852047;outline-offset:3px;}
.nd-cancel-action:disabled {opacity:.5;cursor:default;}
.nd-cancel-hint {display:block;margin-top:6px;font-size:11px;color:#80727a;line-height:1.5;}
@media(max-width:600px) {.nd-order-actions {display:block;margin:10px 0 16px;}.nd-cancel-action {width:100%;min-height:46px;font-size:14px;}.nd-cancel-hint {text-align:center;}}
.nd-reservations {border-collapse:separate;border-spacing:0;color:#353535;font-size:13px;line-height:1.65;}
.nd-reservations .table_contents {padding:18px 6px;border-top:0;border-bottom:1px solid #ece7e9;vertical-align:top;}
.nd-reservations .table_right {border-right:1px solid #f0edef;}
.nd-reservations .table_contents table {line-height:1.7;}
.nd-reservations .table_contents table td {padding-top:8px;padding-bottom:8px;}
.nd-reservations a {text-underline-offset:3px;}
.nd-order-card {margin:22px 0 0;border:1px solid #e9dfe3;border-top:3px solid #db1e62;border-radius:10px;overflow:hidden;background:#fff;font-family:inherit;text-align:left;line-height:1.6;}
.nd-order-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;background:#fcf7f9;}
.nd-order-kicker {display:block;font-size:11px;color:#777;}
.nd-order-heading strong {font-size:16px;letter-spacing:.3px;color:#333;}
.nd-order-badge {display:inline-block;background:#fff;border:1px solid #ecd6df;border-radius:20px;padding:5px 11px;font-size:12px;color:#a71b4c;white-space:nowrap;}
.nd-order-metrics {display:flex;flex-wrap:wrap;padding:18px 10px;}
.nd-order-metrics>div {box-sizing:border-box;width:25%;padding:0 10px;border-right:1px solid #eee;}
.nd-order-metrics>div:last-child {border:0;}
.nd-order-metrics span {display:block;font-size:12px;color:#6b6467;}
.nd-order-metrics strong {display:block;margin-top:6px;font-size:20px;color:#333;white-space:nowrap;}
.nd-order-metrics small {font-size:12px;font-weight:normal;margin-left:3px;}
.nd-order-metrics>div:last-child strong {color:#c91d5b;}
.nd-order-foot {padding:12px 20px;background:#faf9f9;color:#70656a;font-size:12px;border-top:1px solid #f1edef;}
.nd-order-foot p {margin:6px 0 0;}
.nd-pay-chip {display:inline-block;margin:3px 0;padding:2px 6px;background:#f6f3f4;border-radius:4px;font-size:12px;}
.nd-order-detail-label {display:block;font-size:11px;color:#888;margin-bottom:4px;}
.nd-item-cancelled {display:inline-block;font-size:11px;color:#8a727b;background:#f7f1f3;border-radius:4px;padding:2px 4px;white-space:nowrap;}
.nd-refund-history {padding:12px 20px;border-top:1px solid #eee;font-size:12px;}
.nd-refund-history summary {cursor:pointer;color:#a71b4c;font-weight:bold;}
.nd-refund-history p {color:#777;line-height:1.6;}
.nd-refund-history ul {margin:8px 0;padding:0;list-style:none;}
.nd-refund-history li {display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #f1edef;}
.nd-refund-history li>span:last-child {text-align:right;}
@media(max-width:600px) {.nd-order-heading {padding:14px 12px;}.nd-order-heading strong {font-size:14px;}.nd-order-badge {font-size:11px;padding:4px 8px;}.nd-order-metrics {padding:4px 0;}.nd-order-metrics>div {width:50%;padding:12px;border:0;}.nd-order-metrics strong {font-size:20px;}.nd-order-foot {padding:12px;}}

/* A single quiet order block, with the products below the summary. */
.nd-order-card {border-top:1px solid #e5dce0;border-radius:8px 8px 0 0;margin-top:28px;box-shadow:none;}
.nd-order-heading {background:#fff;padding:18px 20px 10px;}
.nd-order-heading strong {font-size:15px;font-weight:600;}
.nd-order-badge {border:0;background:#f5f1f3;color:#67545d;font-weight:600;}
.nd-order-metrics {padding:14px 10px 18px;}
.nd-order-metrics>div {border:0;}
.nd-order-metrics strong {font-size:18px;font-weight:600;}
.nd-order-metrics>div:last-child strong {color:#333;}
.nd-order-finished .nd-order-metrics>div:nth-child(2) strong {color:#c91d5b;font-size:22px;}
.nd-order-foot {background:#fff;border:0;padding-top:0;padding-bottom:12px;}
.nd-refund-history {background:#faf9fa;border-top:1px solid #f1edef;padding:10px 20px;}
.nd-refund-history summary {color:#776770;font-weight:normal;}
.nd-reservations>tbody>.nd-order-body {background:#fff;}
.nd-reservations>tbody>.nd-order-body>td:first-child,
.nd-reservations>tbody>.nd-order-body>td:nth-child(2) {display:none;}
.nd-reservations>tbody>.nd-order-body>td {border:0;border-bottom:1px solid #e5dce0;padding:16px 12px;}
.nd-order-body>td:nth-child(3)>table {width:100%!important;border-bottom:1px solid #f1edef;}
.nd-order-body>td:nth-child(3)>table:last-child {border-bottom:0;}
.nd-order-body>td:nth-child(3)>table td:first-child {width:auto!important;font-size:13px!important;}
.nd-order-body>td:nth-child(3)>table td:first-child span {color:#777!important;}
.nd-order-body>td:last-child {font-size:11px;color:#888;line-height:1.7;}
.nd-reservations {max-width:100%;}
.nd-order-card {min-width:0;}
.nd-order-body>td:nth-child(3) {box-sizing:border-box;}
.nd-order-body>td:nth-child(3)>table {table-layout:fixed;}
.nd-order-body>td:nth-child(3)>table td {overflow-wrap:break-word;}
.nd-order-body>td:nth-child(3)>table td:nth-child(2) {width:96px;white-space:nowrap;}
.nd-order-body>td:nth-child(3)>table td:nth-child(3) {width:42px;white-space:nowrap;}
.nd-order-body>td:nth-child(3)>table td:nth-child(4),
.nd-order-body>td:nth-child(3)>table td:nth-child(5) {width:70px;white-space:nowrap;}
.nd-order-body>td:last-child {word-break:normal!important;overflow-wrap:normal;}
.nd-mobile-product {table-layout:fixed;}
.nd-order-body>td:nth-child(3)>table td:nth-child(2):before {content:'방문일';}
.nd-order-body>td:nth-child(3)>table td:nth-child(3):before {content:'수량';}
.nd-order-body>td:nth-child(3)>table td:nth-child(4):before {content:'단가';}
.nd-order-body>td:nth-child(3)>table td:nth-child(5):before {content:'금액';}
.nd-order-body>td:nth-child(3)>table td:nth-child(n+2):before {display:block;font-size:11px;font-weight:normal;color:#8a8085;line-height:1.4;margin-bottom:5px;}
.nd-order-body>td:nth-child(3)>table td p {margin:0;}
.nd-mobile-product td:nth-child(2):before {content:'방문일 ';color:#8a8085;}
.nd-order-legacy .nd-order-metrics>div {width:30%;}
.nd-order-legacy .nd-order-metrics>.nd-order-payment {width:40%;}
.nd-order-payment strong {font-size:14px;white-space:normal;line-height:1.7;}
.nd-coupon-list {background:#faf9fa;margin:0 0 20px;padding:16px 20px;text-align:left;font-size:12px;color:#70656a;border:1px solid #eee;border-top:0;border-radius:0 0 8px 8px;overflow-wrap:anywhere;}
.nd-coupon-list p {margin:8px 0;}
@media(max-width:600px) {
 .nd-order-legacy .nd-order-metrics>div {width:50%;}
 .nd-order-legacy .nd-order-metrics>.nd-order-payment {width:100%;}
}
@media(max-width:600px) {
  .nd-reservations .nd-mobile-product,
  .nd-reservations .nd-mobile-product>tbody {display:block;width:100%;}
  .nd-reservations .nd-mobile-product>tbody>tr {display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #e9e4e6;padding:14px 4px;gap:10px 8px;}
  .nd-reservations .nd-mobile-product>tbody>tr>td {display:block;width:auto!important;height:auto!important;border:0!important;padding:0!important;text-align:left!important;min-width:0;overflow-wrap:anywhere;}
  .nd-mobile-product td:first-child {grid-column:1 / -1;line-height:1.7;}
  .nd-mobile-product td:nth-child(2) {grid-column:1 / -1;color:#777;font-size:12px;}
  .nd-mobile-product td:nth-child(3):before {content:'수량';}
  .nd-mobile-product td:nth-child(4):before {content:'단가';}
  .nd-mobile-product td:nth-child(5):before {content:'금액';}
  .nd-mobile-product td:nth-child(n+3):before {display:block;font-size:11px;color:#888;margin-bottom:4px;}
  .nd-mobile-product td p {text-align:left!important;margin:0;}
}
.nd-visit-rate {display:block;width:max-content;max-width:100%;margin:7px auto 0;padding:4px 7px;border-radius:6px;font-size:11px;line-height:1.5;white-space:normal;word-break:keep-all;background:#f8edf2;color:#8b3659;}
.nd-visit-rate strong {font-weight:600;}
.nd-visit-rate.nd-rate-full {background:#edf5f1;color:#31654f;}
.nd-visit-rate.nd-rate-muted {background:#f2f2f4;color:#696970;}
.nd-rate-notice {margin:9px 0 0;padding:10px 12px;border-radius:8px;background:#f8f6f7;color:#625761;font-size:12px;line-height:1.7;word-break:keep-all;}
.nd-rate-notice span {color:#7b737a;}
@media(max-width:600px){.nd-visit-rate{margin:6px 0 0;display:inline-block;}.nd-rate-notice span{display:block;}}
.nd-cancel-history {margin-bottom:24px;}
.nd-cancel-history .nd-order-heading {padding:20px 22px 12px;}
.nd-cancel-history .nd-order-kicker {margin-bottom:3px;}
.nd-cancel-history .nd-order-metrics {padding:14px 12px 22px;}
.nd-cancel-history .nd-order-metrics>div:first-child strong {color:#bb245a;}
.nd-cancel-history .nd-order-metrics>div {width:33.333%;}
.nd-cancel-history .nd-cancel-method strong,.nd-cancel-history .nd-cancel-date strong {font-size:13px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;}
.nd-cancel-details {border-top:1px solid #eee7eb;background:#fcfafb;}
.nd-cancel-details summary {padding:15px 20px;cursor:pointer;color:#8a3658;font-size:13px;text-align:left;}
.nd-cancel-details summary:focus {outline:2px solid #b82a60;outline-offset:-3px;}
.nd-cancel-detail-content {padding:16px;background:white;overflow-x:auto;}
.nd-cancel-detail-table {width:100%;border-collapse:collapse;font-size:13px;line-height:1.7;}
.nd-cancel-detail-table td {vertical-align:top;padding:8px;overflow-wrap:anywhere;}
.nd-cancel-detail-table table {width:100%;max-width:100%;}
.nd-cancel-desktop,.nd-cancel-desktop>tbody {display:block;width:100%;}
.nd-cancel-desktop>tbody>tr {display:flex;flex-wrap:wrap;gap:12px;width:100%;}
.nd-cancel-desktop>tbody>tr>td {box-sizing:border-box;width:100%!important;border:0!important;padding:12px!important;min-width:0;text-align:left!important;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3) {order:-2;padding:0 0 14px!important;}
.nd-cancel-desktop>tbody>tr>td:nth-child(2) {order:-3;padding:0!important;color:#877780;font-size:12px;}
.nd-cancel-desktop>tbody>tr>td:first-child:not([colspan]),.nd-cancel-desktop>tbody>tr>td:nth-child(4) {width:calc(50% - 6px)!important;background:#faf8f9;border-radius:8px;font-size:12px;}
.nd-cancel-desktop p {text-align:left!important;margin:0;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table {table-layout:fixed;border-collapse:collapse;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td {padding:10px 4px!important;font-size:12px!important;word-break:normal!important;overflow-wrap:normal!important;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td:first-child {width:40%;word-break:keep-all!important;overflow-wrap:anywhere!important;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td:nth-child(2) {width:20%;white-space:nowrap;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td:nth-child(3) {width:8%;}
.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td:nth-child(4),.nd-cancel-desktop>tbody>tr>td:nth-child(3)>table td:nth-child(5) {width:16%;white-space:nowrap;}
@media(max-width:600px){
 .nd-cancel-history .nd-order-metrics>div {width:100%;border:0;padding:8px 0;}
 .nd-cancel-detail-table,.nd-cancel-detail-table>tbody,.nd-cancel-detail-table>tbody>tr,.nd-cancel-detail-table>tbody>tr>td {display:block;width:100%!important;box-sizing:border-box;}
 .nd-cancel-detail-content {padding:10px;}
 .nd-cancel-detail-table>tbody>tr>td {border:0!important;text-align:left!important;}
}

/* Partial refund history stays visible without ambiguous reservation totals. */
.nd-order-card.nd-order-has-refund{border-top:3px solid #cc1c61;}
.nd-order-has-refund .nd-order-badge{color:#a81950;background:#fff0f6;border:1px solid #efc5d6;font-weight:bold;}
.nd-refund-highlight{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:10px 0;padding:11px 14px;background:#fff0f6;border-left:3px solid #cc1c61;border-radius:5px;color:#a81950;}
.nd-refund-highlight strong{font-size:14px;}.nd-refund-highlight span{font-size:12px;color:#7d425a;}
.nd-order-has-refund .nd-refund-history summary{font-weight:bold;color:#a81950;}
@media(max-width:600px){.nd-refund-highlight{padding:10px 12px;}.nd-refund-highlight span{display:block;}}

.nd-coupon-usage{padding:14px 0;text-align:left;border-bottom:1px solid #eee7eb;}.nd-coupon-usage:last-child{border-bottom:0}.nd-coupon-usage>strong{display:block;font-size:13px;color:#40343b}.nd-coupon-number{display:block;margin-top:3px;font-size:11px;color:#8b7b84;overflow-wrap:anywhere}.nd-coupon-stays{list-style:none;margin:10px 0 0;padding:0}.nd-coupon-stays li{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;margin:6px 0;padding:9px 12px;border-radius:6px;background:#faf7f9;font-size:12px;line-height:1.6}.nd-coupon-stays time{font-weight:bold;color:#9c2353;white-space:nowrap}.nd-coupon-stays em{font-style:normal;font-size:11px;color:#82777e;background:#eee9ec;border-radius:4px;padding:0 6px}@media(max-width:480px){.nd-coupon-stays time{flex-basis:100%}.nd-coupon-stays li{padding:9px 10px;}}

/* Mobile history: neutral surfaces and readable payment chips at every viewport. */
.nd-mobile-reservations{max-width:900px;margin:0 auto!important;border-collapse:separate;table-layout:auto;}
.nd-mobile-reservations .nd-mobile-booking-meta{background:#faf7f9!important;color:#423640!important;padding:18px 20px!important;text-align:left!important;font-size:13px!important;font-weight:normal;line-height:2;border:1px solid #e8dfe4;border-top:0;word-break:keep-all;overflow-wrap:anywhere;}
.nd-mobile-booking-meta>b{font-size:14px;color:#302830;}
.nd-mobile-reservations .nd-pay-chip{display:inline-block;color:#8e204d!important;background:#fff!important;border:1px solid #e3bdce;border-radius:6px;padding:3px 9px;margin:3px 4px 3px 0;font-size:13px!important;line-height:1.6;font-weight:bold;vertical-align:middle;}
.nd-mobile-reservations .nd-order-methods{display:inline-block;color:#55434d;font-size:13px;line-height:1.8;font-weight:600;}
.nd-mobile-reservations .nd-mobile-product{background:#fff;border:1px solid #eee7eb;border-top:0;}
.nd-mobile-reservations .nd-mobile-product td{padding:12px 10px!important;line-height:1.7;word-break:keep-all;}
.nd-mobile-reservations .nd-order-card{margin-bottom:0;}
@media(max-width:600px){
.nd-mobile-reservations .nd-mobile-booking-meta{padding:14px 12px!important;font-size:12px!important;}
.nd-mobile-reservations .nd-pay-chip{font-size:12px!important;}
.nd-mobile-reservations .nd-order-metrics{display:flex;flex-wrap:wrap;}
.nd-mobile-reservations .nd-order-metrics>div{box-sizing:border-box;width:50%;min-width:0;padding:12px!important;}
.nd-mobile-reservations .nd-order-metrics strong{font-size:20px;}
.nd-mobile-reservations .nd-mobile-product>tbody>tr{padding:16px 12px;gap:12px 8px;}
.nd-mobile-reservations .nd-mobile-product>tbody>tr>td{padding:0!important;}
.nd-mobile-reservations .nd-mobile-product td:first-child{font-size:14px;}
.nd-mobile-reservations .nd-mobile-product td:nth-child(n+3){font-size:14px;}
.nd-mobile-reservations .nd-mobile-product td:nth-child(n+3):before{color:#71656d;font-size:12px;}
.nd-mobile-reservations .nd-coupon-list{padding:14px 12px;}
}

/* Each reservation owns its layout: legacy colspans cannot squeeze other cards. */
.nd-mobile-reservations,.nd-mobile-reservations>tbody,.nd-mobile-reservations>tbody>tr,.nd-mobile-reservations>tbody>tr>td,
.nd-mobile-order-layout,.nd-mobile-order-layout>tbody,.nd-mobile-order-layout>tbody>tr,.nd-mobile-order-layout>tbody>tr>td{display:block;box-sizing:border-box;width:100%!important;min-width:0;max-width:100%;height:auto;}
.nd-mobile-reservations>tbody>tr>td.nd-mobile-order-shell{padding:12px 8px 20px!important;border:0;}
.nd-mobile-order{background:#fff;border:1px solid #eadde3;border-top:3px solid #cc1c61;border-radius:14px;box-shadow:0 4px 16px rgba(76,37,54,.06);overflow:hidden;}
.nd-mobile-order .nd-order-card{margin:0;border:0;border-radius:0;}
.nd-mobile-order-layout>tbody>tr>td{padding:0;border:0;}
.nd-mobile-order .nd-mobile-booking-meta{border:0;border-top:1px solid #eee7eb;border-bottom:1px solid #eee7eb;}
.nd-mobile-order .nd-mobile-product{border:0;border-bottom:1px solid #eee7eb;}
.nd-mobile-order .nd-order-actions{margin:12px;}
.nd-mobile-order .nd-order-heading{flex-wrap:wrap;gap:8px;}
.nd-mobile-order .nd-order-heading strong{overflow-wrap:anywhere;}
.nd-mobile-order .nd-coupon-list{margin-bottom:0;border:0;border-radius:0;}
@media(max-width:600px){
 .nd-mobile-order .nd-order-metrics>div{width:50%;padding:12px!important;}
 .nd-mobile-order .nd-order-metrics strong{font-size:19px;white-space:normal;overflow-wrap:anywhere;}
 .nd-mobile-order .nd-order-metrics span{word-break:keep-all;}
 .nd-mobile-order .nd-order-foot{padding:12px;}
 .nd-mobile-order .nd-mobile-product td:first-child{font-weight:600;}
 .nd-mobile-order .nd-mobile-product td a{color:#765668;}
}
