:is(.jalali-date input[type=text], .jalali-date input:not([type]), input.jalali-date[type=text]){width:100%!important;max-width:100%!important;min-height:45px;box-sizing:border-box;cursor:pointer;direction:rtl;text-align:center!important;border-radius:10px!important;padding:8px 10px 8px 35px!important;font-size:14px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:left 10px center!important}
.jalali-date input::placeholder{color:#94a3b8!important;opacity:1}
.gfjc-admin-card{background:#fff;border:1px solid #dbe3ec;border-radius:14px;padding:24px;max-width:620px;box-sizing:border-box;margin-top:20px}
.gfjc-admin-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
#gfjc_pick{width:220px;max-width:100%;min-height:42px;border-radius:8px;text-align:center;cursor:pointer;background:#fff}
#gfjc_list{display:grid;gap:8px;max-height:340px;overflow:auto}
#gfjc_list li{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:0}
#gfjc_list bdi{font-size:15px;font-weight:600;color:#991b1b}
#gfjc_list .gfjc-remove{color:#b91c1c;border-color:#fecaca;background:white}
#gfjc_status{min-height:1.5em;color:#166534}

.gfjc-popup{position:fixed!important;z-index:2147483000!important;width:320px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:12px;background:#fff;color:#1e293b;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 35px #0002;font:inherit;direction:rtl;text-align:center}
.gfjc-popup .gfjc-nav{display:flex;align-items:center;gap:4px;background:#eff6ff;padding:6px;border-radius:10px;margin-bottom:10px}
.gfjc-popup button,.gfjc-popup select{font-family:inherit!important;font-size:14px!important;min-height:0!important;min-width:0!important;margin:0!important;box-shadow:none!important;text-transform:none!important;line-height:1.4!important;border:0!important;color:#2563eb!important;background:transparent!important;border-radius:8px!important;padding:6px!important;cursor:pointer;box-sizing:border-box}
.gfjc-popup select{width:auto!important;flex:1;padding:4px!important;background:#fff!important;color:#1e293b!important}
.gfjc-popup .gfjc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;align-items:center}
.gfjc-popup .gfjc-week{font-size:12px;color:#64748b;padding:4px 0}
.gfjc-popup button.gfjc-day{width:100%!important;height:36px!important;color:#1e293b!important}
.gfjc-popup button.gfjc-day:hover:not(:disabled),.gfjc-popup button.gfjc-today{background:#dbeafe!important;color:#2563eb!important}
.gfjc-popup button.gfjc-selected{background:#2563eb!important;color:#fff!important}
.gfjc-popup button.gfjc-day:disabled{background:#f1f5f9!important;color:#94a3b8!important;text-decoration:none!important;cursor:not-allowed!important;opacity:1!important}
.gfjc-popup button.gfjc-today-button{display:block;width:100%!important;background:#eff6ff!important;margin-top:10px!important;color:#2563eb!important}


/* Reference screenshot theme */
.gfjc-popup{width:320px!important;padding:12px!important;border-radius:14px!important;border:1px solid #e5e7eb!important;background:#fff!important;box-shadow:0 8px 28px #00000014!important;direction:ltr!important}
.gfjc-popup .gfjc-nav{direction:rtl;display:flex;gap:4px;background:#edf4fe!important;border-radius:12px!important;padding:4px!important;margin:0 0 8px!important;min-height:48px;box-sizing:border-box}
.gfjc-popup .gfjc-nav button{width:34px!important;flex:0 0 34px;font-weight:500!important}
.gfjc-popup .gfjc-nav .gfjc-heading{flex:1!important;width:auto!important;color:#111827!important;font-weight:600!important;font-size:16px!important}
.gfjc-popup .gfjc-month-year{display:flex;direction:rtl;gap:6px;margin-bottom:8px}
.gfjc-popup .gfjc-month-year[hidden]{display:none!important}
.gfjc-popup .gfjc-month-year select{border:1px solid #e2e8f0!important;min-height:32px!important}
.gfjc-popup .gfjc-grid{direction:rtl!important;gap:4px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
.gfjc-popup .gfjc-week{font-size:12px!important;font-weight:400!important;color:#777!important;padding:6px 0!important}
.gfjc-popup button.gfjc-day{height:40px!important;line-height:40px!important;padding:0!important;border-radius:8px!important;font-size:14px!important;font-weight:400!important;color:#252525!important}
.gfjc-popup button.gfjc-day.gfjc-today:not(:disabled){background:#eff6ff!important;color:#2563eb!important;box-shadow:inset 0 0 0 1px #93c5fd!important}
.gfjc-popup button.gfjc-day.gfjc-selected:not(:disabled){background:#2563eb!important;color:#fff!important;box-shadow:none!important}
.gfjc-popup button.gfjc-day:disabled{color:#9ca3af!important;background:#f1f5f9!important;text-decoration:none!important}
.gfjc-popup button.gfjc-today-button{width:100%!important;display:block!important;margin-top:16px!important;min-height:40px!important;background:#edf4fe!important;color:#2563eb!important;font-weight:600!important;border-radius:8px!important;position:relative}
.gfjc-popup button.gfjc-today-button:before{content:'';position:absolute;top:-8px;left:0;right:0;border-top:1px solid #e5e7eb}

/* Match the existing form row; keep the calendar popup unchanged. */
.gfjc-full-field .ginput_container {width:100%!important;max-width:100%!important;}
.gfjc-full-field input:not([type=hidden]) {width:100%!important;max-width:100%!important;box-sizing:border-box!important;height:var(--gfjc-input-height, auto)!important;min-height:0!important;border-radius:var(--gfjc-input-radius,4px)!important;font-size:var(--gfjc-input-font,14px)!important;border:var(--gfjc-input-border,1px solid #ccc)!important;padding-block:0!important;}
@media(min-width:768px){
.gfjc-grid-pair > :is(.gfjc-pair-first,.gfjc-pair-second){grid-column:span 6!important;min-width:0!important;}
.gfjc-flow-pair > :is(.gfjc-pair-first,.gfjc-pair-second){float:right!important;clear:none!important;width:calc(50% - 8px)!important;max-width:calc(50% - 8px)!important;box-sizing:border-box!important;min-width:0!important;padding-inline:0!important;}
.gfjc-flow-pair > .gfjc-pair-first{clear:both!important;margin-left:16px!important;margin-right:0!important;}
.gfjc-flow-pair > .gfjc-pair-second{margin-inline:0!important;}
.gfjc-flow-pair.gfjc-reference-pair > :is(.gfjc-pair-first,.gfjc-pair-second){width:var(--gfjc-pair-width)!important;max-width:var(--gfjc-pair-width)!important;}
.gfjc-flow-pair.gfjc-reference-pair > .gfjc-pair-first{margin-right:var(--gfjc-pair-inset)!important;margin-left:var(--gfjc-pair-gap)!important;}
.gfjc-flow-pair > .gfjc-pair-second + .gfield{clear:both!important;}
.gfjc-flow-pair::after{content:"";display:block;clear:both;}
:is(.gfjc-pair-first,.gfjc-pair-second) .ginput_container{width:100%!important;max-width:100%!important;}
:is(.gfjc-pair-first,.gfjc-pair-second) input:not([type=hidden]){width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
.gfjc-grid-pair.gfjc-reference-pair > :is(.gfjc-pair-first,.gfjc-pair-second) input:not([type=hidden]){width:var(--gfjc-match-width)!important;max-width:100%!important;}
}
@media(max-width:767px){
.gfjc-grid-pair > :is(.gfjc-pair-first,.gfjc-pair-second){grid-column:1/-1!important;}
.gfjc-flow-pair > :is(.gfjc-pair-first,.gfjc-pair-second){float:none!important;clear:both!important;}
}

/* Align the two booking inputs to the actual inputs in the preceding row. */
@media(min-width:768px){
.gfield.gfjc-exact-match{position:relative!important;left:var(--gfjc-align-x,0px)!important;}
.gfield.gfjc-exact-match .ginput_container{display:block!important;width:var(--gfjc-exact-width)!important;max-width:100%!important;margin-right:0!important;margin-left:auto!important;}
.gfield.gfjc-exact-match .ginput_container input:not([type=hidden]){width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
}

/* Hide the text caret only on calendar inputs. */
.jalali-date input:not([type=hidden]), #gfjc_pick { caret-color: transparent !important; }

input[data-gfjc-ready], input[data-gfjc-ready]:focus, input.jalali-date, .jalali-date input, #gfjc_pick {caret-color:transparent!important;cursor:pointer!important;}

