/* =====================================
   WEB EXPORT - PRODUCT POPUPS
   Blue + White + Orange CTA
===================================== */

.we-market-modal {
    --we-primary: #1769AA;
    --we-primary-dark: #0D477A;
    --we-accent: #FF8C52;
    --we-accent-hover: #F47738;
    --we-heading: #173451;
    --we-text: #526579;
    --we-muted: #78899A;
    --we-border: #DCE5ED;
}

.we-market-modal .modal-dialog {
    width: calc(100% - 24px);
}

.we-market-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--we-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(13, 71, 122, 0.18);
}

.we-market-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 24px 17px;
    border-bottom: 1px solid #EDF1F5;
    background: #F7FAFD;
}

.we-market-modal .modal-title {
    margin: 5px 0 6px;
    color: var(--we-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.we-market-modal .modal-header p {
    margin: 0;
    color: var(--we-text);
    font-size: 13px;
    line-height: 1.6;
}

.we-modal-eyebrow {
    color: var(--we-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.we-market-modal .btn-close {
    flex-shrink: 0;
    margin-top: 3px;
}

.we-market-modal .modal-body {
    padding: 23px 24px 25px;
}

/* Popup form fields */

.we-popup-field {
    margin-bottom: 17px;
}

.we-popup-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--we-heading);
    font-size: 13px;
    font-weight: 700;
}

.we-popup-field label span {
    color: #D94841;
}

.we-popup-field>input,
.we-popup-mobile,
.we-quantity-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--we-border);
    border-radius: 7px;
    background: #fff;
}

.we-popup-field>input {
    padding: 0 13px;
    color: var(--we-heading);
    font-size: 13px;
    outline: none;
}

.we-popup-field>input:focus,
.we-popup-mobile:focus-within,
.we-quantity-input:focus-within {
    border-color: var(--we-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.08);
}

.we-popup-mobile {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.we-popup-mobile>span {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 12px;
    border-right: 1px solid var(--we-border);
    background: #F7FAFD;
    color: var(--we-heading);
    font-size: 13px;
    font-weight: 700;
}

.we-popup-mobile input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 0;
    outline: none;
    color: var(--we-heading);
    font-size: 13px;
}

.we-popup-terms {
    margin: 4px 0 17px;
    color: var(--we-muted);
    font-size: 11px;
    line-height: 1.8;
}

.we-popup-terms a {
    color: var(--we-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.we-popup-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    padding: 12px 16px;
    border: 1px solid var(--we-accent);
    border-radius: 7px;
    background: var(--we-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.we-popup-submit:hover {
    border-color: var(--we-accent-hover);
    background: var(--we-accent-hover);
}

.we-popup-form-note {
    margin: 12px 0 0;
    color: var(--we-primary-dark);
    font-size: 12px;
    line-height: 1.6;
}

/* Quick quote: product left, form right */

#weQuickQuoteModal .modal-dialog {
    max-width: 900px;
}

.we-quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 25px;
    align-items: start;
}

.we-quote-product {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--we-border);
    border-radius: 10px;
    background: #F7FAFD;
}

.we-quote-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #E7EDF3;
    border-radius: 8px;
    background: #fff;
}

.we-quote-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.we-quote-product-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--we-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.we-quote-product h3 {
    margin: 0 0 9px;
    color: var(--we-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.we-quote-product>p {
    margin: 0 0 15px;
    color: var(--we-text);
    font-size: 12px;
    line-height: 1.7;
}

.we-quote-product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--we-border);
    border-bottom: 1px solid var(--we-border);
}

.we-quote-product-price span {
    color: var(--we-muted);
    font-size: 11px;
}

.we-quote-product-price strong {
    color: var(--we-primary-dark);
    font-size: 21px;
    font-weight: 800;
}

.we-quote-product-moq {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--we-text);
    font-size: 12px;
}

.we-quote-product-moq i {
    color: var(--we-primary);
    font-size: 16px;
}

.we-quote-supplier {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--we-border);
}

.we-quote-supplier>i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #EAF3FB;
    color: var(--we-primary);
    font-size: 17px;
}

.we-quote-supplier div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.we-quote-supplier small {
    color: var(--we-muted);
    font-size: 10px;
}

.we-quote-supplier strong {
    overflow-wrap: anywhere;
    color: var(--we-heading);
    font-size: 12px;
}

.we-quote-form-wrap {
    min-width: 0;
}

.we-quote-form-wrap>h3 {
    margin: 0 0 6px;
    color: var(--we-heading);
    font-size: 18px;
    font-weight: 800;
}

.we-quote-form-intro {
    margin: 0 0 20px;
    color: var(--we-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Quantity input */

.we-quantity-input {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.we-quantity-input input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 0;
    outline: none;
    color: var(--we-heading);
    font-size: 13px;
}

.we-quantity-input>span {
    flex-shrink: 0;
    padding: 0 12px;
    color: var(--we-muted);
    font-size: 11px;
}

/* Mobile */

@media (max-width: 767px) {
    .we-market-modal .modal-header {
        padding: 18px 18px 15px;
    }

    .we-market-modal .modal-title {
        font-size: 19px;
    }

    .we-market-modal .modal-body {
        padding: 18px;
    }

    .we-quote-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .we-quote-product-image {
        height: 175px;
    }

    #weQuickQuoteModal .modal-dialog {
        margin: 12px auto;
    }
}