/* Podi Junction — shop, product-page and checkout styling that used to live in Additional CSS.
   Sizes use rem so they follow the visitor's text size; there are no fixed pixel sizes. */

/* Shop sorting box */
.wc-block-catalog-sorting select.orderby,
.woocommerce-ordering select.orderby,
select.orderby {
	-webkit-appearance: none !important;
	appearance: none !important;
	background-color: #5b3a1c !important;
	color: #fff8e1 !important;
	border: .1rem solid #5b3a1c !important;
	border-radius: .4rem !important;
	padding: .25rem 1.9rem .25rem .6rem !important;
	font-size: .9rem !important;
	width: auto !important;
	max-width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	cursor: pointer;
	background-image:
		linear-gradient(45deg, transparent 50%, #fff8e1 50%),
		linear-gradient(135deg, #fff8e1 50%, transparent 50%) !important;
	background-position:
		calc(100% - 1.1rem) 55%,
		calc(100% - .75rem) 55% !important;
	background-size: .3rem .3rem, .3rem .3rem !important;
	background-repeat: no-repeat !important;
}
select.orderby option { background-color: #fff !important; color: #5b3a1c !important; }
select.orderby:focus { outline: .125rem solid #7a3a1a !important; outline-offset: .125rem; }

/* Pincode box on the product page */
#shiprocket_pincode_check {
	background-color: #fff !important;
	color: #5b3a1c !important;
	border: .1rem solid #5b3a1c !important;
	border-radius: .4rem !important;
	padding: .5rem .75rem !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	width: 12rem !important;
	max-width: 100%;
}
#shiprocket_pincode_check::placeholder { color: #8a6a4a; }
#check_pincode {
	background-color: #5b3a1c !important;
	color: #fff8e1 !important;
	border: .1rem solid #5b3a1c !important;
	border-radius: .4rem !important;
	padding: .5rem 1rem !important;
	font-family: inherit !important;
	font-size: .95rem !important;
	font-weight: 600;
	cursor: pointer;
	margin-left: .5rem;
}
#check_pincode:hover { background-color: #7a3a1a !important; border-color: #7a3a1a !important; }
#shiprocket_pincode_check:focus,
#check_pincode:focus { outline: .125rem solid #7a3a1a !important; outline-offset: .125rem; }
#pincode_response { margin-top: .75rem !important; }

/* Checkout: fields */
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select {
	background-color: #fff !important;
	border: .1rem solid #5b381b !important;
	border-radius: .4rem !important;
	color: #5b381b !important;
}
.wc-block-components-text-input label { color: #843d1c !important; }
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: #843d1c !important;
	box-shadow: 0 0 0 .125rem rgba(132, 61, 28, .25) !important;
	outline: none !important;
}

/* Fields that WooCommerce draws differently (country list, classic forms): same white field with a clear border */
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
	background-color: #fff !important;
	color: var(--wp--preset--color--brown);
}
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.woocommerce form .input-text,
.woocommerce form select {
	border: .1rem solid rgba(91, 56, 27, .35) !important;
	border-radius: .4rem;
}
.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	border-color: var(--wp--preset--color--brown) !important;
	box-shadow: 0 0 0 .1rem var(--wp--preset--color--brown);
	outline: none;
}

/* Checkout: address card, headings, links */
.wc-block-components-address-card {
	background-color: #fff !important;
	border: .1rem solid rgba(91, 56, 27, .35) !important;
	border-radius: .5rem !important;
}
.wc-block-components-address-card__edit { color: #843d1c !important; font-weight: 600 !important; text-decoration: underline !important; }
.wc-block-components-checkout-step__title { color: #5b381b !important; font-weight: 600 !important; letter-spacing: .04em !important; }
.wc-block-components-panel__button { color: #843d1c !important; font-weight: 600 !important; }

/* Checkout: one outline per option, no extra lines */
.wc-block-components-radio-control { border: none !important; box-shadow: none !important; background: transparent !important; }
.wc-block-components-radio-control__option-checked::after,
.wc-block-components-radio-control-accordion-option::after,
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after { display: none !important; }

/* Checkout: option boxes (delivery and payment) */
.wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	background-color: #fff !important;
	border: .1rem solid rgba(91, 56, 27, .3) !important;
	border-radius: .5rem !important;
	margin: 0 0 .65rem 0 !important;
	box-shadow: none !important;
}
.wc-block-checkout .wc-block-components-radio-control-accordion-option { overflow: hidden; }
.wc-block-components-radio-control__option:hover { border-color: #5b381b !important; }
.wc-block-components-radio-control__option-checked,
.wc-block-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option.wc-block-components-radio-control__option-checked {
	background-color: #ffefbe !important;
	border-color: #5b381b !important;
}
.wc-block-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
}
.wc-block-checkout .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control-accordion-content { background-color: transparent !important; }
.wc-block-components-radio-control__input { border: .1rem solid #5b381b !important; background-color: #fff !important; }
.wc-block-components-radio-control__input:checked::before { background: #5b381b !important; }

/* Checkout: hide the Shipping options box when there is only one choice, or before an address is entered */
.wp-block-woocommerce-checkout-shipping-methods-block:has(.wc-block-components-radio-control__option:only-child),
.wp-block-woocommerce-checkout-shipping-methods-block:has(.wc-block-components-shipping-rates-control__no-shipping-address-message) { display: none !important; }
