/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.quick-add-to-cart-modal {
    background-color: #fff;
    font-size: inherit;
    font-family: inherit;
    width: calc(95% - 2rem);
    max-width: calc(var(--wp--style--global--wide-size, 1200px) - 2rem);
    min-height: calc(85% - 2rem);
    padding: 0 0.5rem;
    border: none;
}

.quick-add-to-cart-modal[open] {
    display: flex;
}

.quick-add-to-cart-modal::backdrop {
    background-color: black;
    opacity: 0.75;
}

.quick-add-to-cart-modal__open,
.quick-add-to-cart-modal__filter-clear {
    font-size: inherit;
    font-family: inherit;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.quick-add-to-cart-modal__filter-label {
    margin-top: 0.5em;
}

.quick-add-to-cart-modal__filters{
	display: flex;
	flex-direction: column;
}

.quick-add-to-cart-modal__filter-group{
	flex: auto;
	margin: 0 1em;
}

.quick-add-to-cart-modal__filter-clear {
	float: right;
	margin: 1em;
}

.quick-add-to-cart-modal__open:hover,
.quick-add-to-cart-modal__filter-clear:hover {
    text-decoration: none;
    background: inherit;
    filter: brightness(200%);
}

.quick-add-to-cart-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.quick-add-to-cart-modal__header h2 {
    margin-bottom: 0;
}

.quick-add-to-cart-modal__close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s ease;
    position: relative;
}

.quick-add-to-cart-modal__close::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quick-add-to-cart-modal__close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.quick-add-to-cart-modal__table-row td {
    vertical-align: middle;
}

.quick-add-to-cart-modal__form {
    display: flex;
    flex-flow: column nowrap;
    margin: 0;
    width: 100%;
}

.quick-add-to-cart-modal__message {
    display: none;
    text-align: center;
    padding: 1rem 0.5rem;
}

.quick-add-to-cart-modal__footer {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background-color: #fff;
	border-top: 1px solid #ccc;
    z-index: 1055;
    padding: 0.5rem;
}

.quick-add-to-cart-modal__submit {
    width: 100%;
    margin: 1rem auto;
}

.quick-add-to-cart-modal__filter-select:not(:first-child)+.select2-container {
    margin-top: 0.5rem;
}

.quick-add-to-cart-modal .select2-search__field:placeholder-shown {
    width: 100% !important;
}

.screen-reader-text {
    word-wrap: normal !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

@media (min-width: 768px) {
	.quick-add-to-cart-modal__filters{
		display: flex;
		flex-direction: row;
	}
    .quick-add-to-cart-modal__submit {
        width: auto;
        margin: unset;
    }
}
