/*
 * Checkout's select2 dropdown (the District list). The fields, cards and
 * summary are styled by the theme (assets/css/woocommerce.css).
 */

/*
 * Empty Area / Thana: Select2 hides blank-option text and the theme used to
 * set min-height:0, which collapsed the control. Force District-matching size
 * on the field wrapper's select and Select2 shell (and keep the arrow centered).
 */
.woocommerce-checkout #shipping_city_field select.kawaii-thana-select,
.woocommerce-checkout #shipping_city_field .select2-container,
.woocommerce-checkout #shipping_city_field .select2-container .select2-selection--single,
.woocommerce-checkout .kawaii-thana-select + .select2-container,
.woocommerce-checkout .kawaii-thana-select + .select2-container .select2-selection--single {
	box-sizing: border-box !important;
	min-height: 46px !important;
	height: 46px !important;
}

.woocommerce-checkout #shipping_city_field .select2-container .select2-selection--single,
.woocommerce-checkout .kawaii-thana-select + .select2-container .select2-selection--single {
	display: flex !important;
	align-items: center !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

.woocommerce-checkout #shipping_city_field .select2-selection__rendered,
.woocommerce-checkout .kawaii-thana-select + .select2-container .select2-selection__rendered {
	width: 100%;
	line-height: 22px !important;
	padding-left: 0 !important;
}

.woocommerce-checkout #shipping_city_field .select2-selection__arrow,
.woocommerce-checkout .kawaii-thana-select + .select2-container .select2-selection__arrow {
	top: 50% !important;
	height: 20px !important;
	transform: translateY(-50%) !important;
}

.woocommerce-checkout #shipping_city_field .select2-selection__placeholder,
.woocommerce-checkout .kawaii-thana-select + .select2-container .select2-selection__placeholder {
	color: var(--kawaii-shop-muted, #746a78);
}

/* Fix Select2 open state dropdown */
.woocommerce-checkout .select2-container--default .select2-dropdown {
    border: 1px solid var(--kawaii-shop-line) !important;
    border-radius: var(--kawaii-shop-radius-sm, 4px) !important;
    overflow: hidden !important; /* Prevents highlighted item from overlapping rounded corners */
}

/* Fix Select2 highlight color to match primary brand color */
.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--wp--preset--color--accent-1, #FF79A7) !important;
    color: var(--wp--preset--color--base, #fff) !important;
}

/* Fix Select2 inner search field styling */
body .select2-container--default .select2-search--dropdown {
    padding: 15px 15px 5px 15px !important; /* Adds whitespace above the search box */
}

body .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--kawaii-shop-line) !important;
    border-radius: var(--kawaii-shop-radius-sm, 4px) !important;
    padding: 8px 12px !important;
}

/* Offset when multiple badges are present on the same card */
.wp-block-woocommerce-product-image .wp-block-woocommerce-product-sale-badge + .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
    top: 36px;
}

.wp-block-woocommerce-product-image .wp-block-woocommerce-product-sale-badge + .wp-block-woocommerce-product-sale-badge + .wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
    top: 62px;
}
.sib_signup_form br {
    display: none;
}

