.order-body {
    min-height: 80vh;
}

#orderTable {
    border-collapse: separate;
    border-spacing: 0 15px;
    width: 100%;
}

#orderTable tbody tr {
    background: #2a2a3b;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#orderTable tbody td {
    border: none;
    padding: 18px 20px;
    vertical-align: middle;
    border-radius: 12px;
    background-color: transparent;
}

.order-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.order-left img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.purchase-info {
    flex-grow: 1;
}

.purchase-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.purchase-info p {
    margin: 2px 0;
    color: #b5b5c3;
    font-size: 14px;
}

.order-date {
    font-size: 13px;
    color: #aaa;
    text-align: right;
}

.status-badge {
    display: flex;
    width: fit-content;
    padding: 4px 18px;
    line-height: normal;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-success {
    background: #23c503;
    /* hijau muda */
    color: #000000;
    /* hijau tua */
}

.status-pending {
    background: #fef9c3;
    /* kuning muda */
    color: #78350f;
    /* coklat tua */
}

.status-expired {
    background: #dc2626;
    /* merah terang */
    color: #ffffff;
    /* teks putih */
}


.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid #444 !important;
    border-radius: 6px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #4f46e5 !important;
    color: #fff !important;
}

thead {
    display: none;
}

.purchase-info {
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.info-badge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}


.accordion-btn2 {
    width: 100%;
    background: #262631;
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;

}

.accordion-btn2.active+.accordion-content {
    display: block;
}

.accordion-btn3.active+.accordion-content {
    display: block;
}

.accordion-btn3 {
    width: 100%;
    background: #262631;
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-btn2::after {
    content: "\25BC";
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-btn2.active::after {
    transform: rotate(180deg);
}

.accordion-btn3::after {
    content: "\25BC";
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-btn3.active::after {
    transform: rotate(180deg);
}

/* Accordion Style */
.accordion-item {
    background: transparent !important;
}

/* Semua accordion-button default tetap ada */
.btn-1 {
    background-color: #32323e !important;
    color: #fff !important;
    border-radius: 10px 10px 0 0 !important;
}

.btn-1::after {
    display: none;
}

.btn-1:not(.collapsed) {
    background: #32323e;
    color: #fff;
    box-shadow: none;
}


.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button::after {
    margin-left: 0 !important;
}

.btn-2:not(.collapsed) {
    background: white
}

.btn-2 {
    display: flex;
    justify-content: end;
    background-color: rgb(229 231 235) !important;
    color: #32323e !important;
    border-radius: 0 0 10px 10px !important;
}

.btn-2 img {
    max-width: 140px;
}

.btn-2 .img2 img {
    max-width: 60px;
}

.btn-2::after {
    display: block;
    margin: 0;
}

/* Hide the <img> only when expanded */
.accordion-button[aria-expanded="true"] img {
    display: none;
    transition: 2s all;
}

.box-accordion {
    background: #32323e;
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    justify-content: start;
}

.accordion-box {
    /* background: #fff; */
    width: 100%;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
}

.payment-box {
    background: #fff;
    width: 100%;
    padding: 16px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid transparent;
}

.payment-box img {
    max-width: 130px;
    margin-bottom: 10px;
}

.accordion-box img {
    max-width: 130px;
    margin-bottom: 10px;
}


.accordion-box p.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    margin-block-end: 0 !important;
    /* will follow parent max-width (240px) */
}

.accordion-box p.truncate,
.accordion-box p.truncate2 {
    font-size: 14px;
}

.acch::after {
    display: none;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 4 kolom sama lebar */
    gap: 16px;
    /* jarak antar item */
    align-items: start;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 4 kolom sama lebar */
    gap: 16px;
    /* jarak antar item */
    align-items: start;
}

.payment-card .payment-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-card .payment-check:focus+.accordion-box {
    border: 2px solid #1e77bc;
}

.payment-card .payment-check:focus+.payment-box {
    border: 3px solid #1e77bc;
}

.accordion-item {
    border: none !important;
}

.btn-beli {
    color: #fff;
    background: #1e77bc;
    padding: 12px 28px;
    border-radius: 10px;
}



@media (max-width: 991px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .btn-1 {
        padding: 12px 20px 12px 20px !important;
    }

    .btn-2 {
        padding: 12px 20px 12px 20px !important;
    }

    .accordion-box img {
        max-width: 70px;
    }

    .box-accordion {
        justify-content: space-between;
        padding: 10px;
    }

    .btn-2 .img2 img {
        max-width: 40px;
    }

    .truncate2 {
        font-size: 12px;
    }

    .btn-beli {
        padding: 10px 18px;
    }
}


/* Accordion Mobile only */
/* Accordion default (desktop: open) */
.custom-accordion {
    border: 1px solid #b5b5c3;
    border-radius: 12px;
    background: #262631;
    height: 100%;
}

.custom-accordion .accordion-content {
    display: block;
    border-radius: 0 0 12px 12px;
}

.accordion-header {
    background: #1B1B2B;
    text-align: center;
    font-weight: bold;
    padding: 14px 10px;
    border-radius: 12px 12px 0 0;
}

.box-card-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* On mobile make it accordion style */
@media (max-width: 768px) {
    .custom-accordion .accordion-content {
        display: none;
        padding: 20px;
    }

    .accordion-header {
        text-align: start;
    }

    .custom-accordion.active .accordion-content {
        display: block;
    }

    .accordion-header {
        cursor: pointer;
        font-weight: bold;
        position: relative;
        border-radius: 12px !important;
    }

    /* Add a + / - icon */
    .accordion-header::after {
        content: "▼";
        position: absolute;
        right: 0;
        font-size: 16px;
        transform: translate(-14px, 4px);
    }

    .custom-accordion.active .accordion-header::after {
        content: "▲";
    }

    .box-card-info {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Track Payment Style */
/* Lacak Pesanan */
.track-payment-body {
    margin: 100px 0;
    padding: 100px 0 200px;
}

.track-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.track-title {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.track-form {
    display: flex;
    width: 100%;
}

.track-input-wrapper {
    position: relative;
    flex: 1;
}

.track-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    /* biar icon ga ganggu klik input */
}

.track-input {
    width: 100%;
    padding: 14px 14px 14px 10px;
    /* tambah jarak kiri lebih besar */
    border: none;
    outline: none;
    font-size: 14px;
    border-radius: 20px 0 0 20px !important;
}

.track-input::placeholder {
    padding-left: 24px;
}

.track-button {
    background: #1976d2 !important;
    color: #fff;
    border: none;
    padding: 0 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.3s;
    border-radius: 0 20px 20px 0 !important;
}

.track-button:hover {
    background: #1565c0;
}

.track-button i {
    font-size: 14px;
}

/* Teks dalam tombol */
.track-button span {
    display: inline;
}

@media (max-width: 600px) {
    .track-input {
        font-size: 13px;
    }

    .track-button {
        padding: 0 20px;
        font-size: 13px;
    }

    .track-button span {
        display: none;
    }
}