/* Separator between local_pickup and home-delivery in the cart method list */
li.w2-shipping-sep {
	list-style: none;
	height: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 6px 0;
	padding: 0;
}

/* Delivery estimate inside the label — hidden by default so it never shows
   inline; JS extracts it and places it in .wwwtech2-estimate-box instead. */
.wwwtech2-delivery-estimate {
	display: none !important;
}

/* "Cliquez pour calculer" link — always use the site primary red */
a.wwwtech2-cpc {
	color: #e63946;
	color: var(--wwt-primary, #e63946);
	text-decoration: underline;
	font-weight: 600;
	cursor: pointer;
}
a.wwwtech2-cpc:hover {
	opacity: 0.75;
	text-decoration: none;
}

/* Destination box: address text + "Modifier l'adresse" */
.wwwtech2-dest-box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 14px;
	margin: 8px 0 4px;
	background: #f4f6f8;
	border-left: 3px solid var(--wwt-primary, #e63946);
	border-radius: 0 6px 6px 0;
	font-size: 0.9em;
}
.wwwtech2-dest-text {
	flex: 1;
	color: #1a1a2e;
	font-weight: 500;
}
a.wwwtech2-edit-link {
	white-space: nowrap;
	font-size: 0.85em;
	color: var(--wwt-primary, #e63946);
	text-decoration: none;
	border-bottom: 1px dashed currentColor;
}
a.wwwtech2-edit-link:hover {
	opacity: 0.75;
}

/* Estimate box: distinct color to stand out from the destination */
.wwwtech2-estimate-box {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	margin: 0 0 8px;
	background: #e8f5e9;
	border-left: 3px solid #43a047;
	border-radius: 0 6px 6px 0;
	font-size: 0.85em;
	color: #2e7d32;
	font-style: italic;
}

/* =====================================================================
   RTL (Arabic) — mirrors left borders/radii to the right side and
   sets direction on the shipping method list and injected boxes.
   WordPress/WPML sets dir="rtl" on <html> when Arabic is active.
   =================================================================== */

html[dir="rtl"] #shipping_method {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .wwwtech2-dest-box {
	border-left: none;
	border-right: 3px solid var(--wwt-primary, #e63946);
	border-radius: 6px 0 0 6px;
	flex-direction: row-reverse;
}

html[dir="rtl"] .wwwtech2-estimate-box {
	border-left: none;
	border-right: 3px solid #43a047;
	border-radius: 6px 0 0 6px;
}

html[dir="rtl"] .woocommerce-shipping-calculator,
html[dir="rtl"] .woocommerce-shipping-calculator label {
	direction: rtl;
	text-align: right;
}

.WWWTech2-shipping-widget {
	margin: 28px 0;
	padding: 22px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(15, 23, 42, 0.02));
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.WWWTech2-shipping-widget__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.WWWTech2-shipping-widget__header h3 {
	margin: 0;
	font-size: 1.05rem;
}
.WWWTech2-shipping-widget__header span {
	font-size: 0.82rem;
	color: rgba(15, 23, 42, 0.62);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.WWWTech2-shipping-widget__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}
.WWWTech2-shipping-widget__grid span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(15, 23, 42, 0.62);
}
.WWWTech2-shipping-widget__grid strong {
	font-size: 0.98rem;
	color: #0f172a;
}
a.wwwtech2-cpc {
    color: red !important;
}
.wwwtech2-red-price, .wwwtech2-red-price * {
    color: red !important;
}

/* =====================================================================
   Product page shipping calculator
   ===================================================================== */

.w2-ship-title {
    font-weight: inherit;
}

/* Force the 'Calcul' container to right-align exactly like the 'Gratuit' container (755b940)
   Elementor's CSS for a7ff4ad uses space-between; we need flex-end to match */
.elementor-element-a7ff4ad {
    --justify-content: flex-end !important;
    justify-content: flex-end !important;
}

/* Make the injected Calcul text bold, matching .elementor-element-7358ed9 .wd-text-block { font-weight:600 } */
.elementor-element-a7ff4ad .wd-text-block {
    font-weight: 600;
}

.w2-ship-calc {
    margin: 10px 0 4px;
    width: 100%;
}

.w2-ship-calc__selects {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    justify-content: center;
    width: 100%;
}

.w2-ship-calc__field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.w2-ship-calc__field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(15, 23, 42, 0.5);
    margin: 0 0 2px;
    text-align: center;
}

.w2-ship-calc__field select {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    border-radius: 10px;
    background: #fff;
    font-size: 0.82rem;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: auto;
    appearance: auto;
    text-align: center;
    text-align-last: center;
}

.w2-ship-calc__field select:focus {
    outline: none;
    border-color: var(--wwt-primary, #e63946);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.w2-ship-calc__field select:disabled {
    opacity: 0.45;
    cursor: default;
    background: #f7f7f7;
}

.w2-ship-calc__prompt {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.5);
    font-style: italic;
    margin: 0 0 4px;
    padding: 0;
    text-align: center;
}

.w2-ship-calc__result {
    display: flex;
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-left: 3px solid var(--wwt-primary, #e63946);
    border-radius: 0 10px 10px 0;
    background: rgba(230, 57, 70, 0.04);
    overflow: hidden;
    margin-top: 4px;
}

.w2-ship-calc__result-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 14px;
    gap: 3px;
}

.w2-ship-calc__result-item + .w2-ship-calc__result-item {
    border-left: 1px solid rgba(230, 57, 70, 0.15);
}

.w2-ship-calc__result-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.45);
}

.w2-ship-calc__result .w2-ship-price,
.w2-ship-calc__result .w2-ship-days {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wwt-primary, #e63946);
}

/* RTL (Arabic) */
.w2-ship-calc[dir="rtl"] .w2-ship-calc__result {
    border-left: 1px solid rgba(230, 57, 70, 0.2);
    border-right: 3px solid var(--wwt-primary, #e63946);
    border-radius: 10px 0 0 10px;
}

.w2-ship-calc[dir="rtl"] .w2-ship-calc__result-item + .w2-ship-calc__result-item {
    border-left: none;
    border-right: 1px solid rgba(230, 57, 70, 0.15);
}

@media (max-width: 480px) {
    .w2-ship-calc__selects {
        flex-direction: column;
        gap: 8px;
    }

    .w2-ship-calc__result {
        flex-direction: column;
    }

    .w2-ship-calc__result-item + .w2-ship-calc__result-item {
        border-left: none;
        border-top: 1px solid rgba(230, 57, 70, 0.15);
    }
}
