/* Shop Solution Parking Styles */

/* Styles pour le sélecteur de catégories */
.ssp-category-filter {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.ssp-category-dropdown {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

/* Style pour le champ nom du staff */
.ssp-staff-name-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.ssp-staff-name-container .ssp-form-field {
    width: 100%;
}

.ssp-staff-name-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ssp-staff-name-container input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-no-products-message {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

/* Styles pour le produit personnalisé */
.ssp-custom-product-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f7ff;
    border: 1px solid #d5e5ff;
    border-radius: 4px;
}

.ssp-custom-product {
    padding: 10px;
}

.ssp-custom-product h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d5e5ff;
    color: #2c5282;
}

.ssp-custom-product-field {
    margin-bottom: 15px;
}

.ssp-custom-product-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ssp-custom-product-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d5e5ff;
    border-radius: 4px;
}

.ssp-add-custom-product {
    background-color: #4d7fd1;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.ssp-add-custom-product:hover {
    background-color: #3b6cb3;
}

@media (min-width: 768px) {
    .ssp-custom-product {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
    }
    
    .ssp-custom-product h3 {
        width: 100%;
    }
    
    .ssp-custom-product-field {
        flex: 1;
        margin-right: 15px;
        min-width: 150px;
    }
    
    .ssp-add-custom-product {
        width: auto;
        margin-bottom: 15px;
    }
}

.ssp-form-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.ssp-product-list {
    margin-bottom: 20px;
}

.ssp-product-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-product-image {
    width: 120px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssp-product-image img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.ssp-product-info {
    flex: 1;
}

.ssp-product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ssp-product-price {
    color: #77a464;
    font-weight: bold;
    margin-bottom: 5px;
}

.ssp-product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ssp-product-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.ssp-variations {
    margin-right: 15px;
    margin-bottom: 10px;
    flex: 1;
}

.ssp-variation-select {
    margin-bottom: 5px;
}

.ssp-variation-select label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.ssp-variation-dropdown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-variation-price {
    font-weight: bold;
    color: #77a464;
    margin-top: 5px;
}

.ssp-quantity {
    margin-right: 15px;
    margin-bottom: 10px;
}

.ssp-quantity label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.ssp-quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-add-to-cart {
    background-color: #77a464;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.ssp-add-to-cart:hover {
    background-color: #6b9553;
}

.ssp-add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ssp-checkout-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ssp-cart-content {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-checkout-options {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-cart-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.ssp-cart-items {
    margin-bottom: 15px;
}

.ssp-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ssp-cart-item-name {
    flex: 2;
}

.ssp-cart-item-quantity {
    flex: 1;
    text-align: center;
}

.ssp-cart-item-price {
    flex: 1;
    text-align: right;
}

.ssp-cart-item-actions {
    margin-left: 10px;
    width: 30px;
    text-align: center;
}

.ssp-remove-item {
    background: #f44336;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 22px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.ssp-remove-item:hover {
    background-color: #d32f2f;
    transform: scale(1.1);
}

.ssp-remove-item:active {
    transform: scale(0.95);
}

.ssp-remove-item:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ssp-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-top: 10px;
}

.ssp-checkout-button {
    display: block;
    width: 100%;
    background-color: #77a464;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
}

.ssp-checkout-button:hover {
    background-color: #6b9553;
}

.ssp-payment-options {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ssp-payment-options h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.ssp-payment-option {
    margin-bottom: 8px;
}

.ssp-payment-option label {
    margin-left: 5px;
    cursor: pointer;
}

.ssp-checkout-actions {
    display: flex;
    flex-direction: column;
}

.ssp-initially-hidden {
    display: none;
}

.ssp-customer-details {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ssp-customer-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* Style pour le sélecteur de type de client */
#ssp-customer-type {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Espacement entre les sections */
#ssp-individual-fields,
#ssp-company-fields {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Animation de transition */
#ssp-individual-fields,
#ssp-company-fields {
    transition: all 0.3s ease;
}

/* Assurez-vous que display:none fonctionne correctement */
#ssp-company-fields.hidden,
#ssp-individual-fields.hidden {
    display: none !important;
}

.ssp-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.ssp-form-field {
    flex: 1;
    min-width: 150px;
    margin-right: 15px;
}

.ssp-form-field:last-child {
    margin-right: 0;
}

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

.ssp-form-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ssp-form-field input.ssp-error-field {
    border-color: #a94442;
    background-color: #fff8f8;
}

.ssp-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.ssp-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.ssp-error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ssp-product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ssp-product-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .ssp-product-image img {
        max-width: 120px;
        max-height: 120px;
    }
    
    .ssp-product-actions {
        flex-direction: column;
    }
    
    .ssp-variations, .ssp-quantity {
        width: 100%;
        margin-right: 0;
    }
    
    .ssp-add-to-cart {
        width: 100%;
        margin-top: 10px;
    }
}