/* ===============================
   GLOBAL WRAPPER
================================ */
.plbs-slider-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
/* ===============================
   DATE SLIDER
================================ */
.plbs-month-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 10px 5px;
}
.plbs-horizontal-dates {
    display: flex;
    overflow-x: auto;
    gap: 17px;
    padding: 15px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.plbs-horizontal-dates::-webkit-scrollbar {
    display: none;
}

.plbs-date-item {
    min-width: 85px;
    background: #f3f3f3;
    border-radius: 16px;
    text-align: center;
    padding: 10px 5px;
    cursor: pointer;
    transition: 0.2s ease;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.plbs-date-item.active {
    background: #111;
    color: #fff;
}

.plbs-day {
    font-size: 13px;
    opacity: .7;
}

.plbs-number {
    font-size: 18px;
    font-weight: 600;
}

/* ===============================
   PRODUCT LIST
================================ */
.plbs-product-container {
    padding: 10px;
}

.plbs-product-row {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: .2s ease;
    position: relative;
}

.plbs-product-row:hover {
    transform: translateY(-3px);
}

.plbs-product-row.full {
    opacity: 0.5;
    pointer-events: none;
}

.plbs-product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.plbs-product-duration {
    font-size: 14px;
    color: #666;
}

/* ===============================
   FULL BADGE
================================ */
.plbs-full-badge {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #ff3b30;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* ===============================
   MODAL
================================ */
.plbs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.plbs-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 20px;
    animation: slideUp .3s ease;
}

/* ===============================
   PRODUCT FADE TRANSITION
=============================== */

.plbs-product-container {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.plbs-product-container.loading {
    opacity: 0;
    transform: translateY(10px);
}

.plbs-product-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Optional spinner */
.plbs-loader {
    text-align: center;
    padding: 30px 0;
}

.plbs-loader:after {
    content: "";
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top: 3px solid #111;
    border-radius: 50%;
    display: inline-block;
    animation: plbsSpin 0.8s linear infinite;
}

/* ===============================
   PRODUCT ROW LAYOUT
=============================== */

.plbs-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: .2s ease;
}

.plbs-product-info {
    flex: 1;
}

/* ===============================
   ACTION ARROW
=============================== */

.plbs-product-action {
    margin-left: 15px;
}

.plbs-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: 0.2s ease;
    padding-bottom: 3px;
}

/* Hover effect */
.plbs-product-row:hover .plbs-arrow-icon {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* PRODUCT ROW STRUCTURE */
.plbs-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    position: relative;
}

/* IMAGE */
.plbs-product-image {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}
.plbs-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* INFO */
.plbs-product-info {
    flex: 1;
}

.plbs-product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* PRICE */
.plbs-product-price {
    margin-bottom: 5px;
}

.plbs-regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-right: 6px;
}

.plbs-sale-price {
    font-weight: 600;
    font-size: 15px;
}

/* META */
.plbs-product-meta {
    font-size: 13px;
    color: #666;
}

/* ACTION */
.plbs-product-action {
    flex-shrink: 0;
}

.plbs-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    font-size: 18px;
    transition: .2s ease;
}

.plbs-product-row:hover .plbs-arrow-icon {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* FULL BADGE */
.plbs-full-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ===============================
   GENDER BADGE
=============================== */

.plbs-gender-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin: 4px 0 6px 0;
}

/* Warna berbeda */
.plbs-gender-badge.pria {
    background: #e0f2fe;
    color: #0369a1;
}

.plbs-gender-badge.wanita {
    background: #fce7f3;
    color: #be185d;
}



/* ===============================
   CONFIRM PAGE
=============================== */

.plbs-confirm-card {
    max-width: 480px;
    margin: 30px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.plbs-confirm-image{
    margin-bottom:15px;
}

.plbs-image-wrapper{
    width:100%;
    aspect-ratio: 4 / 4; /* atau 1 / 1 kalau mau kotak */
    border-radius:12px;
    overflow:hidden;
    background:#f3f4f6;
}

/* IMAGE */
.plbs-image-wrapper img{
    width:100%;
    height:100%;
aspect-ratio: 4 / 4;
object-fit: cover;
object-position: center;
    display:block;
}

/* subtle hover effect */
.plbs-image-wrapper:hover img{
    transform:scale(1.05);
}


.plbs-confirm-body {
    padding: 20px;
}

.plbs-confirm-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plbs-confirm-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.plbs-confirm-price {
    margin-bottom: 20px;
}

.plbs-confirm-btn {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.plbs-confirm-btn:hover {
    background: #333;
}

/* ===============================
   QUANTITY FIELD
=============================== */
.plbs-persons-field{
    padding-bottom: 1.5em;
    
}
.plbs-qty-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: space-between;
}

.plbs-qty-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.plbs-qty-buttons {
    display: flex;
    column-gap: 0.7em;
}

.plbs-qty-buttons button {
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    border: 1px solid var(--e-global-color-3bfc76c);
    transition: 0.2s ease;
    color: var(--e-global-color-3bfc76c);
    padding-left: 17px;
}
#plbs_persons{
    border: 1px solid var(--e-global-color-3bfc76c);
    margin-right:15px;
}
.plbs-qty-buttons button:hover {
    background: #111;
    color: #fff;
}

.plbs-qty-buttons button:active {
    transform: scale(0.95);
}

.plbs-total-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 12px 0;
    font-size: 15px;
    border-top: 1px solid #eee;
}

.plbs-total-service strong {
    font-size: 18px;
    font-weight: 700;
}







@keyframes plbsSpin {
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity:0; }
    to { transform: translateY(0); opacity:1; }
}





/* ======================================
   MOBILE DATE FULL WIDTH (NO SLIDER)
====================================== */

@media (max-width: 768px){

    #plbs-date-container{
        width: 100% !important;
        display: flex !important;
        justify-content: space-between;
        gap: 6px;
        padding: 12px 10px;
        overflow: hidden !important; /* no scroll */
    }

    .plbs-date-item{
        flex: 1;
        min-width: auto !important;
        padding: 6px 4px;
        border-radius: 12px;
    }

    .plbs-date-item .day{
        font-size: 11px;
    }

    .plbs-date-item .date{
        font-size: 14px;
        font-weight: 600;
    }

}



/* ====================================
   LOADING OVERLAY
==================================== */

#plbs-loading-overlay{
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.plbs-spinner{
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: plbsSpin 0.8s linear infinite;
}

@keyframes plbsSpin{
    to{ transform: rotate(360deg); }
}

/* smooth fade */
#plbs-products-container{
    transition: opacity 0.3s ease;
}

/* ====================================
   PRODUCT LOADING STYLE
==================================== */

.plbs-loader-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:250px;
}

.plbs-loader-gif{
    width:150px;
    height:auto;
}

/* ====================================
   EMPTY STATE CARD
==================================== */

.plbs-empty-card{
    background:#f9f9f9;
    border-radius:16px;
    padding:30px 20px;
    text-align:center;
    margin:10px 0;
}

.plbs-empty-icon{
    font-size:32px;
    margin-bottom:10px;
}

.plbs-empty-title{
    font-weight:600;
    font-size:16px;
    margin-bottom:6px;
}

.plbs-empty-sub{
    font-size:13px;
    color:#777;
}

.plbs-confirm-meta{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
}

.plbs-meta-row{
    display:grid;
    grid-template-columns: 24px 90px 1fr;
    align-items:center;
    font-size:14px;
}

.plbs-icon{
    font-size:16px;
    opacity:0.8;
}

.plbs-label{
    color:#666;
    font-weight:500;
}

.plbs-value{
    font-weight:600;
    color:#111;
}

.plbs-confirm-price{
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid #eee;
}

.plbs-price-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.plbs-price-label{
    font-size:14px;
    color:#666;
    font-weight:500;
}

.plbs-price-values{
    display:flex;
    align-items:center;
    gap:10px;
}

/* Harga coret */
.plbs-regular-price{
    font-size:13px;
    color:#999;
    text-decoration:line-through;
}

/* Harga utama */
.plbs-sale-price{
    font-size:18px;
    font-weight:700;
    color:#111;
}
