/* ===================================================================
  BASE
=================================================================== */

/* ----- Global ----- */
.wg-form-checkout-main,
.wg-woo-checkout {
	box-sizing: border-box;
	width: 100%;
}

.wg-woo-checkout-body {
	width: 100%;
}

.wg-woo-checkout-before-form-wrapper {
	width: 100%;
}

/* ===================================================================
  FORM CHECKOUT
=================================================================== */

/* ----- Global ----- */
.wg-form-checkout-toggle {
	max-width: 100% !important;
	width: 100%;
}

.wg-form-checkout-main,
.wg-form-checkout {
	max-width: 100% !important;
	padding: 6px 10px;
	width: 100%;
}

.wg-form-checkout {
	background-color: #fff;
	border-radius: 10px;
}

/* ===================================================================
  FORM CHECKOUT > FORM
=================================================================== */

.wg-woo-billing-fields,
.wg-woo-shipping-fields {
	width: 100%;
}

.wg-woo-billing-fields .woocommerce-billing-fields__field-wrapper,
.wg-woo-shipping-fields .woocommerce-shipping-fields__field-wrapper {
	padding: 6px 12px;
}

.wg-woo-billing-fields .form-row,
.wg-woo-shipping-fields .form-row {
	margin: 6px 0;
}

.wg-woo-billing-fields .form-row:first-of-type,
.wg-woo-shipping-fields .form-row:first-of-type {
	margin-top: 0;
}

.wg-woo-billing-fields .form-row:last-of-type,
.wg-woo-shipping-fields .form-row:last-of-type {
	margin-bottom: 0;
}

.wg-woo-shipping-fields {
	margin-top: 0 !important;
}

.wg-woo-account-fields {
	border: 2px dotted #ff6f00;
	margin: 6px 0;
	padding: 6px 12px;
	width: 100%;
}

.wg-form-checkout-col {
	margin: 10px 0;
}

.wg-form-checkout-col:first-of-type {
	margin-top: 0;
}

.wg-form-checkout-col:last-of-type {
	margin-bottom: 0;
}

.wg-woo-title-checkout-label .woocommerce-form__label-for-checkbox {
	align-items: center !important;
}

.wg-woo-additional-fields {
	padding: 6px 12px;
	width: 100%;
}

.wg-woo-additional-fields textarea {
	height: min-content !important;
	min-height: 200px;
	overflow: hidden;
	resize: none;
}

@media (min-width: 1200px) {
	.wg-woo-additional-fields textarea {
		height: min-content !important;
		min-height: min-content;
	}
}

#ship-to-different-address label {
	color: #ff6f00 !important;
}

/* ===================================================================
  FORM CHECKOUT > LOGIN & COUPON
=================================================================== */

/* ----- Message ----- */
.wg-form-checkout-message {
	color: #d63638;
	font-size: 1rem;
	font-style: 600;
	margin-bottom: 20px !important;
	padding: 4px;
	text-align: justify;
	width: 100%;
}

@media (min-width: 1200px) {
	.wg-form-checkout-message {
		text-align: center;
	}
}

/* ===================================================================
  FORM CHECKOUT > COUPON
=================================================================== */
/* ----- Form ----- */
.wigi-checkout-coupon-row {
	align-items: center;
	display: flex;
	flex-direction: column !important;
	flex-wrap: wrap !important;
	gap: 10px;
	width: 100%;
}

.wigi-checkout-coupon-row > * {
	flex: 1;
}

.wigi-checkout-coupon-row > input {
	max-width: 100% !important;
}

@media (min-width: 1200px) {
	.wigi-checkout-coupon-row {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 0;
	}

	.wigi-checkout-coupon-row > * {
		flex: 1;
	}

	.wigi-checkout-coupon-row > button {
		max-width: 200px !important;
	}
}

/* ===================================================================
  REVIEW ORDER
=================================================================== */

/* ----- Main ----- */
.wg-woo-checkout-review-order {
	box-sizing: border-box;
	width: 100%;
}

/* ----- Item ----- */
.wg-woo-review-order-card {
	background-color: #fff;
	box-sizing: border-box;
	margin: 12px 0;
	width: 100%;
}

.wg-woo-review-order-card:first-of-type {
	margin-top: 0;
}

.wg-woo-review-order-card:last-of-type {
	margin-bottom: 0;
}

/* ----- Item > Separator ----- */
.wg-woo-separator {
	border-bottom: 2px dotted #000;
}

/* ----- Item > Group - Base ----- */
.wg-woo-review-order-card-group {
	display: flex;
	padding: 0 10px;
	width: 100%;
}

.wg-woo-review-order-card-group > * {
	padding: 10px;
}

/* ----- Item > Group - Row ----- */
.wg-woo-review-order-card-group.group--row {
	align-items: center;
	flex-direction: column;
}

/* ----- Item > Group - Col ----- */
.wg-woo-review-order-card-group.group--col {
	flex-direction: column;
}

/* ----- Item > Group - Mobile ----- */
.wg-woo-review-order-card-group.row--mobile,
.wg-woo-review-order-card-group.col--mobile {
	gap: 5px;
}

/* ----- Item > Group - Responsive ----- */
@media (min-width: 1200px) {
	.wg-woo-review-order-card-group.group--row {
		align-items: none;
		flex-direction: row;
	}

	.wg-woo-review-order-card-group.group--row.row--mobile {
		gap: 0;
	}

	.wg-woo-review-order-card-group.group--row.row--between {
		justify-content: space-between;
		padding: 0 10px;
	}
}

/* ----- Item > Label & Value ----- */
.wg-woo-review-order-label {
	color: #555;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.wg-woo-review-order-value {
	color: #222;
	font-weight: 500;
}

/* ----- Item > Amount ----- */
.wg-woo-review-order-amount {
	display: flex;
	font-size: 1rem;
	justify-content: space-between;
	width: 100%;
}

.wg-woo-review-order-amount > * {
	text-transform: none;
}

/* ----- Item > Product list  ----- */
.wg-woo-review-order-product-list {
	box-sizing: border-box;
	width: 100%;
}

.wg-woo-review-order-product-list-content {
	margin: 6px 0;
	width: 100%;
}

.wg-woo-review-order-product-list-item {
	margin: 6px 0;
	padding: 6px 12px;
}

.wg-woo-review-order-product-list-item:first-of-type {
	margin-top: 0;
}

.wg-woo-review-order-product-list-item:last-of-type {
	margin-bottom: 0;
}

.wg-woo-review-order-product-name {
	color: #ff6f00;
	font-size: 1rem;
	font-weight: 600;
}

.wg-woo-review-order-product-quantity {
	font-size: 0.85rem;
	font-weight: 500;
}

.wg-woo-review-order-product-subtotal {
	color: #4caf50;
	font-size: 0.85rem;
	font-style: oblique;
	font-weight: 500;
}

.wg-woo-review-order-product-list-subtotal {
	display: flex;
	font-size: 1rem;
	justify-content: space-between;
	width: 100%;
}

.wg-woo-review-order-product-list-subtotal > * {
	text-transform: none;
}

/* ----- Item > Coupons ----- */
.wg-woo-review-order-coupons {
	box-sizing: border-box;
	width: 100%;
}

.wg-woo-review-order-coupons-amount {
	display: flex;
	font-size: 1rem;
	justify-content: space-between;
	width: 100%;
}

.wg-woo-review-order-coupons-amount > * {
	text-transform: none;
}

.wg-woo-review-order-coupons-content {
	margin: 6px 0;
	width: 100%;
}

/* ---- */
.wg-woo-review-order-coupons-item {
	margin: 6px 0;
	padding: 6px 12px;
}

.wg-woo-review-order-coupons-item:first-of-type {
	margin-top: 0;
}

.wg-woo-review-order-coupons-item:last-of-type {
	margin-bottom: 0;
}

/* ----- Item > Shipping  ----- */
.wg-woo-review-order-shipping {
	box-sizing: border-box;
	width: 100%;
}

/* ----- Item > Fees  ----- */
.wg-woo-review-order-fees {
	box-sizing: border-box;
	width: 100%;
}

.wg-woo-review-order-fees-list {
	display: flex;
	font-size: 1rem;
	justify-content: space-between;
	width: 100%;
}

/* ----- Item > Totals ----- */
.wg-woo-review-order-totals {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
}

.wg-woo-review-order-totals-ttc,
.wg-woo-review-order-totals-tax {
	display: flex;
	justify-content: space-between;
}

.wg-woo-review-order-totals-ttc > * {
	font-size: 1rem;
	font-weight: 700;
}

.wg-woo-review-order-totals-ttc > *,
.wg-woo-review-order-totals-tax > * {
	text-transform: none;
}

.wg-woo-review-order-totals-ttc > .wg-woo-review-order-value {
	color: #4caf50;
}

.wg-woo-review-order-totals-tax {
	padding: 0 20px;
}

/* ---------------------------------------------- */

/* ----- Item > Go to Checkout ----- */
.wg-woo-review-order-go-checkout {
	align-items: center;
	display: flex;
	padding: 5px 10px;
}

.wg-woo-review-order-go-checkout .wg-btn {
	padding: 12px 14px !important;
	text-align: center !important;
	width: 100% !important;
}

/* ===================================================================
  PAYMENT
=================================================================== */

/* ----- Main ----- */
.wg-woo-checkout-payment {
	box-sizing: border-box;
	margin-top: 10px;
	width: 100%;
}

.wg-woo-checkout-payment-body {
	box-sizing: border-box;
	width: 100%;
}

/* ----- Payment Methods ----- */
.wg-woo-payment-methods {
	box-sizing: border-box;
  width: 100%;
}

.woo-payement-methods-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
  width: 100%;
}

.woo-payment-method-item {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 15px 20px;
	background-color: #fafafa;
	position: relative;
	transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
	cursor: pointer;
  width: 100%;
}

.woo-payment-method-item:hover {
	border-color: #007cba;
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
	background-color: #f0f8ff;
}

.woo-payement-method-item-input {
	display: none;
}

.woo-payment-method-item-label {
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.woo-payment-method-item-label img,
.woo-payment-method-item-label svg {
	margin-left: 10px;
	max-height: 24px;
}

.woo-payment-method-item-box {
	margin-top: 10px;
	padding: 10px 15px;
	background-color: #fff;
	border-left: 3px solid #007cba;
	border-radius: 0 0 10px 10px;
	display: none; /* masquée par défaut */
	transition: all 0.3s ease;
  width: 100%;
}

.woo-payement-method-item-input:checked
	+ .woo-payment-method-item-label
	+ .woo-payment-method-item-box {
	display: block;
}

.woo-payement-method-item-input:checked + .woo-payment-method-item-label {
	font-weight: 600;
	color: #007cba;
}

.woo-payement-method-item-input:checked:after {
	content: none !important;
}
