/* ══════════════════════════════════════════════════════
   SBS — STILI CALENDARIO
   Personalizza liberamente colori e font.
   Le variabili CSS sono raccolte in :root per comodità.
   ══════════════════════════════════════════════════════ */
*{
	-webkit-text-size-adjust:none;
	-moz-box-sizing: border-box; 
	-webkit-box-sizing: border-box; 
	box-sizing: border-box; 
	font-family:'Belleza', Verdana, Geneva, sans-serif;
	font-size: 17px;
	color:#000;
}
:root {
  --sbs-accent:        #000;/*#1a73e8;*/
  --sbs-accent-bg:     #e8f0fe;
  --sbs-accent-dark:   #1558b0;
  --sbs-success:       #188080;
  --sbs-success-bg:    #e6f0f4;
  --sbs-danger:        #c5221f;
  --sbs-danger-bg:     #fce8e6;
  --sbs-text:          #202124;
  --sbs-text-muted:    #5f6368;
  --sbs-border:        #dadce0;
  --sbs-bg:            #ffffff;
  --sbs-bg-subtle:     #f8f9fa;
  --sbs-radius:        10px;
  --sbs-radius-sm:     6px;
  --sbs-font:          inherit;
}


#calendar_cont{
	position:fixed;
	z-index:1000;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background-color:rgba(0,0,0,0.6);
}
#calendar_cont:not(.vis){
	display:none;
}
#calendar{
	position:fixed;
	z-index:1001;
	left:50%;
	top:50%;
	width:400px;
	height:600px;
    margin-left: -200px;
    margin-top: -300px;
	background-color:#FFF;
	border-radius:10px;
	box-shadow:0 0 5px;
    padding: 20px;
    overflow: hidden;
}
#calendar-loading{
	position:fixed;
	z-index:1001;
	left:50%;
	top:50%;
	width:400px;
	height:80px;
    margin-left: -200px;
    margin-top: -40px;
	color:#FFF;
	text-align: center;
	padding-top: 17px;
}
#calendar-loading > img{
	border-radius:8px;
	margin-bottom:10px;
}
#calendar.nas,
#calendar-loading:not(.vis){
	display:none
}



/* ── CONTENITORE ── */
#sbs-calendar,
#sbs-data {
	max-width: 420px;
	width: 100%;
	font-family: var(--sbs-font);
	color: var(--sbs-text);
}
/*#sbs-calendar.nas,
#sbs-data:not(.vis) {
  	display:none;
}*/
.sbs-step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--sbs-text);
}
#sbs-step1 .sbs-step-title{
	margin-top:0;
}
#sbs-orario{
	padding:0px 10px 10px 0;
	text-align: right;
}
#sbs-orario i{
	opacity:0.6;
}
#sbs-data input[type='text'],
#sbs-data input[type='email']{
	width: 100%;
	height: 32px;
    line-height: 32px;
    margin-top: 3px;
    margin-bottom: 3px;
    border-radius: 3px;
    border: none;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.9);
    padding-left: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
#sbs-data input[type='checkbox']{
	height: 16px !important;
    margin: -2px 2px 0 0;
    display: inline-block;
    vertical-align: middle;
}
#sbs-data textarea{
	width: 100%;
    height: 120px;
    resize: none;
    border-radius: 3px;
    border: none;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.9);
    padding-left: 6px;
    margin-top: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
#sbs-data button{
    background-color: #1a8181;
    line-height: 36px;
    height: 36px;
    color: #FFF;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    float: right;
    -webkit-transition: background 0.5s;
    transition: background 0.5s;
    letter-spacing: 0px !important;
    font-weight: normal;
    font-family: 'Belleza', Aria, Helvetica, sans-serif;
    /* font-size: 12px; */
    font-size: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
#sbs-data input::placeholder,
#sbs-data textarea::placeholder{
	opacity:0.5;
	font-style:italic;
}
#sbs-data button:hover{
	background-color: #106767;
}
#sbs-privacy{
	font-size:15px;
	padding-top:10px;
}
#sbs-privacy *{
	font-size:inherit;
}
#sbs-back{
	background-repeat: no-repeat;
    background-size: auto 41px;
    background-position: -10px center;
    background-image: url(img/zoomFrSxB2.png);
    padding-left: 27px;
    cursor: pointer;
    margin-bottom: 23px;
}

/* ── HEADER NAVIGAZIONE ── */
.sbs-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.sbs-nav {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border: 1px solid var(--sbs-border);
	border-radius: var(--sbs-radius-sm);
	background: var(--sbs-bg);
	color: var(--sbs-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
	background-repeat:no-repeat;
	background-size:auto 30px;
	background-position:center;
}
#sbs-prev {
	background-image:url(img/zoomFrSxB2.png);
}
#sbs-next {
	background-image:url(img/zoomFrDxB2.png);
}
.sbs-nav:hover  {
	background-color: var(--sbs-bg-subtle);
}
.sbs-nav:disabled {
	opacity: .35;
	cursor: not-allowed;
	background-color: var(--sbs-bg);
}

/* ── LABEL GIORNO ── */
.sbs-day-label {
	flex: 1;
	text-align: center;
}
.sbs-dow {
	display: block;
	font-size: 13px;
	color: var(--sbs-text-muted);
	margin-bottom: 2px;
}
.sbs-date {
	display: block;
	font-size: 17px;
	font-weight: 500;
}
.sbs-today .sbs-dow,
.sbs-today .sbs-date {
	color: var(--sbs-accent);
}

/* ── ERRORE ── */
.sbs-error {
	display: none;
	padding: 10px 14px;
	border-radius: var(--sbs-radius-sm);
	background: var(--sbs-danger-bg);
	color: var(--sbs-danger);
	font-size: 13px;
	margin-bottom: 10px;
}
.sbs-error.sbs-visible {
	display: block;
}

/* ── WRAP + SPINNER ── */
.sbs-wrap {
  	position: relative;
    min-height: 80px;
    height: 442px;
    overflow: auto;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 0 20px 20px 20px;
}
.sbs-spinner-wrap {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	z-index: 10;
}
#calendar-loading .sbs-spinner-wrap {
  	display: block;
}
#calendar-loading .sbs-spinner-wrap .sbs-spinner{
  	display: inline-block;
}
.sbs-spinner {
	width: 26px;
	height: 26px;
	border: 2.5px solid var(--sbs-border);
	border-top-color: var(--sbs-accent);
	border-radius: 50%;
	animation: sbs-spin .7s linear infinite;
}
@keyframes sbs-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── LISTA SLOT ── */
.sbs-slot-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ── SINGOLO SLOT ── */
.sbs-slot {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	border: none;
	border-radius: 4px;
	background: var(--sbs-success-bg);
	cursor: pointer;
	font-family: var(--sbs-font);
	font-size: 14px;
	text-align: left;
	transition: filter .15s, box-shadow .15s;
}
.sbs-slot:hover {
	filter: brightness(.95);
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.sbs-slot:focus-visible {
	outline: 2px solid var(--sbs-accent);
	outline-offset: 2px;
}

.sbs-slot-start {
	font-size: 16px;
	font-weight: 600;
	color: var(--sbs-success);
	min-width: 44px;
}
.sbs-slot-arrow {
	color: var(--sbs-text-muted);
	font-size: 14px;
}
.sbs-slot-end {
	flex: 1;
	font-size: 13px;
	color: var(--sbs-text-muted);
}
.sbs-slot-cta{
	font-size: 13px;
	font-weight: 500;
	color: #FFF;
	white-space: nowrap;
	background-color: #1a8181;
	display: inline-block;
	padding: 0 15px;
	height: 29px;
	line-height: 29px;
	margin: -5px -8px;
	border-radius: 4px;
}
#sbs-btn-step2{
	appearance: none;
    -webkit-appearance: none;
    border: none;
	color: #FFF;
	white-space: nowrap;
	background-color: #1a8181;
	display: inline-block;
	padding: 0 25px;
	height: 39px;
	line-height: 39px;
	border-radius: 4px;
	float:right;
	cursor:pointer;
	margin-left:10px;
}
#sbs-btn-add{
	appearance: none;
    -webkit-appearance: none;
    border: none;
	color: #FFF;
	white-space: nowrap;
	background-color: #999;
	display: inline-block;
	padding: 0 25px;
	height: 39px;
	line-height: 39px;
	border-radius: 4px;
	float:right;
	cursor:pointer;
}
.sbs-slot:hover .sbs-slot-cta {
    background-color: #106767;
}

/* ── NESSUN ORARIO ── */
.sbs-empty {
	padding: 34px 17px;
	text-align: center !important;
	font-size: 14px;
	color: var(--sbs-text-muted);
	border: 1px solid var(--sbs-border);
	border-radius: var(--sbs-radius);
	margin: 0;
}


#sbs-service-info {
    display: flex;
    align-items: center;
	margin-bottom: 10px;
    height: 25px;
	background-image:url(img/icoAppuntamento2.png);
	background-repeat:no-repeat;
	background-position:left top;
    background-size: auto 26px;
    padding-left: 40px;
}

#sbs-service-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
    width: calc(100%);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#sbs-service-duration {
    font-size: 14px;
    color: #5f6368;
    background: #dae6eb;
    padding: 3px 10px;
    border-radius: 5px;
	margin-left:5px;
}
#sbs-service-close{
	position:fixed;
	z-index:1002;
	width:30px;
	height:30px;
	top: calc(50% - 302px);
    right: calc(50% - 200px);
	cursor:pointer;
	background-image:url(img/chDoc.png);
	background-repeat:no-repeat;
	background-position:center;
}


@media only screen and (max-width: 400px){
	#calendar_cont,
	#calendar,
	#calendar-loading{
		width:100% !important;
		height:100% !important;
		left:0 !important;
		top:0 !important;
		margin-left:0 !important;
		margin-top:0 !important;
		border-radius:0 !important;
	}
	#sbs-service-close{
		top:5px !important;
		right:5px !important;
	}
	.sbs-wrap {
		position:absolute;
		height: calc(100% - 113px);
		width: 100%;
	}
}
/* ── CARRELLO SERVIZI ── */
#sbs-cart {
    margin: 20px 0 12px 0;
    border: 1px solid var(--sbs-border);
    border-radius: var(--sbs-radius-sm);
    padding: 10px 12px;
    background: var(--sbs-bg-subtle);
}
.sbs-cart-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--sbs-text);
}
#sbs-cart-list {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
}
.sbs-cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--sbs-border);
    font-size: 14px;
}
.sbs-cart-item:last-child { border-bottom: none; }
.sbs-cart-name { flex: 1; }
.sbs-cart-dur  { color: var(--sbs-text-muted); font-size: 13px; white-space: nowrap; }
.sbs-cart-remove {
    background: none;
    border: none;
    color: var(--sbs-danger);
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
}
#sbs-cart-total {
    font-size: 13px;
    color: var(--sbs-text-muted);
}

/* ── RIEPILOGO ORARIO ── */
.sbs-riepilogo {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}
.sbs-riepilogo li {
    padding: 2px 0;
    font-size: 14px;
    color: var(--sbs-text);
}

#sbs-cart-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: #c4c84c;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-image: url(img/icoAppuntamento2.png);
    background-position: center;
    background-repeat: no-repeat;
}
#sbs-cart-fab.visible {
    display: flex;
}