/* 
make sure datetime show above the panel when openning the datetime picker in appointment form */

#appointment-fom p:empty{
    display: none;
}
.archive .gs-dynamicpanel.active {
    z-index: 1001 !important;
}


.appointment-whatsapp-field__row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.appointment-whatsapp-field__row select {
    min-width: 50px;
}

.appointment-whatsapp-field__row input {
    flex: 1;
}

@media (max-width: 575.98px) {
    .appointment-whatsapp-field__row {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-whatsapp-field__row select {
        min-width: 100%;
    }
}

.appointment-datetime-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 44px;
    cursor: pointer;
}

.appointment-datetime-modal {
    position: fixed;
    inset: 0;
    z-index: 200000000 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.appointment-datetime-modal.is-open {
    display: flex;
}

.appointment-datetime-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.appointment-datetime-panel {
    position: relative;
    width: min(380px, 92vw);
    background: var(--wp--preset--color--surface-1);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.appointment-datetime-step {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.appointment-datetime-step--date {
    display: flex;
}

.appointment-datetime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.appointment-datetime-step--time .appointment-datetime-header {
    justify-content: center;
}

.appointment-datetime-nav {
    border: none;
    background: transparent;
    color: #1c1b1a;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
}

.appointment-datetime-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.appointment-datetime-title {
    font-weight: 600;
    font-size: 20px;
    color: #111827;
}


.appointment-datetime-close,
.appointment-datetime-back,
.appointment-datetime-next,
.appointment-datetime-save {

    cursor: pointer;
}

.appointment-datetime-back {
    background: #f4f2ee;
    color: #1c1b1a;
}

.appointment-datetime-close {
    background: transparent;
    color: #1c1b1a;
    padding: 0 6px;
    font-size: 22px;
}

.appointment-datetime-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.appointment-datetime-step--time .appointment-datetime-actions {
    flex-direction: row;
}

.appointment-datetime-step--time .appointment-datetime-back,
.appointment-datetime-step--time .appointment-datetime-save {
    width: 50%;
}

.appointment-datetime-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a8a;
    text-align: center;
}

.appointment-datetime-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.appointment-datetime-day {
    background-color: transparent;
    border: none;
    color: #1c1b1a;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
}

.appointment-datetime-day.is-selected {
    background: #B05A36;
    color: #fff;
}

.appointment-datetime-day.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.appointment-datetime-day.is-empty {
    cursor: default;
    height: 0;
}

.appointment-datetime-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.appointment-datetime-time {
    border: none;
    background: #EDEBE4;
    border-radius: 8px;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 12px;
}

.appointment-datetime-time.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.appointment-datetime-time.is-selected {
    background: #b05a36;
    color: #fff;
}

@media (max-width: 575.98px) {
    .appointment-datetime-panel {
        padding: 14px;
    }

    .appointment-datetime-times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.appointment-datetime-block input {
    width: 100%;
}