/*------------------------------------------------------------------------------
  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;
}

/*------------------------------------------------------------------------------
  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%;
}



/* ==========================================================================
   YITH Request a Quote - Mail Form Styling (High Specificity)
   ========================================================================== */

/* Form Heading */
.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper h5,
.ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper h5,
#yith-ywraq-mail-form-wrapper h5 {
    color: #0F53A6 !important;
    font-family: Poppins, sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 24px !important;
    margin-bottom: 20px !important;
    margin-top: 40px !important;
    text-transform: none !important;
}

/* Form Row Spacing */
.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper p.form-row,
#yith-ywraq-mail-form p.form-row {
    margin-bottom: 18px !important;
}

/* Field Labels */
.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper label,
#yith-ywraq-mail-form label {
    font-family: Lato, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #2d3748 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

#yith-ywraq-mail-form label abbr.required {
    color: #e53e3e !important;
    text-decoration: none !important;
    margin-left: 3px !important;
}

/* Text Inputs, Email, Tel, and Textarea Fields */
#yith-ywraq-mail-form input.input-text,
#yith-ywraq-mail-form textarea.input-text,
.ywraq-form-table-wrapper #yith-ywraq-mail-form input[type="text"],
.ywraq-form-table-wrapper #yith-ywraq-mail-form input[type="email"],
.ywraq-form-table-wrapper #yith-ywraq-mail-form input[type="tel"],
.ywraq-form-table-wrapper #yith-ywraq-mail-form textarea {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-family: Lato, sans-serif !important;
    color: #2d3748 !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Placeholder Styling */
#yith-ywraq-mail-form input::placeholder,
#yith-ywraq-mail-form textarea::placeholder {
    color: #a0aec0 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

/* Focus States */
#yith-ywraq-mail-form input:focus,
#yith-ywraq-mail-form textarea:focus {
    border-color: #0F53A6 !important;
}

/* Submit Button ("Send Your Request") */
#yith-ywraq-mail-form input.button.raq-send-request,
.ywraq-form-table-wrapper #yith-ywraq-mail-form input.button.raq-send-request {
    background-color: #0F53A6 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 12px 24px !important;
    font-family: Poppins, sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-block !important;
}

#yith-ywraq-mail-form input.button.raq-send-request:hover {
    background-color: #0c385e !important;
}


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

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper label{
        font-family: Lato;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;

}

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;
    }
}



/* ==========================================================================
   YITH Request a Quote - Table Card Redesign
   ========================================================================== */

/* Outer Rounded Card Container */
.raq-table-card {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Table Settings */
#yith-ywrq-table-list {
    width: 100%;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
}

/* Light Blue Header Row */
#yith-ywrq-table-list thead tr {
    background-color: #ebf3fa !important;
}

#yith-ywrq-table-list thead tr th {
    background-color: transparent !important;
    color: #0F53A6 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 16px 24px !important;
    border: none !important;
}

#yith-ywrq-table-list thead tr th.th-product {
    text-align: left !important;
    font-family: Poppins;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px !important;
    line-height: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

}

#yith-ywrq-table-list thead tr th.th-quantity {
    color: #0F53A6 !important;
    text-align: right !important;
    font-family: Poppins;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px !important;
    line-height: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;

}

/* Table Row Cells */
#yith-ywrq-table-list tbody tr td {
    background: #fff !important;
    padding: 16px !important;
    border-top: 1px solid #f0f4f8 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}

/* Remove Column */
#yith-ywrq-table-list tbody tr td.product-remove {
    width: 40px !important;
    padding-right: 16px !important;
}

/* Circular Blue Remove Badge */
#yith-ywrq-table-list a.yith-ywraq-item-remove.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #ebf3fa !important;
    color: #0F53A6 !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#yith-ywrq-table-list a.yith-ywraq-item-remove.remove:hover {
    background-color: #dbeafe !important;
    color: #0c385e !important;
}

/* Product Thumbnail */
#yith-ywrq-table-list tbody tr td.product-thumbnail {
    width: 60px !important;
    padding-left: 0 !important;
    padding-right: 15px !important;
}

#yith-ywrq-table-list td.product-thumbnail img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Product Name & Subtitle */
#yith-ywrq-table-list td.product-name a.product-title-link {
    color: #2d3748 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: block;
    line-height: 1.3;
}

#yith-ywrq-table-list td.product-name a.product-title-link:hover {
    color: #0F53A6  !important;
}

.product-meta-wrapper .product-meta {
    display: block;
    color: #718096 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

/* Quantity Column aligned right */
#yith-ywrq-table-list tbody tr td.product-quantity {
    text-align: right !important;
    width: 180px !important;
}

/* Quantity Control Wrapper */
.custom-qty-wrapper {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Round Light-Blue Plus & Minus Buttons */
.custom-qty-wrapper .qty-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #ebf3fa !important;
    color: #0F53A6  !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    padding: 0 !important;
    transition: background-color 0.2s ease;
}

.custom-qty-wrapper .qty-btn:hover {
    background-color: #dbeafe !important;
}

/* Center Input Field */
.custom-qty-wrapper input.qty {
    width: 52px !important;
    height: 36px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

.custom-qty-wrapper input.qty::-webkit-outer-spin-button,
.custom-qty-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}