/* Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        #eee 25%,
        #f5f5f5 37%,
        #eee 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: 100% 0 }
    100% { background-position: -100% 0 }
}

.time-skeleton {
    height: 44px;
    margin-bottom: 10px;
}
.uzb-slot-skeleton {
    height: 42px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.uzb-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 10px;
}

.uzb-slot.active {
    background: #0d6efd;
    color: #fff;
}
.uzb-slot-error {
    background: #fff4f4;
    border: 1px solid #f1bcbc;
    color: #7a1c1c;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}
/* Parent form container */
.connected-form {
    position: relative;
}

/* Skeleton overlay */
.uzb-form-skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 20;
}

/* Skeleton shimmer blocks */
.uzb-form-skeleton::after {
    content: '';
    position: absolute;
    inset: 20px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.15) 37%,
        rgba(255, 255, 255, 0.05) 63%
    );
    background-size: 300% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border-radius: 8px;
    z-index: 21;
    pointer-events: none;
}


/* Disable interaction */
.uzb-form-skeleton * {
    pointer-events: none;
    opacity: 0.35;
}
.uzb-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uzb-popup {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: uzbPop .25s ease;
}

.uzb-popup h4 {
    margin-bottom: 10px;
    color: #0d6efd;
}

.uzb-popup p {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}

@keyframes uzbPop {
    from { transform: scale(.9); opacity: 0 }
    to { transform: scale(1); opacity: 1 }
}
.uzb-timepicker {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    max-height: 240px;
    overflow-y: auto;
    width: 100%;
}

.uzb-timepicker button {
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.uzb-timepicker button:hover {
    background: #f5f5f5;
}
#uzb-booking-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uzb-popup-inner {
    background: #fff;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    position: relative;
}
.uzb-popup-inner.success { border-top: 6px solid #28a745; }
.uzb-popup-inner.error   { border-top: 6px solid #dc3545; }
.uzb-close {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 22px;
}
