/**
 * Car Booking - Public Styles
 *
 * @package CarBooking
 */
.bc-back {background: #fff; border-bottom: 1px solid #ddd; padding: 15px 20px; width: 100%;}
.bc-back a {font-size: .86rem; line-height: 1.1; font-weight: 500; color: #222;}
.book-car {background: #f4f6f8;}
.bc-title {margin-bottom: 20px;}
.bc-title h1 {font-size: 2rem; line-height: 1.2;}
.bc-box {display: flex;}
.bc-box .row-one {width: 60%; padding-right: 25px;}
.bc-box .row-two {width: 40%;}
.bc-box .frc {background: #fff; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, .1);}
.bc-box .ff-title {padding: 15px 20px; border-bottom: 1px solid #e8e8e8; font-size: .95rem; line-height: 1.1; font-weight: 600;}
.bc-box .frc .rw {padding: 20px 20px 2px;}
.bc-box .row-two .box {display: flex; flex-direction: column; background: #fff; border-radius: 8px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, .1); overflow: hidden;}
.bc-box .row-two .col-one {display: flex; align-items: center; background: #fff; padding: 20px; border-bottom: 1px solid #e8e8e8;}
.bc-box .row-two .col-two {background: #fff; padding: 20px; border-bottom: 1px solid #e8e8e8;}
.bc-box .thumb {width: 30%; position: relative;}
.bc-box .info {width: 70%; padding-left: 15px;}
.bc-box .thumb .label-pending {font-size: .7rem; line-height: 1; color: #fff; font-weight: 600; padding: 8px; background: #d1031c; border-bottom-left-radius: 16px; position: absolute; top: 0; right: 0; z-index: 3;}
.bc-box .thumb .label-pending i {font-size: .56rem; vertical-align: 1px;}
.bc-box .info h4 {font-size: .95rem; line-height: 1.2; font-weight: 500; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;}
.bc-box .cld-i {font-size: .85rem; line-height: 1.1; color: #6a6a6a; margin-bottom: 10px;}
.bc-box .cld-i span {margin: 0 1px; font-size: .6rem;}
.bc-box .clp-m {font-size: 1.3rem; line-height: 1.1; color: #e9280d;}
.bc-box .clp-m strong {font-weight: 700;}
.bc-box .clp-t {font-size: .95rem; line-height: 1.1; font-weight: 400; margin-top: 3px;}
.bc-box .col-two h5 {font-size: .95rem; line-height: 1.1; font-weight: 600; color: #222;}
.bc-box .col-two h5 i {font-size: .8rem; margin-right: 2px; vertical-align: 1px;}
.bc-box {font-size: .9rem; line-height: 1.4; color: #404040;}
.bc-box a img {width: auto; height: 30px !important;}
.bc-box a.btn-one {margin-right: 5px;}
/** BOOKING FORM **/
.book-form .bc-note {display: flex; color: rgba(0,0,0,.8); background: #fff8c4; border: 1px solid #f7deae; padding: 15px; border-radius: 8px; margin-bottom: 15px;}
.book-form .bc-note i {font-size: 1rem; margin: 2px 7px 0 0;}
.book-form .bc-note .bcn-text {font-size: .9rem; line-height: 1.3;}
.book-form .bc-note strong {font-weight: 600;}
.book-form .bf-fee {font-size: 1.15rem; line-height: 1.1; font-weight: 600; color: #ff0000; margin: 10px 0 20px;}
.book-form .bf-fee span {font-size: .95rem; font-weight: 400; color: #666;}
.book-form .row {margin-bottom: 18px; width: 100%; position: relative;}
.book-form label {display: block; font-size: .95rem; line-height: 1; font-weight: 500; margin-bottom: 8px;}
.book-form label span {font-weight: bold; color: #ff0000;}
.book-form input {width: 100%; padding: 12px; font: 1rem 'Roboto', sans-serif; line-height: 1.1; font-weight: 400; background: #fff; border: 1px solid #a8a8a8; border-radius: 3px;}
.book-form input:hover {border-color: #787878;}
.book-form input:focus {border-color: #008ebc;}
.book-form input.readonly {background: #F8F8F8; border-color: #ddd; cursor: not-allowed;}
.book-form .bf-end {margin-top: 10px; padding: 15px 20px; border-top: 1px solid #e8e8e8;}
.book-form .button {}
.book-form .button input {color: #fff; background: #d60014; font-size: 1rem; line-height: 1; text-transform: capitalize; font-weight: 500; padding: 14px 0; text-align: center; width: 100%; display: block; border-radius: 4px; cursor: pointer; border: none;}
.book-form .button input:hover {background: #C9061A;}
.book-form .bf-end p {font-size: .85rem; line-height: 1.2; color: rgba(0,0,0,.8);}
.book-form .bf-end strong {font-weight: 600;}
.book-form .bf-end a:hover {text-decoration: underline;}
.book-form .bf-end h4 {margin: 12px 0 5px; font-size: .85rem; line-height: 1.2; font-weight: 600; text-transform: uppercase; text-align: center;}
.book-form .bf-end img {width: auto; height: 100px; display: block; margin: 0 auto;}
/** PAYMENT METHOD GROUPED ROWS **/
.pm-section-label {display: flex; align-items: baseline; gap: 8px; font-size: .95rem; line-height: 1; font-weight: 600; color: #111; margin-bottom: 12px;}
.pm-section-label .pm-label-hint {font-size: .82rem; font-weight: 400; color: #888;}
.pm-section-label span {font-weight: bold; color: #d60014;}
.pm-rw {padding-bottom: 0 !important;}
.pm-list {border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff;}
.pm-row {cursor: pointer; border-bottom: 1px solid #e8e8e8; background: #fff; transition: background 0.18s ease;}
.pm-row:last-child {border-bottom: none;}
.pm-row-header {display: flex; align-items: center; gap: 14px; padding: 15px 18px;}
.pm-radio {display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border: 2px solid #ccc; border-radius: 50%; transition: border-color 0.18s ease, background 0.18s ease; background: #fff; flex-shrink: 0; position: relative;}
.pm-radio-dot {width: 12px; height: 12px; border-radius: 50%; background: #f5a623; transform: scale(0); transition: transform 0.2s ease; position: absolute;}
.pm-row-active .pm-radio {border-color: #f5a623;}
.pm-row-active .pm-radio-dot {transform: scale(1);}
.pm-row-label-wrap {flex: 1; display: flex; align-items: center; gap: 8px;}
.pm-row-label {font-size: .95rem; line-height: 1.2; font-weight: 600; color: #222;}
.pm-check {display: flex; opacity: 0; transform: scale(0.5); width: 18px; height: 18px; border-radius: 50%; background: #27ae60; flex-shrink: 0; align-items: center; justify-content: center; transition: opacity 0.2s ease, transform 0.2s ease;}
.pm-check svg {width: 10px; height: 10px; display: block;}
.pm-row-active .pm-check {opacity: 1; transform: scale(1);}
.pm-row-icons {display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto;}
.pm-logo {height: 28px; width: auto; display: block;}
.pm-logo-text {display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; line-height: 1;}
.pm-logo-fpx {color: #0a4b8c; font-size: 1rem; font-weight: 800; letter-spacing: -.5px;}
.pm-logo-duitnow {color: #cc0000; font-size: .75rem; font-weight: 700; text-align: center; line-height: 1.1;}
.pm-logo-visa {font-size: .8rem; font-weight: 900; color: #1a1f71; font-style: italic; letter-spacing: -.5px; font-family: serif;}
.pm-logo-mc {width: 28px; height: 18px; display: inline-block; position: relative; flex-shrink: 0;}
.pm-logo-mc::before,.pm-logo-mc::after {content: ''; position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%;}
.pm-logo-mc::before {left: 0; background: #eb001b;}
.pm-logo-mc::after {right: 0; background: #f79e1b; mix-blend-mode: multiply;}
/* Payment method image icons */
.pm-icon-img {display: block; object-fit: contain; flex-shrink: 0;}
.pm-icon-fpx {height: 28px; width: auto; max-width: 90px;}
.pm-icon-duitnow {height: 32px; width: auto; max-width: 80px;}
.pm-icon-card {height: 28px; width: auto; max-width: 140px;}
.pm-row-desc-wrap {overflow: hidden;}
.pm-row-desc {display: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px 0 54px;
    font-size: .84rem; line-height: 1.5; color: #555;
    border-top: 0px solid #f0f0f0;
    transition: max-height 0.28s ease, padding 0.28s ease, border-top-width 0.28s ease;
}
.pm-row-active .pm-row-desc {display: block;
    max-height: 120px;
    padding: 10px 18px 15px 54px;
    border-top-width: 1px;
}
.pm-row-active {background: #fff;}
.pm-error {margin-top: 8px; font-size: .875rem; color: #d60014; font-weight: 500;}
/** Payment method image icon sizing handled above **/
/** PAYMENT SUMMARY **/
.pm-summary-rw {padding-top: 4px !important;}
.pm-summary {background: #fff; margin-top: 8px; padding: 0;}
.pm-summary-title {font-size: 1rem; font-weight: 700; color: #111; padding: 0 0 14px 0; margin-bottom: 0;}
.pm-summary-rows {display: flex; flex-direction: column;}
.pm-sum-row {display: flex; justify-content: space-between; align-items: center; font-size: .9rem; line-height: 1.4; color: #444; padding: 8px 0; border: none;}
.pm-sum-fee {
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}
.pm-sum-fee.pm-fee-visible {
    max-height: 40px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 8px;
}
.pm-sum-total {border-top: 1px solid #e0e0e0; padding-top: 12px; margin-top: 4px; font-size: .95rem; font-weight: 600; color: #111;}
.pm-sum-total .pm-sum-total-val {font-size: 1.05rem; font-weight: 700; color: #111;}
.bc-success {padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 0 8px 0 rgba(0, 0, 0, .1); overflow: hidden;}
.booking-notice {font-size: .88rem; line-height: 1.3; margin-bottom: 20px; padding: 12px; text-align: center; border-radius: 6px;}
.booking-notice-success {}
.bcb-detail {margin-top: 30px;}
.bcb-detail h3 {font-size: 1.1rem; line-height: 1.2; padding-bottom: 10px; border-bottom: 1px solid #ddd; margin-bottom: 20px;}
.bcb-detail ul {display: flex; flex-direction: column; gap: 8px;}
.bcb-detail ul li {font-size: .95rem; line-height: 1.3;}
.bc-receipt-wrap {margin-top: 15px;}
.bc-receipt-wrap a {color: #000; font-size: .88rem; line-height: 1.1; font-weight: 500; padding: 8px 18px; border: 1px solid #555; border-radius: 4px; display: inline-block;}
.bc-receipt-wrap a:hover {border-color: #000;}
.bc-whatsapp-notify {margin-top: 15px;}
.bc-whatsapp-notify a {padding: 12px 25px; font-size: .925rem; line-height: 1; font-weight: 500; background: #25D366; color: #fff; border-radius: 30px; display: inline-block;}
.bc-whatsapp-notify a i {margin-right: 1px;}
.bc-help {margin: 30px 0 20px; background: #f4f6f8; padding: 10px; border-radius: 10px;}
.bc-help a {font-weight: 600; color: #154eb8;}
.bc-help a.wasap {color: #3db66d; margin-left: 2px;}
.bc-btnback a {font-size: .95rem; line-height: 1.2; font-weight: 500; background: #f8ca2d; color: #000; padding: 12px 30px; border-radius: 4px; display: inline-block;}
.bcs-t {font-size: 1.5rem; line-height: 1.2; font-weight: 700; text-transform: uppercase; color: #ff0000; padding: 15px 20px 0;}
.bc-notav {font-size: 1rem; line-height: 1.2; font-weight: 600; color: #ff0000; margin-bottom: 20px;}
.bcb-note {margin-top: 15px; padding-top: 10px; border-top: 1px solid #ddd; font-size: .9rem; line-height: 1.3;}
/* -------------------------------------------------
 DASHBOARD
------------------------------------------------- */
.car-booking-dashboard h2 {font-size: 1.8rem; margin-bottom: 20px; color: #333;}
.booking-filters {margin: 20px 0; padding: 20px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px;}
.booking-filters-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px;}
.booking-filter-field label {display: block; margin-bottom: 5px; font-weight: bold; color: #333;}
.booking-filter-field select,
.booking-filter-field input[type="date"] {width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px;}
.booking-filter-actions {margin-top: 15px;}
.booking-export-actions {margin: 20px 0; display: flex; gap: 6px; justify-content: flex-end;}
.booking-export-actions a {padding: 10px 20px; font-size: .9rem; line-height: 1; background: #fff; color: #222; border: 1px solid #888; border-radius: 4px; display: inline-block; cursor: pointer;}
.booking-export-actions a:hover {border-color: #333;}
.booking-table-wrapper {border: 1px solid #ddd; border-radius: 8px; overflow-x: auto;}
.car-booking-dashboard table {font-size: .95rem; line-height: 1.3; width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);}
.car-booking-dashboard thead tr {background: #f8f9fa; border-bottom: 2px solid #ddd;}
.car-booking-dashboard th {padding: 12px; text-align: left; font-weight: bold; color: #333;}
.car-booking-dashboard td {padding: 12px; text-align: left; border-bottom: 1px solid #ddd;}
.car-booking-dashboard tbody tr {border-bottom: 1px solid #ddd;}
.car-booking-dashboard tbody tr:hover {background: #f8f9fa;}
.car-booking-dashboard td.no-bookings {padding: 20px; text-align: center; color: #666;}
.bcl-fiter {display: flex; gap: 20px; margin: 20px 0; position: relative;}
.bc-secl.select {width: 180px;}
.bc-secl.select::after {top: -4px;height: 14px; font-size: .9rem; right: 10px;}
.bcl-fiter select, .bcl-fiter input {font-size: .95rem; padding: 8px 10px; border: 1px solid #888; border-radius: 4px;}
.bcl-fiter .date-range {display: flex; gap: 5px;}
.bcl-fiter .button {background: #000; color: #fff; padding: 10.5px 20px; border-radius: 4px; display: inline-block;}
.bcf-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0;}
.bcf-grid .row {background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 5px;}
.bcf-grid .row p {font-size: 36px; font-weight: bold; margin: 10px 0;}
.booking-car-link {color: #0073aa; text-decoration: none;}
.booking-car-link:hover {text-decoration: underline;}
.booking-status-badge {padding: 5px 10px; border-radius: 3px; font-size: 12px; font-weight: bold; display: inline-block;}
.booking-status-success {background: #d4edda; color: #155724;}
.booking-status-failed {background: #f8d7da; color: #721c24;}
.booking-status-pending {background: #fff3cd; color: #856404;}
.booking-pagination {margin: 20px 0; text-align: center;}
.booking-pagination a {display: inline-block; padding: 8px 12px; margin: 0 2px; border-radius: 3px; text-decoration: none; background: #f8f9fa; color: #333;}
.booking-pagination a:hover {background: #e9ecef;}
.booking-pagination a.active {background: #0073aa; color: #fff;}


@media screen and (max-width: 1024px) {
.bc-title {margin-bottom: 15px;}
.bc-title h1 {font-size: 1.6rem;}
.bc-box .row-one {width: 62%;}
.bc-box .row-two {width: 38%;}
.bc-box .row-two .col-one {flex-direction: column; align-items: flex-start;}
.bc-box .thumb {width: 50%;}
.bc-box .info {margin-top: 10px; padding-left: 0; width: 100%;}
.car-booking-dashboard h2 {font-size: 1.6rem;}
.bcf-grid .row h3 {font-size: 1rem;}
.bcf-grid .row p {font-size: 1.6rem;}
.car-booking-dashboard th {font-size: .925rem;}
}

@media screen and (max-width: 980px) {
.bcf-grid {gap: 10px;}
.car-booking-dashboard table {width: 1100px;}
}

@media screen and (max-width: 853px) {
.bc-box {flex-direction: column;}
.bc-box .frc {margin: 0;}
.bc-box .row-one {width: 100%; padding: 0;}
.bc-box .row-two {width: 100%; margin-top: 20px;}
}

@media screen and (max-width: 600px) {
.bc-title h1, .car-booking-dashboard h2 {font-size: 1.4rem;}
.bcf-grid {grid-template-columns: repeat(2, 1fr);}
.bcf-grid .row {padding: 15px;}
.bcf-grid .row h3 {font-size: .95rem;}
.bcf-grid .row p {font-size: 1.25rem; margin: 0;}
.car-booking-dashboard table {width: 1024px;}
}

@media screen and (max-width: 480px) {
.pm-row-header {padding: 12px 14px;}
.pm-row-desc {padding: 0 14px 12px 46px;}
.book-form .bc-note {padding: 12px;}
.book-form .bc-note .bcn-text {font-size: .88rem; line-height: 1.25;}
.book-form .bc-note i {font-size: .9rem; margin: 3px 5px 0 0;}
.book-form label {font-size: .93rem;}
.book-form input {font-size: .95rem;}
.book-form .bf-end p {line-height: 1.15rem;}
.book-form .bf-end h4 {font-size: .8rem;}
.book-form .bf-end img {height: 80px;}
.booking-notice {font-size: .85rem;}
.bcb-detail ul li {font-size: .92rem;}
.car-booking-dashboard table {width: 900px;}
.car-booking-dashboard th {font-size: .86rem;}
.car-booking-dashboard th:first-child {width: 50px;}
.car-booking-dashboard th:first-child span {display: none;}
.car-booking-dashboard td {font-size: .88rem; padding: 10px;}
}

@media screen and (max-width: 400px) {
.pm-row-desc {padding: 0 18px 12px 18px;}
.pm-row-active .pm-row-desc {padding: 10px 18px 15px 18px;}
}
/* ── Bookmark button ──────────────────────────────── */
.bookmark-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 5px; cursor: pointer;
    font-size: 13px; font-weight: 600;
    background: #f6f7f7; border: 1px solid #dcdcde; color: #50575e;
    transition: background .15s, color .15s, border-color .15s;
}
.bookmark-btn:hover { background: #eef0f2; color: #2271b1; border-color: #adb9c4; }
.bookmark-btn.bookmarked { background: #2271b1; color: #fff; border-color: #2271b1; }
.bookmark-btn.bookmarked:hover { background: #135e96; border-color: #135e96; }

/* ── Receipt link ────────────────────────────────── */
.cb-receipt-link {
    font-size: 12px; font-weight: 600; color: #2271b1;
    text-decoration: none; padding: 3px 8px;
    border: 1px solid #c7d9f5; border-radius: 3px; background: #f0f6ff;
    transition: background .12s;
}
.cb-receipt-link:hover { background: #dbeafe; }

/* ── booking-status-badge colours ───────────────── */
.booking-status-success  { background: #d4edda; color: #155724; }
.booking-status-pending  { background: #fff3cd; color: #856404; }
.booking-status-failed   { background: #f8d7da; color: #721c24; }
.booking-status-cancelled{ background: #e2e3e5; color: #383d41; }

/* ── Refresh status button ───────────────────────── */
.cb-refresh-status {
    background: #f0f6ff; border: 1px solid #c7d9f5; color: #2271b1;
    border-radius: 3px; padding: 3px 8px; cursor: pointer;
    font-size: 13px; font-weight: 700; transition: background .12s;
}
.cb-refresh-status:hover { background: #dbeafe; }
.cb-refresh-status:disabled { opacity: .5; cursor: default; }
