/* Réinitialisation et styles de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Styles pour le formulaire */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.form-table td {
    padding: 10px;
    vertical-align: middle;
}

.form-table label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-table select,
.form-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styles pour le résultat */
#result {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: none;
}

.result-buttons {
    text-align: center;
    margin-top: 20px;
}

/* Styles pour les boutons */
button {
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
}

button:hover {
    background: #45a049;
}

#another-sail-button {
    background: #2196F3;
}

#another-sail-button:hover {
    background: #0b7dda;
}

#order-button {
    background: #FF9800;
}

#order-button:hover {
    background: #e68a00;
}

#ask-quote-button {
    background: #9C27B0;
}

#ask-quote-button:hover {
    background: #7b1fa2;
}

button.cancel {
    background: #f44336;
}

button.cancel:hover {
    background: #d32f2f;
}

/* Styles pour le formulaire de devis */
#quote-form-container {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

#quote-form-container table {
    width: 100%;
    border-collapse: collapse;
}

#quote-form-container td {
    padding: 8px;
}

#quote-form-container input,
#quote-form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Styles pour les messages */
.success-message,
.error-message {
    padding: 10px;
    text-align: center;
    margin: 10px 0;
    border-radius: 4px;
}

.success-message {
    background: #4CAF50;
    color: white;
}

.error-message {
    background: #f44336;
    color: white;
}

#productPrices {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    font-size: 20px;
    font-weight: bold;
    text-align: center;

    margin: 20px 0;
}

/* -----------------------------
   Panier - taille texte
----------------------------- */

#cartContentsDisplay td {
    font-size: 12px !important;
    line-height: 1.4;
}

/* Nom produit */
#cartContentsDisplay .cartProductDisplay,
#cartContentsDisplay .cartProductDisplay a {
    font-size: 12px !important;
    font-weight: normal !important;
}

/* Prix unitaire */
#cartContentsDisplay .cartUnitDisplay {
    font-size: 12px !important;
    font-weight: normal !important;
}

/* Total ligne */
#cartContentsDisplay .cartTotalDisplay {
    font-size: 12px !important;
    font-weight: normal !important;
}

#cartContentsDisplay strong {
    font-size: 12px !important;
    font-weight: normal !important;
}

.sail-description{
    margin-top:20px;
    padding:15px;
    border:1px solid #ddd;
    background:#f8f8f8;
    line-height:1.5;
    font-size:14px;
}

.sail-description ul {
    margin-left: 25px;
    padding-left: 20px;
    list-style-type: disc;
}

.sail-description li {
    margin-bottom: 8px;
}

.select2-container {
    width: 100% !important;
}

.select2-selection {
    min-height: 38px;
}

.sail-result-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sail-result-text {
    flex: 1;
}

.sail-result-text p strong {
    display: inline-block;
    min-width: 110px;
}

.sail-result-image img {
    max-width: 320px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}

.sail-result-image {
    flex-shrink: 0;
}

.sail-result-image img {
    transition: transform 0.2s ease;
}

.sail-result-image img:hover {
    transform: scale(1.06);
}

.result-notice {
    margin: 0 0 15px 0;
    padding: 10px;
    /*background: #eef7ff;
    border-left: 4px solid #2196F3;*/
    font-size: 12px;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {

    .sail-result-wrapper {
        flex-direction: column;
    }

    .sail-result-image {
        text-align: center;
        margin-top: 15px;
    }

    .sail-result-image img {
        max-width: 100%;
    }
}
/* style pour la recherche du bateau */
.boat-highlight {
    color: #d40000;
    font-weight: bold;
}

.boat-item {
    padding: 6px 10px;
    cursor: pointer;
}

.boat-item:hover {
    background: #f0f0f0;
}

#boat-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: white;
    border: 1px solid #ccc;

    max-height: 300px;
    overflow-y: auto;

    z-index: 9999;
    display: none;
}


	
	#boat-search-container {
    position: relative;
    width: 100%;
}

#boat-search {
    width: 100%;
    box-sizing: border-box;
}

#boat-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: white;
    border: 1px solid #999;

    z-index: 99999;

    max-height: 300px;
    overflow-y: auto;

    display: none;
}

.boat-item {
    display: block;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.boat-item:hover {
    background: #f0f0f0;
}

.boat-highlight {
    color: red;
    font-weight: bold;
}