/* Hide JetBooking's original Gregorian picker. The Jalali picker below is the only visible calendar. */
.jtbp-original-hidden,
.jtbp-calendar-native-hidden,
.jtbp-calendar-native-hidden .date-picker-wrapper,
.jtbp-calendar-native-hidden .date-picker-wrapper-container { display:none!important; }

.jtbp-visible-input {
	width:100%!important;
	box-sizing:border-box!important;
	cursor:pointer!important;
	background:#fff!important;
	color:#172033!important;
	font-family:inherit!important;
	font-variant-numeric:tabular-nums;
}

.jtbp-calendar {
	box-sizing:border-box;
	font-family:inherit;
	color:#172033;
	background:rgba(255,255,255,.98);
	border:1px solid rgba(15,23,42,.08);
	border-radius:22px;
	box-shadow:0 22px 65px rgba(15,23,42,.18);
	padding:16px;
	backdrop-filter:blur(18px);
	-webkit-backdrop-filter:blur(18px);
	z-index:2147483000;
}

.jtbp-calendar-popover { max-height:min(620px,calc(100vh - 24px)); overflow:auto; }
.jtbp-inline-host { width:100%; }
.jtbp-inline-host .jtbp-calendar { box-shadow:none;border:0;border-radius:0;padding:12px;background:transparent; }

.jtbp-calendar-top { display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:8px;margin-bottom:14px; }
.jtbp-calendar-top button { width:40px;height:40px;border:0;border-radius:12px;background:#f1f5f9;color:#17345f;font-size:26px;line-height:1;cursor:pointer; }
.jtbp-calendar-top button:hover { background:#e2e8f0; }
.jtbp-month { text-align:center;display:flex;justify-content:center;align-items:baseline;gap:7px;font-size:14px; }
.jtbp-month strong { font-size:18px; }
.jtbp-month span { font-weight:700; }

.jtbp-week,.jtbp-days { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px; }
.jtbp-week { margin-bottom:6px; }
.jtbp-week span { text-align:center;font-size:10px;color:#64748b;font-weight:600;padding:4px 0;white-space:nowrap; }
.jtbp-empty { min-height:50px; }

.jtbp-day { min-width:0;min-height:58px;border:0;border-radius:14px;background:#fff;color:#172033;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;transition:transform .12s ease,background .12s ease,box-shadow .12s ease; }
.jtbp-day:hover:not(:disabled) { background:#eef6ff;transform:translateY(-1px); }
.jtbp-day-number { font-size:14px;font-weight:700;line-height:1; }
.jtbp-day-price { font-size:8px;color:#64748b;line-height:1;white-space:nowrap; }
.jtbp-day.selected { background:#0b4a83!important;color:#fff!important;box-shadow:0 8px 18px rgba(11,74,131,.25); }
.jtbp-day.selected .jtbp-day-price { color:rgba(255,255,255,.82); }
.jtbp-day.in-range { background:#e8f2fc;border-radius:8px; }
.jtbp-day.disabled { opacity:.32;cursor:not-allowed; }
.jtbp-day.disabled .jtbp-day-price { display:none; }

.jtbp-summary { margin-top:13px;padding:12px 14px;border-radius:14px;background:#f8fafc;display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#475569; }
.jtbp-summary b { color:#0b4a83;font-size:12px; }
.jtbp-summary i { font-style:normal;color:#94a3b8; }
.jtbp-summary-pending { justify-content:center;color:#64748b; }

@media (max-width:600px) {
	.jtbp-calendar { border-radius:18px;padding:12px; }
	.jtbp-day { min-height:48px;border-radius:11px; }
	.jtbp-day-price { font-size:7px; }
	.jtbp-week span { font-size:9px; }
}

/* Prevent the theme/JetBooking wrapper from creating a second visible calendar. */
.jet-abaf-field .date-picker-wrapper,
.jet-abaf-separate-fields .date-picker-wrapper,
.jet-abaf-product-check-in-out .date-picker-wrapper,
.jet-booking-calendar__container > .date-picker-wrapper { display:none!important; }

.jtbp-calendar-popover{width:min(820px,calc(100vw - 24px))!important;overflow:visible!important;}
.jtbp-calendar-top{grid-template-columns:42px 1fr 42px!important;}
.jtbp-calendar-heading{text-align:center;display:flex;flex-direction:column;gap:3px;}
.jtbp-calendar-heading strong{font-size:16px;color:#0b3157;}
.jtbp-calendar-heading small{font-size:10px;color:#64748b;}
.jtbp-months{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.jtbp-month-panel{min-width:0;padding:10px;border:1px solid rgba(15,23,42,.07);border-radius:18px;background:rgba(248,250,252,.7);}
.jtbp-month-title{display:flex;justify-content:center;gap:7px;align-items:baseline;margin:2px 0 10px;font-size:13px;color:#17345f;}
.jtbp-month-title strong{font-size:16px;}
.jtbp-month-title span{font-weight:700;}
.jtbp-day-price{font-size:8px!important;color:#64748b!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.jtbp-day-price::after{content:' تومان';font-size:7px;}
.jtbp-calendar-message{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff1f2;color:#b42318;text-align:center;font-size:11px;}
@media (max-width:700px){.jtbp-calendar-popover{width:calc(100vw - 24px)!important;}.jtbp-months{grid-template-columns:1fr;gap:10px;max-height:calc(100vh - 180px);overflow:auto;}.jtbp-month-panel:nth-child(2){display:none;}.jtbp-day{min-height:48px;}.jtbp-day-price::after{content:'';}.jtbp-calendar-popover{max-height:calc(100vh - 24px);overflow:auto!important;}}

/* v2.3 responsive layout: two months on desktop, one month on phones. */
.jtbp-calendar-popover{box-sizing:border-box!important;max-width:calc(100vw - 16px)!important;}
.jtbp-months{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}
.jtbp-month-panel{overflow:hidden;}
@media (max-width: 760px){
  .jtbp-calendar-popover{padding:10px!important;border-radius:16px!important;}
  .jtbp-months{grid-template-columns:1fr!important;gap:8px!important;max-height:calc(100vh - 190px);overflow-y:auto;overscroll-behavior:contain;}
  .jtbp-month-panel:nth-child(2){display:none;}
  .jtbp-calendar-top{grid-template-columns:36px 1fr 36px!important;gap:6px!important;margin-bottom:8px!important;}
  .jtbp-calendar-top button{width:36px!important;height:36px!important;font-size:22px!important;}
  .jtbp-calendar-heading strong{font-size:14px!important;}
  .jtbp-calendar-heading small{font-size:9px!important;}
  .jtbp-month-panel{padding:7px!important;border-radius:14px!important;}
  .jtbp-month-title{margin:1px 0 7px!important;font-size:12px!important;}
  .jtbp-month-title strong{font-size:14px!important;}
  .jtbp-week,.jtbp-days{gap:3px!important;}
  .jtbp-week span{font-size:8px!important;padding:3px 0!important;}
  .jtbp-day{min-height:44px!important;border-radius:9px!important;}
  .jtbp-day-number{font-size:13px!important;}
  .jtbp-day-price{font-size:7px!important;}
  .jtbp-summary{margin-top:8px!important;padding:9px!important;font-size:10px!important;gap:5px!important;}
}
@media (max-width: 380px){
  .jtbp-calendar{padding:8px!important;}
  .jtbp-day{min-height:40px!important;}
  .jtbp-day-number{font-size:12px!important;}
  .jtbp-day-price{font-size:6px!important;}
}

@media (max-width:700px){.jtbp-calendar-popover{width:calc(100vw - 16px)!important;left:8px!important;max-width:none!important}.jtbp-months{grid-template-columns:1fr!important}.jtbp-month-panel:nth-child(2){display:none}.jtbp-calendar{max-height:calc(100vh - 16px);overflow:auto}.jtbp-day{min-height:42px}.jtbp-day-price{font-size:9px}}
