/**
 * Styles pour le sélecteur de créneaux 2Dive
 */

.tdive-creneaux-selector {
    width: 100%;
    background: #fff;
    border-radius: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Loading */
.tdive-creneaux-loading {
    text-align: center;
    padding: 40px 20px;
}

.tdive-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: tdive-spin 1s linear infinite;
}

@keyframes tdive-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tdive-creneaux-loading p {
    color: #666;
    margin: 0;
}

/* Header avec navigation - FIXE avec fond gris */
.tdive-creneaux-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 15px;
    background: #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 10px;
}

.tdive-creneaux-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.tdive-creneaux-header button {
    background: #F0F0F0;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.tdive-creneaux-header button:hover:not(:disabled) {
    background: #e0e0e0;
    color: #000;
}

.tdive-creneaux-header button:disabled {
    opacity: 0.3;
}

.tdive-creneaux-header button svg {
    display: block;
}

/* Wrapper principal */
.tdive-creneaux-wrapper {
    background: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    position: relative;
}

/* Conteneur scrollable horizontal */
.tdive-creneaux-scrollable {
    display: flex;
    flex-direction: row;
    background: #fff;
    width: 100%;
}

/* Colonne jour - Design épuré */
.tdive-day-column {
    background: #fff;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% / 7);
    min-height: 200px;
    flex-shrink: 0;
    flex-grow: 0;
    transition: all 0.3s ease;
}

.tdive-day-column.tdive-day-disabled {
    opacity: 0.5;
    background: #fff;
}

.tdive-day-column.tdive-day-available {
    cursor: default;
}

/* En-tête de la colonne (nom du jour + date) */
.tdive-day-header {
    padding: 3px 2px;
    text-align: center;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #15499a;
    line-height: 1.1;
    text-transform: capitalize;
}

.tdive-day-lieu {
    padding: 0 8px 4px 8px;
    text-align: center;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1;
}

.tdive-day-tarif {
    padding: 0 8px 8px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.tdive-tarif-open {
    color: #ff9800; /* Orange */
}

.tdive-tarif-vert {
    color: #4caf50; /* Vert */
}

.tdive-tarif-lastminute {
    color: #2196f3; /* Bleu */
}

/* Contenu de la colonne (créneaux) */
.tdive-day-content {
    flex: 1;
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
}

/* Liste des créneaux */
.tdive-day-slots {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: hidden;
}

.tdive-day-slots-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 20px 0;
    font-style: italic;
}

/* Bouton créneau - Design épuré avec border-radius et fond gris */
.tdive-slot-btn {
    width: fit-content;
    padding: 4px 2px;
    background: #F0F0F0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
    min-width: 45%;
}

.tdive-slot-btn:hover:not(.tdive-slot-disabled):not(.tdive-slot-selected) {
    background: #e0e0e0;
}

.tdive-slot-btn.tdive-slot-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    background: #F0F0F0;
}

.tdive-slot-btn.tdive-slot-selected {
    background: #333;
    color: #fff;
}

.tdive-slot-time {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tdive-slot-places {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    font-weight: normal;
}

.tdive-slot-selected .tdive-slot-places {
    opacity: 0.9;
}

/* Message du prochain RDV disponible */
.tdive-next-rdv-message {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    white-space: nowrap;
}

.tdive-next-rdv-message:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%) translateY(-2px);
}

.tdive-next-rdv-icon {
    font-size: 18px;
}

.tdive-next-rdv-text {
    font-size: 14px;
    color: #333;
}

.tdive-next-rdv-text strong {
    font-weight: 600;
    color: #0066cc;
}

.tdive-next-rdv-arrow {
    font-size: 16px;
    color: #0066cc;
    font-weight: 600;
}

/* Message d'erreur */
.tdive-creneaux-error {
    padding: 20px;
    text-align: center;
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tdive-day-lieu {
        font-size: 11px;
    }
    .tdive-day-tarif {
        font-size: 10px;
    }
    .tdive-slot-time {
        font-size: 12px;
    }
    .tdive-day-column.tdive-day-disabled .tdive-day-header {
        font-size: 10px;
        color: #999;
        min-height: 30px;
    }
    .tdive-day-content {
        padding: 0;
    }
}

/* Notice CGV avant bouton Commander (checkout) */
.tdive-cgv-notice {
    text-align: right;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 600;
}

#place_order {
    background: #0066cc;
    color: #fff;
    width: 100%;
    text-align: center;
}

.wc-block-components-quantity-selector {
    display: none !important;
}

body.woocommerce-order-received {
    .row-commande {
        display: none !important;
    }
}

body:not(.woocommerce-order-received) {
    .row-confirmation {
        display: none !important;
    }
}

body.postid-8320 .et_pb_module.et_pb_wc_add_to_cart {
	visibility: hidden;
	 max-height: 0;
	 overflow: hidden;
}


/* .woocommerce-checkout form .form-row {
    width: 100% !important;
}
.woocommerce-checkout #payment div.payment_box input.input-text, .woocommerce-checkout #payment div.payment_box textarea {
    width: 100% !important;
    padding: 8px;
}
.woocommerce-checkout #payment .form-row select, .woocommerce-page #payment .form-row select {
    width: 100%;
    height: 30px;
}
.woocommerce-checkout .col2-set .col-1, .woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    float: left;
    width: 100%;
}
form.woocommerce-checkout h3 {
    background-color: #15499A; 
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 50px;
    color: #FFF;
    float: right;
}
#order_review_heading {
	width: 45%;
	margin-bottom: 20px;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: 0.2em 0.5em;
	background-color: #fff;
	color: #4a4a4a;
    outline: 0;
    -webkit-appearance: none;
    border-radius: 0px;
    box-sizing: border-box;
    font-weight: 400;
   	border: 2px solid #5BC1EF;
}

#wc_checkout_add_ons {
    width: 45%;
    float: right;
    text-align: center;
}


body.postid-8320 .et_pb_module.et_pb_wc_add_to_cart {
	visibility: hidden;
	 max-height: 0;
	 overflow: hidden;
}

@media screen and (min-width: 980px) {
.woocommerce-shipping-fields h3, .woocommerce-billing-fields h3 {width:100%;}
.woocommerce .col2-set, .woocommerce-page .col2-set {
 width: 45%;
 float: left;
}
.woocommerce-checkout-review-order{
 width: 45%;
 float: right;
}
}
@media screen and (max-width: 979px) {
form.woocommerce-checkout h3 {
 width: 100%;
}
}

ul.et_mobile_menu {
	width: 100vw !important;
	margin-top: 10px;
}
.et_pb_section, .et_pb_section *{
	animation:none !important;
	opacity: 1 !important;
}

.et_pb_blurb.module-prix .et_pb_blurb_content .et_pb_blurb_container {
	width: 100%;
	padding: 0;
}

.tarifs .et-pb-icon, .options .et-pb-icon {
	cursor: pointer !important;
}

#et-boc .area-outer-wrap[data-da-color="light"] .da-close {
    font-size: 40px;
    margin-right: 10px;
    margin-top: 5px;
}

#post-299 {
	margin-top: 25px;
}

.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
	display: none;
} */

/* Champs client (shortcode [2dive_reservation_fields]) */
.tdive-reservation-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    margin-top: 15px;
}

.tdive-reservation-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tdive-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #15499a;
}

.tdive-field-required {
    color: #d32f2f;
    margin-left: 3px;
}

.tdive-reservation-fields input[type="text"],
.tdive-reservation-fields input[type="email"],
.tdive-reservation-fields input[type="tel"],
.tdive-reservation-fields input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 0;
    border: 0px solid #d4d4d4;
    background: #fafafa;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border-left: 3px solid #15499a;
}

.tdive-reservation-fields input::placeholder {
    color: #9b9b9b;
    font-size: 13px;
}

.tdive-reservation-fields input:focus {
    outline: none;
    border-color: #15499a;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(21, 73, 154, 0.12);
}


@media (max-width: 600px) {
    .tdive-reservation-fields {
        grid-template-columns: 1fr;
    }
}