.ellipsis_1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis_2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis_3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis_4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* whatsapp */
.containers {
    bottom: 24px;
    position: fixed;
    margin: 1em;
    left: 33px;
    z-index: 9999;
}

.buttons {
    background: #25d366;
    box-shadow: 0px 5px 11px -2px rgba(0, 0, 0, 0.18),
        0px 4px 12px -7px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: block;
    width: 56px;
    height: 56px;
    margin: 20px auto 0;
    position: relative;
    -webkit-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
}

.buttons:active,
.buttons:focus,
.buttons:hover {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

.buttons:not(:last-child) {
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    opacity: 0;
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
}

.containers:hover .buttons:not(:last-child) {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    margin: 15px auto 0;
}

/* Unessential styling for sliding up buttons at differnt speeds */

.buttons:nth-last-child(1) {
    -webkit-transition-delay: 25ms;
    transition-delay: 25ms;
    background-image: url(/assets/defaults/gambar/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(2) {
    -webkit-transition-delay: 50ms;
    transition-delay: 20ms;
    background-image: url(/assets/defaults/gambar/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(3) {
    -webkit-transition-delay: 75ms;
    transition-delay: 40ms;
    background-image: url(/assets/defaults/gambar/whatsapp.png);
    background-size: contain;
}

.buttons:not(:last-child):nth-last-child(4) {
    -webkit-transition-delay: 100ms;
    transition-delay: 60ms;
    background-image: url(/assets/defaults/gambar/whatsapp.png);
    background-size: contain;
}

/* Show tooltip content on hover */

[tooltip]:before {
    bottom: 25%;
    font-family: arial;
    font-weight: 600;
    border-radius: 2px;
    background: #585858;
    color: #fff;
    content: attr(tooltip);
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    padding: 5px 7px;
    margin-left: 12px;
    position: absolute;
    left: 100%;
    white-space: nowrap;
}

[tooltip]:hover:before,
[tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
}

.ms-5 {
    margin-left: 5px;
}

.me-5 {
    margin-right: 5px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-35 {
    margin-bottom: 35px;
}

.text-black {
    color: #000;
}

.text-hijau {
    color: #348e38;
}

.header-title-produk {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* detail pembelian css */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.price-tag {
    color: var(--bs-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.bank-logo {
    width: 55px;
    height: auto;
    /* object-fit: cover; */
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.info-item {
    display: flex;
    align-items: center;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.payment-details {
    font-size: 0.9rem;
}

.payment-details p {
    font-weight: 500;
}

.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark);
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

/* pembayaran index css */
.pembayaran,
.pesanan {
    background-color: #b060cf1e;
    border-top: 2px solid #650679ce;
}

.metode-pembayaran {
    padding: 10px;
    cursor: pointer;
    border: 2px solid rgba(128, 128, 128, 0.123);
}

.metode-pembayaran:hover {
    background-color: #f8f9fa;
}

.metode-pembayaran.selected {
    border: 2px solid rgb(204, 0, 255);
    background-color: #b060cf1e;
}

.nav-pills .nav-link {
    color: #33333379;
    border-radius: 0% !important;
    background-color: transparent !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:focus,
.nav-link:hover {
    color: #5e0681e7 !important;
}

.nav-pills .nav-link.active {
    color: #5e0681e7 !important;
    background-color: transparent !important;
    border-bottom: 2px solid #650679ce;
}

.form-check-input:checked {
    background-color: #5f0b70 !important;
    border-color: #5f0b70 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(225, 13, 253, 0.25) !important;
}

/* pembayaran detail css */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.timeline-item.pending .timeline-marker {
    border-color: #ffc107;
    background: #fff3cd;
    color: #ffc107;
    content: "\23F3"; /* Unicode untuk ikon jam pasir */
}

.timeline-item.completed .timeline-marker {
    border-color: #28a745;
    background: #d4edda;
    color: #28a745;
    content: "\2713"; /* Unicode untuk ikon centang */
}

.timeline-content {
    padding-left: 0.5rem;
}

.card {
    border-radius: 0.5rem;
}

.alert {
    background-color: #f8f9fa;
}

.badge {
    padding: 0.5em 0.8em;
}

.text-danger {
    color: #dc3545 !important;
}

.text-ungu {
    color: #61298a;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:disabled {
    background-color: #0d6efd;
    border-color: #0d6efd;
    opacity: 0.65;
}

/* rincian pemesanan */
.metode-pembayaran {
    padding: 10px;
    cursor: pointer;
    border: 2px solid rgba(128, 128, 128, 0.123);
}

.metode-pembayaran:hover {
    background-color: #f8f9fa;
}

.metode-pembayaran.selected {
    border: 2px solid rgb(204, 0, 255);
    background-color: #b060cf1e;
}

.nav-pills .nav-link {
    color: #33333379;
    border-radius: 0% !important;
    background-color: transparent !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:focus,
.nav-link:hover {
    color: #5e0681e7 !important;
}

.nav-pills .nav-link.active {
    color: #5e0681e7 !important;
    background-color: transparent !important;
    border-bottom: 2px solid #650679ce;
}

.form-check-input:checked {
    background-color: #5f0b70 !important;
    border-color: #5f0b70 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(225, 13, 253, 0.25) !important;
}

/* history pembelian */
.custom-table {
    font-size: 0.875rem;
    --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.025);
}

.custom-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.custom-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.filter-section .form-control {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-color: #dee2e6;
}

.filter-section .form-control:focus {
    border-color: var(--bs-primary);
}

.filter-section .input-group-text {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.pagination {
    gap: 0.25rem;
}

.page-link {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #61298a;
    background-color: var(--bs-white);
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    background-color: #61298a;
    color: var(--bs-white);
}

.page-item.active .page-link {
    background-color: #61298a;
    color: var(--bs-white);
}

.badge.rounded-pill {
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: -10px;
    margin-top: 5px;
}

.modal-content {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom-color: #dee2e6;
}

dl.row dt {
    font-size: 0.875rem;
}

dl.row dd {
    font-size: 0.875rem;
}

/* Add this to your custom.css file */

.mobile-preview-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #673ab7;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.mobile-preview-btn:hover {
    background-color: #4a1e9e;
    transform: scale(1.05);
    color: white;
}

.mobile-preview-btn i {
    font-size: 24px;
}

.distribusi-beranda {
    background-color: #fff7f7;
    border-radius: 5px;
    padding: 20px;
}

a:hover .bg-white {
    transform: scale(1.01);
    transition: all 0.2s;
}

/* header */
.dropdown {
    position: static;
}

.navbar .dropdown-menu {
    position: absolute;
    right: 15px;
    max-width: 470px;
}

.notification-dropdown {
    width: 320px;
    max-height: 400px;
}

.profile-dropdown {
    min-width: 280px;
    max-width: 470px;
}

@media (max-width: 500px) {
    .navbar .dropdown-menu,
    .notification-dropdown,
    .profile-dropdown {
        width: calc(100% - 30px);
        right: 15px;
        left: auto;
    }
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    padding: 0;
    margin-top: 0.5rem;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

.dropdown-header {
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.2s ease;
    white-space: normal;
}

.offcanvas.contained-canvas {
    position: relative !important;
    width: 350px !important;
    max-width: 70%;
    height: 100vh !important;
    margin: 0;
    transform: translateX(100%);
}

.offcanvas.contained-canvas.show {
    transform: translateX(0);
}

.offcanvas-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 1045;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.offcanvas-container .offcanvas {
    pointer-events: auto;
}

.offcanvas-backdrop {
    background: transparent;
}

body.overflow-hidden {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed;
    width: 100%;
}

body.overflow-hidden .offcanvas {
    position: absolute !important;
}

.sidenav-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    left: 10px;
    top: 10px;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
    color: #666;
    transition: color 0.2s;
}

.close-button:hover {
    color: #333;
}

.avatar {
    margin-top: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu-container {
    margin-top: 2rem;
}

.nav-menu-item {
    display: block;
    padding: 12px 16px;
    margin: 4px 0;
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-menu-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-menu-item i {
    color: #61298a;
}

.auth-buttons-container {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-auth {
    flex: 1;
    padding: 7px 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login {
    background: #61298a;
    color: white;
}

.btn-login:hover {
    background: #512175;
    color: white;
    transform: translateY(-1px);
}

.btn-register {
    background: white;
    color: #61298a;
    border: 1px solid #61298a;
}

.btn-register:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.875rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-social:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.btn-social img {
    height: 20px;
    width: 20px;
}

.separator {
    text-align: center;
    position: relative;
    color: #666;
    margin: 1rem 0 !important;
    font-size: 0.875rem;
}

.separator::before,
.separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #dee2e6;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.notification-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-toggle:hover {
    background-color: #f8f9fa;
}

.notification-item {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #495057;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.notification-iconcon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.875rem;
    color: #6c757d;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.no-notification {
    color: #6c757d;
    padding: 1rem;
}

.profile-toggle {
    padding: 0.25rem;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.profile-toggle:hover {
    transform: scale(1.05);
}

.profile-menu {
    padding: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

.menu-divider {
    height: 1px;
    background-color: #f1f1f1;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .notification-dropdown,
    .profile-dropdown {
        width: calc(100vw - 2rem);
        margin: 0.5rem 1rem;
    }
}
