/*
Theme Name: PelakMarket Child
Theme URI: https://pelakmarket.ir/
Description: WoodMart child theme for PelakMarket product and pricing system.
Author: PelakMarket
Template: woodmart
Version: 1.0.3
Text Domain: pelakmarket-child
WPVibe: yes
*/

/* PelakMarket: keep shipping methods fully visible in cart / checkout. */
.woocommerce-cart .cart-totals-inner,
.woocommerce-cart .cart-totals-inner .shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
	min-width: 0;
	max-width: 100%;
}

.woocommerce-cart .cart-totals-inner .shop_table {
	width: 100%;
	table-layout: fixed;
}

.woocommerce-cart .cart-totals-inner tr.shipping {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	direction: rtl;
}

.woocommerce-cart .cart-totals-inner tr.shipping th,
.woocommerce-cart .cart-totals-inner tr.shipping td {
	display: block !important;
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	direction: rtl;
	text-align: right !important;
	white-space: normal;
}

.woocommerce-cart .cart-totals-inner tr.shipping th {
	padding-bottom: 8px;
	vertical-align: top;
}

.woocommerce-cart .cart-totals-inner tr.shipping td {
	padding-top: 0;
}

.woocommerce-cart .woocommerce-shipping-methods,
.woocommerce-checkout .woocommerce-shipping-methods {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	direction: rtl;
	text-align: right !important;
}

.woocommerce-cart .woocommerce-shipping-methods li,
.woocommerce-checkout .woocommerce-shipping-methods li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	white-space: normal !important;
	direction: rtl;
	text-align: right !important;
}

.woocommerce-cart .woocommerce-shipping-methods input.shipping_method,
.woocommerce-checkout .woocommerce-shipping-methods input.shipping_method {
	flex: 0 0 auto;
	float: none;
	margin: 5px 0 0 6px;
}

.woocommerce-cart .woocommerce-shipping-methods label,
.woocommerce-checkout .woocommerce-shipping-methods label {
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	white-space: normal !important;
	word-break: normal;
	overflow-wrap: anywhere;
	line-height: 1.8;
	direction: rtl;
	text-align: right !important;
}

.woocommerce-cart .woocommerce-shipping-methods label .amount,
.woocommerce-checkout .woocommerce-shipping-methods label .amount {
	white-space: nowrap;
}

@media (max-width: 768.98px) {
	.woocommerce-cart .cart-totals-inner .shop_table_responsive tr.shipping td {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		width: 100%;
		min-width: 0;
		text-align: right !important;
	}

	.woocommerce-cart .cart-totals-inner .shop_table_responsive tr.shipping td:before {
		margin: 0 0 2px;
	}

	.woocommerce-cart .cart-totals-inner .shop_table_responsive tr.shipping td > * {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
	}

	.woocommerce-cart .woocommerce-shipping-methods label,
	.woocommerce-checkout .woocommerce-shipping-methods label {
		font-size: 13px;
		line-height: 1.75;
	}
}

@media (max-width: 480px) {
	.woocommerce-cart .woocommerce-shipping-methods label,
	.woocommerce-checkout .woocommerce-shipping-methods label {
		font-size: 12px;
		line-height: 1.7;
	}
}

