.haroone-mw-swatch-popup__inline-hidden {
    display: none !important;
}

html.no-js .haroone-mw-swatch-popup__actions--server {
    display: none !important;
}

.haroone-mw-swatch-popup__group--eligible > .mageworx-swatch-container {
    display: none !important;
}

.haroone-mw-swatch-popup__source-hidden {
    display: none !important;
}

.haroone-mw-swatch-popup__actions {
    margin-top: 12px;
    padding-top: 6px;
}

.haroone-mw-swatch-popup__selected-value {
    align-items: center;
    display: none;
    gap: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

.haroone-mw-swatch-popup__selected-value.is-visible {
    display: inline-flex;
}

.haroone-mw-swatch-popup__selected-preview {
    display: inline-block;
    float: none;
    margin: 0;
    vertical-align: middle;
}

.haroone-mw-swatch-popup__actions--server .haroone-mw-swatch-popup__trigger,
.haroone-mw-swatch-popup__trigger {
    appearance: none;
    border: 1px solid #c2c2c2;
    background: #fff;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px transparent;
    color: #1d1d1d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    outline: none;
    padding: 0;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 100%;
}

.haroone-mw-swatch-popup__trigger:before,
.haroone-mw-swatch-popup__trigger:after,
.haroone-mw-swatch-popup__item:before,
.haroone-mw-swatch-popup__item:after {
    display: none !important;
    content: none !important;
}

.haroone-mw-swatch-popup__trigger:hover,
.haroone-mw-swatch-popup__trigger:focus {
    background: #fff;
    border: 1px solid #1d1d1d !important;
    box-shadow: 0 0 0 1px rgba(29, 29, 29, 0.08);
    color: #1d1d1d;
    transform: translateY(-2px);
}

.haroone-mw-swatch-popup__trigger-content {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 13px 16px;
    width: 100%;
}

.haroone-mw-swatch-popup__trigger-value {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.haroone-mw-swatch-popup__trigger-value.is-placeholder .haroone-mw-swatch-popup__trigger-label {
    color: #6b6b6b;
}

.haroone-mw-swatch-popup__trigger-preview {
    display: inline-block;
    flex: 0 0 auto;
    float: none;
    height: 35px !important;
    margin: 0;
    vertical-align: middle;
    width: 35px !important;
}

.haroone-mw-swatch-popup__trigger-preview.image,
.haroone-mw-swatch-popup__trigger-preview.color,
.haroone-mw-swatch-popup__trigger-preview.mageworx-swatch-option {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 35px !important;
    width: 35px !important;
}

.haroone-mw-swatch-popup__trigger-preview--empty {
    background: #f4f4f4;
    border: 1px dashed #c9c9c9;
    height: 35px;
    width: 35px;
}

.haroone-mw-swatch-popup__trigger-label {
    font-family: 'Roboto' !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0 !important;
    line-height: 1.3;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: capitalize !important;
    white-space: nowrap;
}

.haroone-mw-swatch-popup__trigger-meta {
    color: #777;
    font-family: 'Roboto' !important;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap;
}

.haroone-mw-swatch-popup__trigger-icon {
    border-bottom: 2px solid #1d1d1d;
    border-right: 2px solid #1d1d1d;
    display: inline-block;
    height: 8px;
    margin-top: -3px;
    transform: rotate(45deg);
    width: 8px;
}

.haroone-mw-swatch-popup__modal {
    font-family: Roboto, sans-serif;
    padding-top: 4px;
}

.modal-popup.haroone-mw-swatch-popup-modal,
.modal-popup.haroone-mw-swatch-popup-modal .modal-inner-wrap,
.modal-popup.haroone-mw-swatch-popup-modal .modal-content,
.modal-popup.haroone-mw-swatch-popup-modal .modal-header,
.modal-popup.haroone-mw-swatch-popup-modal .modal-title {
    font-family: Roboto, sans-serif;
}

.haroone-mw-swatch-popup__search {
    margin-bottom: 16px;
    padding: 0 5px;
}

.haroone-mw-swatch-popup__search-input {
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 14px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.haroone-mw-swatch-popup__results {
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: 60vh;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 20px;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 20px;
    width: 100%;
}

.haroone-mw-swatch-popup__item {
    align-items: center;
    background: #fff !important;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    color: #1d1d1d !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    min-height: auto;
    min-width: 0;
    padding: 12px 10px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 100%;
}

.haroone-mw-swatch-popup__item:hover,
.haroone-mw-swatch-popup__item:focus,
.haroone-mw-swatch-popup__item:active {
    background: #fff !important;
    border-color: #000000 !important;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 41%) !important;
    color: #1d1d1d !important;
    transform: none !important;
}

.haroone-mw-swatch-popup__item.is-selected {
    background: #fff !important;
    border-color: #222;
    box-shadow: 0 0 0 1px rgba(34, 34, 34, 0.12) inset;
    color: #1d1d1d !important;
}

.haroone-mw-swatch-popup__item.is-disabled {
    cursor: not-allowed;
    opacity: .55;
}

.haroone-mw-swatch-popup__preview-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 44px;
    width: 100%;
}

.haroone-mw-swatch-popup__preview {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    pointer-events: none;
}

.haroone-mw-swatch-popup__preview.mageworx-swatch-option {
    display: inline-block;
    float: none;
    margin: 0;
    vertical-align: middle;
}

.haroone-mw-swatch-popup__preview.image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 35px;
    min-width: 35px;
}

.haroone-mw-swatch-popup__preview.is-fallback {
    align-items: center;
    background: #f4f4f4;
    border: 1px dashed #c9c9c9;
    color: #666;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 35px;
    min-width: 35px;
}

.haroone-mw-swatch-popup__preview.text {
    align-items: center;
    background: #f2f2f2;
    color: #4a4a4a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 100%;
    min-height: 36px;
    min-width: 36px;
    padding: 6px 10px;
    text-align: center;
    white-space: normal;
}

.haroone-mw-swatch-popup__label {
    color: #1d1d1d;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Roboto' !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-transform: capitalize !important;
    white-space: pre-wrap !important;
    width: 100%;
}

.haroone-mw-swatch-popup__empty {
    color: #575757;
    display: none;
    font-size: 14px;
    padding: 12px 0 0;
    text-align: center;
}

.haroone-mw-swatch-popup__empty.is-visible {
    display: block;
}

@media (max-width: 767px) {
    .haroone-mw-swatch-popup__results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-height: 55vh;
        padding-top: 10px;
        padding-left: 5px !important;
        padding-right: 20px !important;
        padding-bottom: 10px;
    }

    .haroone-mw-swatch-popup__item {
        min-height: auto;
        padding: 10px 8px;
    }

    .modal-popup.haroone-mw-swatch-popup-modal,
    .modal-popup.haroone-mw-swatch-popup-modal .modal-inner-wrap,
    .modal-popup.haroone-mw-swatch-popup-modal.modal-slide .modal-inner-wrap,
    .modal-popup.haroone-mw-swatch-popup-modal.modal-slide._show .modal-inner-wrap {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 500px) {
    .haroone-mw-swatch-popup__results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
