
/* CLEANED WITH CLAUDE */

@media (min-width: 1201px) {
    #order_review,
    #payment {
        width: 51%;
        float: right;
    }
    #customer_details_notes {
        width: 45%;
        float: left;
        position: absolute;
    }
}
#order_review,
#payment,
#notes,
#customer_details {
    margin-top: 70px;
    background: #121727;
    border-radius: 10px;
}

#order_review table,
#payment :is(ul, .woocommerce-terms-and-conditions-wrapper),
#notes .woocommerce-additional-fields__field-wrapper,
#customer_details :is(.woocommerce-billing-fields__field-wrapper, #ship-to-different-address, .shipping_address) {
    padding: 10px 20px 20px;
}

h1 {
    color: var(--orange) !important;
    margin-bottom: 100px;
}
@media (max-width: 767px) {
    h1 {
        font-size: 50px;
    }
}

h2 {
    color: var(--orange) !important;
    font-weight: normal !important;
    padding: 10px 0 10px 20px;
    background: #1a2033;
    margin-block: 0 !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #393939;
}
.woocommerce-shipping-fields h2 {
    background: transparent;
    margin-block: 60px 0;
}


.woocommerce-NoticeGroup .woocommerce-error a {
    color: #b81c23;
    font-weight: bold;
}
.woocommerce-NoticeGroup .woocommerce-error a:hover {
    color: var(--orange);
}
.woocommerce .refresh-button {
  color: white;
  background: var(--sapin);
  padding: 10px 15px;
  margin-top: 50px;
  border: 1px solid var(--granny);
}
.woocommerce .refresh-button:hover {
  color: black;
  background: var(--granny);
}
.woocommerce .refresh-button:active:hover {
  border: 2px solid white;
}

/* Montant */
.woocommerce .checkout-unrespected-rules {
	margin: 90px 5vw 0;
}
.woocommerce .checkout-unrespected-rules .woocommerce-shipping-totals {
    display: none !important;
}
.woocommerce .checkout-unrespected-rules #order_review {
	float: left;
}
.woocommerce table.shop_table .blockUI.blockOverlay {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.18) !important;
}
.woocommerce table.shop_table {
    margin: 0 auto;
}
.woocommerce table.shop_table :is(th, td) {
    border-bottom: none;
}
.woocommerce table.shop_table thead th {
    border-top: none;
    border-block-start: none !important;
}
.woocommerce table.shop_table tbody tr:first-child :is(th, td) {
    border-top-color: var(--orange);
}
.woocommerce table.shop_table tfoot tr:not(:last-child) :is(th, td) {
    border-top-color: var(--bleu);
}
.woocommerce table.shop_table tfoot tr:is(.order-total, .order_total) :is(th, td) {
    border-top-color: var(--orange);
}

.woocommerce table.shop_table :is(th, td):first-child {
    border-left: none;
    border-right: none;
}
.woocommerce table.shop_table :is(th, td):last-child {
    border-right: none;
}

.woocommerce table.shop_table thead :is(th, td) {
    text-transform: uppercase;
    font-size: 120%;
}
.woocommerce table.shop_table :is(th, td):first-child {
    text-align: right;
    padding-right: 20px;
}
.woocommerce table.shop_table .product-name {
    min-width: 275px;
}
.woocommerce table.shop_table .quantity-currency {
    color: #9BE301;
}
.woocommerce table.shop_table tbody :is(th, td):last-child bdi {
    font-weight: normal;
    color: var(--orange);
}
.woocommerce table.shop_table :is(th, td):last-child {
    padding-left: 20px;
}
.woocommerce table.shop_table tfoot tr:is(.order-total, .order_total) :is(th, td) {
    color: var(--orange);
    text-transform: uppercase;
    font-size: 120%;
}

.shipping-notes {
    visibility: hidden;
}
.woocommerce-shipping-methods:has(:checked) + .shipping-notes {
    visibility: visible;
}
.currency-available-day,
.currency-fermetures {
    font-style: italic;
    font-weight: 100;
    font-size: 11px;
    padding-left: 20px;
    line-height: 1.5;
}
.currency-available-day,
.currency-fermetures:not(.always-displayed) {
    display: none;
}
.currency-available-day {
    color: var(--orange);
}
.currency-fermetures {
    color: red;
}
#shipping_method .shipping_method:checked ~ :is(.currency-available-day, .currency-fermetures) {
    display: block;
}
#shipping_method .cnc-shipping img {
    width: 20px;
}

/* retrait en agence */
.shipping-notes .pickup-agency {
    visibility: hidden;
}
.woocommerce-shipping-methods:has(
    #shipping_method_0_local_pickup2:checked,
    #shipping_method_0_local_pickup3:checked,
    #shipping_method_0_local_pickup4:checked
) + .shipping-notes .pickup-agency {
    visibility: visible;
}
/* click'n'collect */
.shipping-notes .pickup-cnc {
    display: none;
}
.woocommerce-shipping-methods:has(#shipping_method_0_local_pickup8:checked) + .shipping-notes .pickup-cnc {
    display: block;
}
/* expédition valeur déclarée */
.shipping-notes .get-home {
    display: none;
}
.woocommerce-shipping-methods:has(#shipping_method_0_flat_rate1:checked) + .shipping-notes .get-home {
    display: block;
}

.woocommerce ul#shipping_method li {
    margin: 0 0 1em;
}
#shipping_method input {
    margin: 6px 6px 0 0 !important;
    height: 10px;
    accent-color: var(--orange);
}
.woocommerce-shipping-methods :is(.free-shipping, .cnc-shipping, .payable-shipping, .no-shipping) {
    display: inline-block;
    margin: 2px 0 0 10px;
    font-weight: normal;
    font-size: 12px;
    border-radius: 3px;
    height: 15px;
    line-height: 1.4;
}
.woocommerce-shipping-methods :is(.free-shipping, .payable-shipping, .no-shipping) > span {
    padding: 0px 3px;
}
.woocommerce-shipping-methods .payable-shipping {
    color: var(--fonce);
    background: var(--orange);
}
.woocommerce-shipping-methods .free-shipping {
    background: var(--sapin);
    color: white;
}
.woocommerce-shipping-methods .no-shipping {
    background: #400;
    color: #bbb;
}
.woocommerce-checkout-review-order img {
    margin-left: 10px;
    vertical-align: middle;
}
.woocommerce-checkout-review-order .product-total img {
    transform: translateY(-3px);
}
.woocommerce-shipping-methods .no-cnc-method {
    color: var(--e-a-color-txt-muted);
}
.woocommerce-shipping-methods .no-cnc-method img {
    filter: saturate(0);
}
.woocommerce-shipping-methods .no-cnc-method a {
    margin: 20px 0 0 20px;
    padding: 5px 8px;
    color: var(--e-a-color-txt-muted);
    border: 1px solid var(--e-a-color-txt-muted);
    font-size: 12px;
}
.woocommerce-shipping-methods .no-cnc-method a:hover {
    color: var(--orange);
}
.woocommerce-shipping-methods .cnc-alert {
    margin: 10px 0 10px 20px;
}
.woocommerce .cnc-alert {
    font-size: 12px;
    color: #f00a;
}


/* Expédition */
/*
.woocommerce table.shop_table tfoot
tr:nth-child(2) :is(th, td) {
    padding: 25px 20px;
}
.woocommerce table.shop_table tfoot
tr:nth-child(2) td:last-child {
    background: #64646442;
}
*/


/* Expedition notes */
.shipping-notes {
    margin-top: 35px;
    border-top: 1px dotted var(--gris);
    padding-top: 10px;
    font-style: italic;
    font-weight: normal;
    font-size: 75%;
    line-height: 1.5;

}
.shipping-notes .pickup-cnc,
.shipping-notes .get-home {
    position: absolute;
}
.shipping-notes .pickup-impossible {
    cursor: pointer;
    pointer-events: auto;
    font-style: normal;
    font-size: 15px;
}
.shipping-notes .pickup-another {
    display: none;
}
.shipping-notes .pickup-agency a {
    color: var(--cyan) !important;
    font-weight: bold !important;
}
.shipping-notes .pickup-agency a:hover {
    color: var(--orange);
}


/* Coordonnées */

/* No Expedition address if method not selected
#order_review:has(#shipping_method li:not(:last-child) input:checked) + #customer_details .customer-shipping {
    display: none;
}
*/

input,
textarea {
    background: transparent;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--fonce) !important;
}
input:focus {
    color: white;
    border: 2px solid var(--jaune) !important;
}
input:not(:focus):hover {
    border: 2px solid #999 !important;
}
li {
    background: transparent;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  color: var(--fonce);
}
.select2-selection.select2-selection--single:not(:disabled) {
  background: white !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
  background: grey !important;
}
.select2-container {
  border: 2px solid white !important;
  background: white !important;
}
.select2-container--default.select2-container--disabled {
  border: 2px solid grey !important;
  background: grey !important;
}
.select2-container:not(:focus):hover,
.select2-search__field {
    border: 2px solid #999 !important;
}
.select2-container:focus {
    border: 2px solid var(--jaune) !important;
}
.select2-dropdown--below {
    margin-left: -2px;
}
.select2-search__field {
    color: #999 !important;
}
.select2-container .select2-selection {
    border-radius: 0 !important;
}

.woocommerce .woocommerce-form__label-for-checkbox {
    color: white;
}
#customer_details_notes #billing_first_name_field::after {
    white-space: nowrap;
    font-style: italic;
    font-size: 12px;
    padding: 7px 0;
}
#customer_details #billing_email_field {
  display: none;
}
#order_review:has(#shipping_method_0_flat_rate1:not(:checked)) ~ #customer_details_notes #billing_first_name_field::after {
    content: "NOM et Prénom de la personne physique qui viendra retirer les devises à notre guichet";
}
#order_review:has(#shipping_method_0_flat_rate1:checked) ~ #customer_details_notes #billing_first_name_field::after {
    content: "NOM et Prénom de la personne destinatrice des devises prochainement expédiées par nos soins";
}


/* Notes */
#order_comments {
    height: 12em;
}
#order_comments:hover {
    border-color: white;
}
#order_comments:focus {
    border-color: var(--orange);
    color: white;
}
#notes label {
    display: none;
}
#notes .woocommerce-additional-fields__field-wrapper {
    padding-top: 30px;
}


/* Paiement */
.woocommerce-checkout #payment {
    background: #121727;
}
#add_payment_method #payment, .woocommerce-cart #payment {
    background: transparent;
}
#payment .blockUI.blockOverlay {
    border-radius: 10px;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.18) !important;
}
#payment .payment_methods:has(.woocommerce-no-available-payment-methods-message) {
    display: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
    margin-top: 5px;
}
.woocommerce-checkout #payment .payment_methods label {
    color: white;
}
.woocommerce-checkout #payment div.payment_box {
    color: var(--gris);
    background: var(--nuit);
    border: 2px solid var(--gris);
    border-radius: 0 0 50px 20px;
}
#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    border: 9px solid var(--bleu);
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
    margin: -19px 0 0 28px;
}
.woocommerce-checkout #payment .payment-method-disabled .payment_box {
    filter: saturate(0) brightness(0.8);
}
.woocommerce-checkout #payment .payment-method-disabled label {
    color: #9B9B9B;
}
.woocommerce-checkout #payment .payment-method-disabled img {
    filter: saturate(0) brightness(0.5);
}
.woocommerce-checkout #payment .changedunord-rib {
    margin-bottom: 0 !important;
}
.woocommerce #payment #place_order {
    background-color: var(--orange);
}
.woocommerce #payment #place_order:hover {
    background-color: var(--jaune);
}
.woocommerce #payment #place_order:active:hover {
    border: 2px solid white;
}
.woocommerce #payment #no_place_order {
    background-color: grey;
    pointer-events: none;
}
.woocommerce #payment #place_order,
.woocommerce #payment #no_place_order {
    color: var(--nuit);
    font-size: 22px;
    padding: 20px 30px;
    text-transform: uppercase;
    border-radius: 10px;
}
.woocommerce-terms-and-conditions-wrapper {
    display: flex;
    flex-direction: column;
}
.woocommerce-terms-and-conditions {
    order: 99;
    max-height: 300px !important;
    border: 1px solid var(--nuit);
}
.woocommerce-privacy-policy-text {
    margin-top: 50px;
}

/* Confirmation de commande */
.woocommerce-error {
    padding: 15px 30px 15px 50px !important;
    background: #c40e0e !important;
    border-right: 2px solid white !important;
    border-bottom: 2px solid white !important;
    border-left: 2px solid white !important;
    border-radius: 0 0 10px 10px !important;
    color: white !important;
    font-size: 15px !important;
    line-height: 17px !important;
    margin: 0 20% 0 0 !important;
}
.woocommerce-error a {
	  color: var(--orange) !important;
}
.woocommerce-error a:hover {
	  color: var(--jaune) !important;
}
.woocommerce-error:before {
    color: var(--orange) !important;
}
.woocommerce-thankyou-order-received {
    font-size: 28px;
    color: var(--jaune);
    margin: 100px 0 30px;
}
.woocommerce-order-details {
    max-width: 768px;
    margin: 70px auto 0;
}
body.woocommerce-account .woocommerce-order-details {
    margin: 70px 0 0;
}
.woocommerce-customer-details {
    margin-top: 100px;
}

/* Order details */
.woocommerce-order-received h2 {
    color: var(--jaune);
}

/* Thank you page */
.woocommerce-thankyou-order-received {
    color: var(--orange);
    font-size: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}
