/* CaptainGreek marketplace experience white-label v6.
   Scope is intentionally limited to product marketplace partner blocks and message pages. */
body.catalog-product-view,
.mpsbcpro-inbox,
.mpsbcpro-shell {
    --cg-navy: #2d337f;
    --cg-navy-dark: #1f245d;
    --cg-gold: #d4af37;
    --cg-gold-deep: #b89445;
    --cg-cream: #fbfaf5;
    --cg-ink: #252733;
    --cg-muted: #687084;
    --cg-border: rgba(45, 51, 127, .13);
}

/* Hide non-premium metrics from customers. */
body.catalog-product-view #mp-wk-block .wk-seller-response-container,
body.catalog-product-view #mp-wk-block .wk-seller-response,
body.catalog-product-view #mp-wk-block .wk-block-rating,
body.catalog-product-view #mp-wk-block .wk-seller-rating,
body.catalog-product-view #mp-wk-block .wk-seller-rating-block,
body.catalog-product-view #mp-wk-block .mpfeedback,
body.catalog-product-view #mp-wk-block .ratingslider-box,
body.catalog-product-view #mp-wk-block .response,
body.catalog-product-view #mp-wk-block [id^="reponseRate"],
body.catalog-product-view #mp-wk-block [id^="avgTime"] {
    display: none !important;
    visibility: hidden !important;
}

body.catalog-product-view .cg-mpsbc-duplicate-hidden {
    display: none !important;
}

/* Product-page partner card: one refined CaptainGreek experience, not a repeated vendor widget. */
body.catalog-product-view #mp-wk-block,
body.catalog-product-view .cg-mpsbc-partner-panel {
    width: 100% !important;
    margin: 18px 0 0 !important;
    clear: both !important;
    font-family: var(--cg-font, "Inter", "Helvetica Neue", Arial, sans-serif) !important;
}

body.catalog-product-view #mp-wk-block .cg-mpsbc-partner-card,
body.catalog-product-view #mp-wk-block .wk-seller-card-container,
body.catalog-product-view .cg-mpsbc-partner-panel .cg-mpsbc-partner-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 16px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 18px !important;
    border: 1px solid rgba(45, 51, 127, .11) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(212, 175, 55, .13), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fbfaf5 100%) !important;
    box-shadow: 0 16px 38px rgba(31, 36, 93, .075) !important;
    overflow: hidden !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__identity {
    display: flex !important;
    gap: 13px !important;
    align-items: center !important;
    min-width: 0 !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__logo {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(45, 51, 127, .10) !important;
    box-shadow: 0 8px 18px rgba(31, 36, 93, .07) !important;
    overflow: hidden !important;
    color: var(--cg-navy) !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__logo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__copy {
    min-width: 0 !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__kicker,
body.catalog-product-view .cg-mpsbc-card-kicker {
    display: inline-flex !important;
    margin: 0 0 5px !important;
    color: var(--cg-gold-deep) !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__copy h3,
body.catalog-product-view #mp-wk-block .cg-mpsbc-card-title,
body.catalog-product-view #mp-wk-block .wk-block-font-bold-up,
body.catalog-product-view #mp-wk-block .wk-block-title-css {
    margin: 0 !important;
    color: var(--cg-navy) !important;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
    font-size: 25px !important;
    font-weight: 650 !important;
    line-height: 1.05 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__copy h3 span {
    color: var(--cg-muted) !important;
    font-family: var(--cg-font, "Inter", Arial, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__copy h3 a,
body.catalog-product-view #mp-wk-block .wk-block-title-css a,
body.catalog-product-view #mp-wk-block #profileconnect {
    color: var(--cg-navy) !important;
    text-decoration: none !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__copy p,
body.catalog-product-view #mp-wk-block .cg-mpsbc-card-copy {
    margin: 7px 0 0 !important;
    color: var(--cg-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.48 !important;
}

body.catalog-product-view .cg-mpsbc-partner-card__actions,
body.catalog-product-view #mp-wk-block .wk-seller-card-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}

body.catalog-product-view #mp-wk-block .ask_que,
body.catalog-product-view #mp-wk-block #askque,
body.catalog-product-view #mp-wk-block .cg-mpsbc-open-contact,
body.catalog-product-view #mp-wk-block .cg-mpsbc-message-partner {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 154px !important;
    padding: 0 19px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-navy-dark) 100%) !important;
    border: 1px solid rgba(45, 51, 127, .92) !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 26px rgba(31, 36, 93, .16) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
}

body.catalog-product-view #mp-wk-block .ask_que:before,
body.catalog-product-view #mp-wk-block #askque:before,
body.catalog-product-view #mp-wk-block .cg-mpsbc-open-contact:before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 7px !important;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
}

body.catalog-product-view #mp-wk-block .cg-mpsbc-partner-card__link,
body.catalog-product-view #mp-wk-block .wk-seller-product-count,
body.catalog-product-view #mp-wk-block .cg-mpsbc-report-link,
body.catalog-product-view #mp-wk-block #reportflag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    color: var(--cg-navy) !important;
    background: #fff !important;
    border: 1px solid rgba(45, 51, 127, .12) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(31, 36, 93, .055) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

body.catalog-product-view #mp-wk-block .cg-mpsbc-partner-card__meta span {
    display: none !important;
}

/* Contact modal: remove hidden TinyMCE and global-patch look. */
body.catalog-product-view .modal-popup.cg-mpsbc-contact-modal .modal-inner-wrap,
body.catalog-product-view .modal-popup.modal-slide._inner-scroll.cg-mpsbc-contact-modal .modal-inner-wrap,
body.catalog-product-view .modal-popup._inner-scroll:has(#wk-mp-ask-data) .modal-inner-wrap {
    width: min(96vw, 620px) !important;
    max-width: 620px !important;
    margin: 5vh auto !important;
    border: 1px solid rgba(45, 51, 127, .12) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(212, 175, 55, .15), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfaf5 100%) !important;
    box-shadow: 0 22px 58px rgba(31, 36, 93, .20) !important;
    overflow: hidden !important;
}

body.catalog-product-view .modal-popup.cg-mpsbc-contact-modal .modal-title,
body.catalog-product-view .modal-popup:has(#wk-mp-ask-data) .modal-title {
    color: var(--cg-navy) !important;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
    font-size: 30px !important;
    font-weight: 650 !important;
    text-align: left !important;
}

body.catalog-product-view #wk-mp-ask-data .tox,
body.catalog-product-view #wk-mp-ask-data .tox-tinymce,
body.catalog-product-view .cg-mpsbc-contact-modal .tox,
body.catalog-product-view .cg-mpsbc-contact-modal .tox-tinymce,
body.catalog-product-view .cg-mpsbc-contact-modal .tox-statusbar__branding {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
}

body.catalog-product-view #wk-mp-ask-data textarea[name="ask"],
body.catalog-product-view #wk-mp-ask-data #queryquestion,
body.catalog-product-view .cg-mpsbc-contact-modal textarea[name="ask"],
body.catalog-product-view .cg-mpsbc-contact-modal #queryquestion {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 150px !important;
    padding: 13px 14px !important;
    color: var(--cg-ink) !important;
    background: #fff !important;
    border: 1px solid rgba(45, 51, 127, .14) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    resize: vertical !important;
}

body.catalog-product-view #ask-form .label,
body.catalog-product-view .cg-mpsbc-contact-modal label,
body.catalog-product-view .cg-mpsbc-contact-modal .label {
    color: var(--cg-navy) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
}

body.catalog-product-view #ask-form input[type="text"],
body.catalog-product-view #ask-form input[type="email"],
body.catalog-product-view #ask-form select,
body.catalog-product-view .cg-mpsbc-contact-modal input[type="text"],
body.catalog-product-view .cg-mpsbc-contact-modal input[type="email"],
body.catalog-product-view .cg-mpsbc-contact-modal select {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 13px !important;
    color: var(--cg-ink) !important;
    background: #fff !important;
    border: 1px solid rgba(45, 51, 127, .14) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

body.catalog-product-view .cg-mpsbc-contact-modal .modal-footer button:last-child,
body.catalog-product-view .cg-mpsbc-contact-modal .modal-footer .cg-mpsbc-submit,
body.catalog-product-view .cg-mpsbc-contact-modal .modal-footer .clickask {
    color: #fff !important;
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-navy-dark) 100%) !important;
    border-color: var(--cg-navy) !important;
    border-radius: 999px !important;
}

/* Message pages: branded labels without technical vocabulary. */
.mpsbcpro-inbox .mpsbcpro-eyebrow,
.mpsbcpro-shell .mpsbcpro-eyebrow {
    color: var(--cg-gold-deep, #b89445) !important;
}

.mpsbcpro-inbox [class*="Webkul"],
.mpsbcpro-shell [class*="Webkul"] {
    text-transform: none !important;
}

@media (max-width: 767px) {
    body.catalog-product-view #mp-wk-block .cg-mpsbc-partner-card,
    body.catalog-product-view #mp-wk-block .wk-seller-card-container,
    body.catalog-product-view .cg-mpsbc-partner-panel .cg-mpsbc-partner-card {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        border-radius: 22px !important;
    }

    body.catalog-product-view .cg-mpsbc-partner-card__actions,
    body.catalog-product-view #mp-wk-block .wk-seller-card-row {
        justify-content: stretch !important;
    }

    body.catalog-product-view #mp-wk-block .ask_que,
    body.catalog-product-view #mp-wk-block #askque,
    body.catalog-product-view #mp-wk-block .cg-mpsbc-open-contact {
        width: 100% !important;
    }
}
