/*------------------------------------------------------------------------------
  YITH Request a Quote for WooCommerce

   1. Global
   2. RAQ Page
   3. Responsive
------------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
  1. Global
------------------------------------------------------------------------------*/
.ajax-loading,
.product-remove a.yith-ywraq-item-remove.remove {
    display: inline-block;
}

.product-remove .ajax-loading {
    vertical-align: text-bottom;
}

.woocommerce .related ul li.product img, .woocommerce .related ul.products li.product img.ajax-loading {
    width: auto;
}

.yith-ywraq-add-to-quote a, .yith_ywraq_add_item_browse_message a {
    font-size: 1.2rem !important;
    font-weight: 600;
    margin: 0 auto;
}

.yith_ywraq_add_item_browse_message a:after {
    display: none !important;
}

/* Mini quote dropdown */
.yith-ywraq-mini-quote {
    position: relative;
    display: inline-block;
}

.yith-ywraq-mini-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
}

.yith-ywraq-mini-icon svg {
    fill: currentColor;
}

.yith-ywraq-mini-count {
    background: #00a5a5;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.yith-ywraq-mini-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: none;
    z-index: 9999;
}

.yith-ywraq-mini-quote.is-open .yith-ywraq-mini-dropdown {
    display: block;
}

.yith-ywraq-mini-quote.is-empty .yith-ywraq-mini-items,
.yith-ywraq-mini-quote.is-empty .yith-ywraq-mini-view {
    display: none;
}

.yith-ywraq-mini-quote:not(.is-empty) .yith-ywraq-mini-empty {
    display: none;
}

.yith-ywraq-mini-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.yith-ywraq-mini-empty {
    font-size: 14px;
    color: #666666;
}

.yith-ywraq-mini-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.yith-ywraq-mini-item {
    display: grid;
    grid-template-columns: 16px 56px 1fr;
    gap: 10px;
    align-items: center;
}

.yith-ywraq-mini-remove a {
    display: inline-block;
    color: #999999;
    font-size: 18px;
    line-height: 1;
}

.yith-ywraq-mini-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.yith-ywraq-mini-name a {
    color: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.yith-ywraq-mini-view {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    width: 100%;
    padding: 10px 16px;
    background: #00a5a5;
    color: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
}

/*------------------------------------------------------------------------------
  2. RAQ Page
------------------------------------------------------------------------------*/

.ywraq-form-table-wrapper.wide {
    align-content: space-evenly;
    align-items: baseline;
    display: flex;
    flex: 0 0 auto;
}

.ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
    flex-basis: 48%;
    margin-left: 5%;
}

.ywraq-form-table-wrapper.wide form#yith-ywraq-form {
    flex-basis: 48%;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
    padding: 25px;
}

input#rqa_privacy {
    display: table-cell;
}

#rqa_privacy_row label {
    display: table-cell;
    margin-left: 10px;
    vertical-align: middle;
    padding-left: 10px;
}

#rqa_privacy_row {
    display: table;
}

/*------------------------------------------------------------------------------
  3. Responsive
------------------------------------------------------------------------------*/

@media (max-width: 768px) {
    .ywraq-form-table-wrapper.wide {
        display: block;
    }

    .ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
        margin-left: 0;
    }
}
