.upc-product-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.upc-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
}

.upc-product-header {
    padding: 15px 30px;
    background: #003171;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    color: #dce8b9;
    font-size: 35px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h2.upcaf-product-title {
    font-weight: 100;
    margin: 0;
    font-size: 35px;
    font-family: 'Teachers';
}

.upc-product-title {
    margin: 0 0 1rem;
    color: #2d3748;
    font-size: 1.8em;
    line-height: 1.3;
}

.upc-product-price {
    font-size: 1.5em;
    color: #48bb78;
    font-weight: 600;
    padding: 0.5rem 1rem;
    display: inline-block;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 8px;
}

.upc-product-price .upc-no-price {
    color: #e53e3e;
    font-size: 0.9em;
    font-weight: normal;
}

.upc-section {
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0px;
    overflow: hidden;
    font-size: 15px;
}
.upc-section-title + div:not(.quantity) {
    padding: 15px 20px;
}
span.upc-step-number {
    display: none;
}
.upc-section-title:before {
    content: " ";
    display: inline-block;
    width: 15px;
    height: 15px;
    align-self: auto;
    margin-right: 5px;
    background: #dde8b9;
    border-radius: 100%;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.upc-section-title {
    margin: 0 auto;
    padding: 0;
    background: #003171;
    border-bottom: 0;
    color: #dde8b9;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    display: none;
}
.upc-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
}

.upc-field {
    margin-bottom: 1rem;
}

.upc-submit {
    background: #bc002d;
    color: #dde8b9;
    width: 100%;
    padding: 15px;
    font-size: 19px;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.6s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    opacity: 1;
    font-family: 'Teachers';
}

.upc-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #003171;
    font-family: 'Teachers';
}
.upc-custom-fields-content > div.text2 + .upc-field:not(.text2) {
    margin-top: 1em;
}

.quantity.upc-quantity-wrapper label {
    margin: 0;
    display: block;
    font-weight: 600;
    color: #003171;
    font-family: 'Teachers';
}
.upc-field input[type="text"],
.upc-field input[type="number"],
.upc-field select,
.upc-field input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8fafc;
}

.upc-field input[type="text"]:focus,
.upc-field input[type="number"]:focus,
.upc-field select:focus,
.upc-field input[type="file"]:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.upc-option {
    display: flex !important;
    align-self: center;
    align-items: center;
}
.upc-custom-fields-content > div:last-child {
    margin-bottom: 0;
}
.upc-multiplied-fields .upc-multiplied-field {
    margin-bottom: 1rem;
}

.upc-submit {
    background: #bc002d;
    color: #dde8b9;
    width: 100%;
    padding: 15px;
    font-size: 19px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.6s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    opacity: 1;
    font-family: 'Teachers';
}

.upc-submit:hover {
    background: #dde8b9;
    color: #bc002d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.upc-product-card.loading {
    position: relative;
    pointer-events: none;
}

.upc-product-card.loading .upc-variations-section,
.upc-product-card.loading .upc-quantity-section {
    position: relative;
    pointer-events: auto;
}

.upc-product-card.loading .upc-variations-section select,
.upc-product-card.loading .upc-quantity-section input[type="number"] {
    pointer-events: auto;
    opacity: 1;
}

.upc-product-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.upc-custom-fields-content .upc-loader-overlay {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 50px;
    z-index: 11;
}
.upc-custom-fields-admin {
    display: block;
    margin-top: 5px;
    padding-left: 20px;
}
.upc-loader-overlay .loader::before {content:none}

.upc-custom-fields-content .upc-loader-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upc-custom-fields-content .upc-loader-overlay .loader {
    width: 40px;
    height: 40px;
    border: 5px solid #48bb78;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Nouveau style pour le spinner du formulaire */
.upc-form-loader-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 11;
    align-items: center;
    justify-content: center;
}

.upc-product-card.loading .upc-form-loader-overlay {
    display: flex;
}

.upc-form-loader-overlay .loader {
    width: 50px;
    height: 50px;
    border: 6px solid #48bb78;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.upc-field input.error,
.upc-field select.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

ul.wc-item-meta p {
    color: white;
}

.wc-block-order-confirmation-totals table .wc-block-order-confirmation-totals__note, 
.wc-block-order-confirmation-totals table .wc-block-order-confirmation-totals__total {
    color: white;
}
.upc-spinner {
    text-align: center;
    font-style: italic;
    color: #666;
}
.upc-submit.loading .loader {
    display: inline;
}
.upc-submit .loader {
    display: none;
}
.upc-field select, .upc-field input[type="text"], .upc-field input[type="number"] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.quantity {
    display: block;
    min-height: 40px;
}
.upc-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}
.upc-quantity-btn {
    background: #dde8b9;
    color: #003171;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 900;
}
.upc-quantity-btn:hover {
    background: #38a169;
}
.upc-quantity-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5);
}
.upc-product-price .woocommerce-variation-price {
    margin-top: 5px;
}
.quantity.upc-quantity-wrapper input {
    margin: 0 15px;
}
form.cart.upc-cart-form {
    margin-bottom: 0;
}
.wp-block-group>.upc-product-form-wrapper {
    max-width: 100%!important;
    width: 100%;
    margin: 0 auto!important;
    position: sticky;
    top: 70px;
}
.variations > .upc-field {
    max-width: 45%;
    width: 100%;
}
.variations {
    display: flex;
    justify-content: space-between;
}
.variations > .upc-field {
    max-width: 45%;
    width: 100%;
    margin-bottom: 10px;
}
.upc-section.upc-quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.upc-section.upc-quantity-section > h3 {
    display: none;
}
.upc-quantity-wrapper {
    display: flex !important;
}
.upc-display-price {
    color: white;
    font-family: 'Teachers';
}
.upc-display-price small {
    font-size: 12px;
}
.upc-custom-fields-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.upc-custom-fields-content > div {
    min-width: 100%;
}
.upc-custom-fields-content > div.date, .upc-custom-fields-content > div.heure {
    min-width: 30%;
    flex-basis: 30%;
    align-self: end;
}
.upc-custom-fields-content > div.text2 {
    min-width: 48%;
    flex-basis: 48%;
    align-self: end;
    margin-bottom: 0;
}
label.upc-option input {
    border-color: #003171;
}
.wp-block-group.contactguide.cntexp.emptydiv {
    margin: 0;
    padding: 0;
}
.upc-display-price br {
    display: none;
}
.upc-display-price small {
    display: block;
}
.clicsldprix  p.reservcta {
    margin: 0 auto 0px;
    background: #bc002d;
    color: #dde8b9;
    padding: 7px 10px;
    border-radius: 4px;
    text-align: center !important;
    display: inline-block !important;
    position: absolute;
    right: 0;
    top: 50%;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(-50%);
    cursor: pointer;
}
.wp-block-group.doublesprix.popin {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    z-index: 999999;
    background: rgba(255,255,255,0.7);
    padding: 10vh;
}
p.closingpopinbuy {
    position: absolute;
    top: 25px;
    right: 35px;
    cursor: pointer;
    z-index: 1;
}
.closingpopinbuy svg {
    width: 50px;
    height: 50px;
    transition: all ease 1000ms;
}
p.closingpopinbuy:hover svg {
    transform: rotate(180deg);
    fill:#dde8b9
}
.upc-field.choix {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.upc-field.choix > label:not(.upc-option) {
    flex-basis: 100%;
}
.upc-option {
    margin-right: 10px;
}
.upc-field > .upc-multiplied-field:not(:first-child) {
    margin-top: 15px;
}
.upc-product-form-wrapper[data-product-id="4880"] .upc-quantity-section, .upc-product-form-wrapper[data-product-id="4874"] .upc-quantity-section {
    display: none !important;
}
.upc-day-price {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #555;
    margin-top: -13px;
}
.upc-day-price.high-season { 
    color: #e44; 
}
@media (max-width: 768px) {
    .upc-product-card {
        margin: 0;
        border-radius: 8px;
    }
    .upc-product-header {
        flex-direction: column;
    }
    .upc-product-form-wrapper {
        max-width: 100% !important;
    }
    .upc-field {
        margin-bottom: 15px;
    }
    .upc-section {
        margin: 15px 15px;
    }
}
.upc-form-loader-overlay, .upc-form-loader-overlay * {font-size:0!important}
.upc-cart-form label.upc-option {
    align-items: center;
    display: flex;
}
.upc-cart-form input.upc-custom-field {
    border: 2px solid #003171;
}