/* ==========================================================================
   ISO Powersports — Chat & Offer UI
   ========================================================================== */


/* ---- Make an Offer button (product page) --------------------------------- */

.iso-make-offer-wrapper {
    margin: 16px 0;
}
/*
.single-product div.product .summary form.cart {
    display: inline-block !important;
    width: calc(50% - 6px);
    margin: 18px 8px 10px 0 !important;
    vertical-align: top;
}

.single-product div.product .summary form.cart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 24px !important;
    text-align: center;
}

.single-product div.product .summary .iso-make-offer-wrapper {
    display: contents;
}

.iso-make-offer-btn,
.iso-message-seller-btn,
.iso-login-to-offer {
    display: inline-block;
    background: #e63946;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.single-product div.product .summary .iso-make-offer-wrapper .iso-make-offer-btn.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: calc(50% - 6px) !important;
    min-height: 48px;
    margin: 18px 0 10px 0;
    background: #fff !important;
    color: #ed1c24 !important;
    border: 1px solid #ed1c24 !important;
    border-radius: 24px;
    text-align: center;
}

.single-product div.product .summary .iso-make-offer-wrapper .iso-message-seller-btn.button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    margin: 2px 0 24px !important;
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 24px;
    text-align: center;
}
*/
.iso-make-offer-btn:hover,
.iso-message-seller-btn:hover,
.iso-login-to-offer:hover {
    background: #c1121f;
    color: #fff !important;
}

.single-product div.product .summary .iso-make-offer-wrapper .iso-make-offer-btn.button:hover {
    background: #fff5f5 !important;
    color: #ed1c24 !important;
}

.single-product div.product .summary .iso-make-offer-wrapper .iso-message-seller-btn.button:hover {
    background: #f7f7f7 !important;
    color: #222 !important;
}

@media (max-width: 640px) {
    .single-product div.product .summary form.cart,
    .single-product div.product .summary .iso-make-offer-wrapper .iso-make-offer-btn.button {
        width: 100%;
        margin-right: 0 !important;
    }
}


/* ---- Chat list (My Account) ---------------------------------------------- */

.iso-chats__heading {
    margin-bottom: 16px;
}

.iso-chats__empty {
    color: #666;
}

.iso-chats__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iso-chats__item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.iso-chats__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap;
}

.iso-chats__link:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.iso-chats__product {
    font-weight: 600;
    flex: 1 1 auto;
}

.iso-chats__with {
    color: #666;
    font-size: 13px;
}

.iso-chats__date {
    color: #adb5bd;
    font-size: 12px;
    margin-left: auto;
}

.iso-chats__status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.iso-chats__status--active {
    background: #d1fae5;
    color: #065f46;
}

.iso-chats__status--closed {
    background: #f1f5f9;
    color: #64748b;
}


/* ---- Single chat room ---------------------------------------------------- */

.iso-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iso-chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.iso-chat__back {
    font-size: 13px;
    color: #e63946;
    text-decoration: none;
}

.iso-chat__back:hover {
    text-decoration: underline;
}

.iso-chat__title {
    margin: 0;
    font-size: 18px;
}

.iso-chat__closed-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}


/* Messages pane */

.iso-chat__messages {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    min-height: 300px;
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
}

.iso-chat__loading {
    color: #adb5bd;
    text-align: center;
    margin: auto;
}


/* Individual message bubble */

.iso-msg {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.iso-msg--mine {
    align-self: flex-end;
    background: #1a1a2e;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.iso-msg--theirs {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 2px;
}

.iso-msg__sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.7;
}

.iso-msg__time {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
}


/* Offer bubble */

.iso-msg--offer {
    border: 2px solid #e63946;
    background: #fff5f5;
    color: #1a1a2e;
}

.iso-msg--offer.iso-msg--mine {
    background: #fff5f5;
    color: #1a1a2e;
}

.iso-offer-card {
    font-size: 13px;
}

.iso-offer-card__amount {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
}

.iso-offer-card__meta {
    color: #555;
    margin-top: 4px;
}

.iso-offer-card__status {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
}

.iso-offer-card__status--pending {
    background: #fef9c3;
    color: #854d0e;
}

.iso-offer-card__status--accepted {
    background: #d1fae5;
    color: #065f46;
}

.iso-offer-card__status--payment-pending {
    background: #ffedd5;
    color: #9a3412;
}

.iso-offer-card__status--paid {
    background: #dcfce7;
    color: #166534;
}

.iso-offer-card__status--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.iso-offer-card__status--expired_after_acceptance {
    background: #f1f5f9;
    color: #64748b;
}

.iso-offer-card__status--in_active {
    background: #f1f5f9;
    color: #64748b;
}

.iso-offer-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.iso-offer-card__actions .button {
    font-size: 12px;
    padding: 6px 14px;
}

.iso-offer-accept {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.iso-offer-reject {
    background: #e63946 !important;
    color: #fff !important;
    border-color: #e63946 !important;
}

.iso-offer-pay {
    background: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
}


/* Reply area */

.iso-chat__reply {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iso-chat__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}

.iso-chat__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.iso-chat__send {
    background: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
}

.iso-chat__offer-btn {
    background: #e63946 !important;
    color: #fff !important;
    border-color: #e63946 !important;
}

.iso-chat__offers-left {
    font-size: 11px;
    opacity: 0.8;
}


/* ---- Old-site style chat shell ------------------------------------------ */

.iso-chat-shell {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    max-width: 1320px;
    min-height: 720px;
    margin: -24px auto 48px;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.iso-chat-inbox {
    background: #fff;
    border-right: 1px solid #dedede;
    padding: 28px 32px;
}

.iso-chat-inbox__search {
    position: relative;
    margin-bottom: 18px;
}

.iso-chat-inbox__search-input {
    width: 100%;
    height: 46px;
    border: 1px solid #dedede;
    border-radius: 4px;
    padding: 0 46px 0 14px;
    font-size: 14px;
}

.iso-chat-inbox__search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 18px;
}

.iso-chat-inbox__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 18px;
}

.iso-chat-inbox__tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #4d4d4d;
    font-size: 14px;
    padding: 0 0 9px;
    text-align: center;
}

.iso-chat-inbox__tab.is-active {
    border-color: #ed1c24;
    color: #ed1c24;
}

.iso-chat-inbox__status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.iso-chat-inbox__pill {
    background: #fff;
    border: 1px solid #9aa0a6;
    border-radius: 999px;
    color: #252525;
    font-size: 12px;
    padding: 7px 20px;
}

.iso-chat-inbox__pill.is-active {
    background: #efefef;
    border-color: #efefef;
    font-weight: 700;
}

.iso-chat-inbox__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iso-chat-inbox__item {
    margin-bottom: 12px;
}

.iso-chat-inbox__link {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
}

.iso-chat-inbox__item.is-active .iso-chat-inbox__link,
.iso-chat-inbox__link:hover {
    background: #f2f2f2;
    color: #111;
}

.iso-chat-inbox__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: #ddd;
    border-radius: 50%;
    font-weight: 700;
}

.iso-chat-inbox__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iso-chat-inbox__title {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
}

.iso-chat-inbox__time {
    color: #6f7280;
    font-size: 12px;
    white-space: nowrap;
}

.iso-chat-panel {
    min-width: 0;
    background: #f7f7f7;
}

.iso-chat-shell .iso-chat {
    display: grid;
    grid-template-rows: auto auto minmax(360px, 1fr) auto;
    min-height: 720px;
    gap: 0;
}

.iso-chat-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid #dedede;
}

.iso-chat-conversation-header__user {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.iso-chat-conversation-header__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f1f1;
    flex: 0 0 auto;
}

.iso-chat-conversation-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iso-chat-conversation-header__name {
    overflow: hidden;
    color: #050505;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.iso-chat-product {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 36px 26px 0;
    padding: 10px 12px;
    background: #fff;
    border-radius: 14px;
}

.iso-chat-product__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    font-size: 11px;
    color: #777;
}

.iso-chat-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iso-chat-product__date {
    color: #4e5564;
    font-size: 12px;
    margin-bottom: 5px;
}

.iso-chat-product__title {
    margin: 0 0 4px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.iso-chat-product__price {
    color: #ed1c24;
    font-size: 18px;
    font-weight: 700;
}

.iso-chat-product__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.iso-chat-product__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.iso-chat-product__btn--primary {
    background: #ed1c24;
    border: 1px solid #ed1c24;
    color: #fff !important;
}

.iso-chat-product__btn--outline {
    position: relative;
    background: #fff;
    border: 1px solid #ed1c24;
    color: #ed1c24;
}

.iso-chat-product__btn--outline span {
    position: absolute;
    top: -9px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ed1c24;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
}

.iso-chat-product__btn--light {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333 !important;
}

.iso-chat-shell .iso-chat__messages {
    justify-content: flex-start;
    min-height: 0;
    max-height: none;
    margin: 0 0;
    padding: 24px 34px;
    background: #f7f7f7;
    border: 0;
    border-radius: 0;
}

.iso-chat__empty-state {
    margin: auto;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.iso-chat-shell .iso-chat__reply {
    padding: 16px 26px;
    background: #fff;
    border-top: 1px solid #e1e1e1;
}

.iso-chat__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 8px 14px;
    background: #f5f4f6;
    border-radius: 999px;
}

.iso-chat__attach,
.iso-chat__send-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ed1c24;
    font-size: 18px;
    font-weight: 700;
}

.iso-chat__attach {
    border: 1px solid #d9d9e3;
    color: #4a80ff;
    font-size: 15px;
}

.iso-chat-shell .iso-chat__input {
    min-height: 30px;
    height: 30px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    resize: none;
    outline: none;
}

.iso-chat-shell .iso-chat__actions {
    display: none;
}

@media (max-width: 900px) {
    .iso-chat-shell {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    .iso-chat-inbox {
        border-right: 0;
        border-bottom: 1px solid #dedede;
    }
    .iso-chat-product {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .iso-chat-product__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .iso-chat-product__btn {
        flex: 1 1 auto;
    }
}


/* ---- Modal --------------------------------------------------------------- */

.iso-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.iso-modal__box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.iso-modal__title {
    margin: 0 0 20px;
    font-size: 18px;
}

.iso-modal__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iso-modal__footer {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.iso-modal__error {
    margin: 0;
}

.iso-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.iso-field__input {
    width: 100%;
    box-sizing: border-box;
}

.iso-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    margin-top: 4px;
}

.iso-offer-summary {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding: 14px;
    border-radius: 8px;
    background: #f7f7f7;
}

.iso-offer-summary[hidden] {
    display: none !important;
}

.iso-offer-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #333;
    font-size: 14px;
}

.iso-offer-summary__row strong {
    color: #111;
    font-size: 15px;
    white-space: nowrap;
}

.iso-offer-summary__row--total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.iso-offer-summary__message {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
}

.iso-offer-summary__message[hidden] {
    display: none !important;
}


/* ---- Listing badge ------------------------------------------------------- */

.iso-listing-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.iso-listing-badge--for-sale {
    background: #dbeafe;
    color: #1e40af;
}

.iso-listing-badge--iso {
    background: #fce7f3;
    color: #9d174d;
}

/* ---- Conversation polish layer ------------------------------------------ */
.woocommerce-account .iso-chat-shell--conversation,
.woocommerce-account .iso-chat-shell--conversation * {
	box-sizing: border-box;
}

.woocommerce-account .iso-chat-shell--conversation {
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	max-width: 1230px;
	min-height: 720px;
	margin: 14px auto 54px;
	background: #f6f6f6;
	border: 1px solid #dedede;
	border-radius: 0 0 16px 16px;
	box-shadow: 0 18px 45px rgba(20, 20, 20, 0.03);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox {
	padding: 28px 32px 30px;
	background: #fff;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__search-input {
	height: 46px;
	padding: 0 46px 0 16px;
	border: 1px solid #d8d8d8 !important;
	border-radius: 4px !important;
	background: #fff;
	box-shadow: none !important;
	color: #202124;
	font-size: 14px;
	outline: none;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__search-input:focus {
	border-color: #ed1c24 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-segment {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-bottom: 18px;
	border: 1px solid #ed1c24;
	border-radius: 3px;
	overflow: hidden;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-segment__button,
.woocommerce-account .iso-chat-shell--conversation .iso-chat-pills__button {
	appearance: none;
	min-height: 38px;
	margin: 0 !important;
	padding: 0 14px !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #ed1c24 !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-segment__button + .iso-chat-segment__button {
	border-left: 1px solid #ed1c24 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-segment__button.is-active {
	font-weight: 700;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-pills {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-pills__button {
	width: auto;
	min-height: 40px;
	border: 1px solid #ed1c24 !important;
	border-radius: 4px !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-pills__button.is-active {
	background: #f1f1f1 !important;
	border-color: #f1f1f1 !important;
	color: #d71920 !important;
	font-weight: 700;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__item {
	margin: 0;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__link {
	grid-template-columns: 48px minmax(0, 1fr) max-content;
	min-height: 76px;
	padding: 14px;
	border-radius: 7px;
	text-decoration: none !important;
	transition: background 0.16s ease, transform 0.16s ease;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__item.is-active .iso-chat-inbox__link {
	background: #f1f1f1;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__link:hover {
	background: #f6f6f6;
	transform: translateY(-1px);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__title {
	overflow: hidden;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__time {
	align-self: center;
	color: #596172;
	font-size: 12px;
	text-decoration: none;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__empty-filter {
	margin: 24px 0 0;
	color: #626b7c;
	font-size: 14px;
	text-align: center;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__empty-filter[hidden] {
	display: none !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox__avatar {
	background: #e7e7e7;
	color: #4b5563;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-panel {
	background: #f6f6f6;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat {
	min-height: 720px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat--no-active {
	grid-template-rows: minmax(360px, 1fr);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat--no-active .iso-chat__messages {
	min-height: 720px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product--active {
	grid-template-columns: 80px minmax(180px, 1fr) max-content;
	gap: 14px;
	margin: 16px 28px 0;
	padding: 16px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__thumb {
	width: 80px;
	height: 80px;
	border-color: #e1e4e8;
	background: #f6f7f8;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__date {
	margin-bottom: 6px;
	color: #596172;
	font-size: 12px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__title {
	overflow: hidden;
	max-width: 340px;
	margin: 0 0 6px;
	color: #050505;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__price {
	color: #ed1c24;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__price del {
	margin-right: 4px;
	opacity: 0.8;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__actions {
	gap: 8px;
	flex-wrap: nowrap;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__btn {
	min-width: 92px;
	min-height: 38px;
	padding: 0 18px !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__btn--primary {
	background: #ed1c24 !important;
	border-color: #ed1c24 !important;
	color: #fff !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__btn--offer {
	background: #fff !important;
	border-color: #ed1c24 !important;
	color: #ed1c24 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__btn--light {
	background: #fff !important;
	border-color: #d2d2d2 !important;
	color: #333 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__messages {
	padding: 32px;
	background: #f6f6f6;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__empty-state {
	margin: auto;
	color: #050505;
	font-size: 20px;
	font-weight: 600;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__reply {
	padding: 16px 28px;
	background: #fff;
	border-top: 1px solid #dedede;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-composer {
	grid-template-columns: minmax(0, 1fr) 54px;
	min-height: 48px;
	padding: 7px 12px 7px 14px;
	border-radius: 999px;
	background: #f4f3f5;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__attach,
.woocommerce-account .iso-chat-shell--conversation .iso-chat__send-icon {
	appearance: none;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	line-height: 1;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__attach {
	width: 30px;
	height: 30px;
	border: 1px solid #ed1c24 !important;
	border-radius: 5px !important;
	background: #fff !important;
	color: #ed1c24 !important;
	font-size: 16px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__send-icon {
	justify-self: end;
	width: 54px;
	height: 30px;
	border: 1px solid #ed1c24 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #ed1c24 !important;
	font-size: 15px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__send-icon:hover,
.woocommerce-account .iso-chat-shell--conversation .iso-chat__attach:hover {
	background: #fff5f5 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__input {
	width: 100%;
	height: 32px;
	min-height: 32px;
	margin: 0;
	padding: 5px 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #222;
	font-size: 15px;
	line-height: 22px;
	outline: none;
}

@media (max-width: 1180px) {
	.woocommerce-account .iso-chat-shell--conversation {
		grid-template-columns: 360px minmax(0, 1fr);
		max-width: calc(100vw - 32px);
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-product--active {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 760px) {
	.woocommerce-account .iso-chat-shell--conversation {
		grid-template-columns: 1fr;
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-inbox {
		padding: 20px;
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat {
		min-height: 620px;
	}
}
.iso-chat-options {
	position: relative;
	display: inline-flex;
}

.iso-chat-options__toggle {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #8c8f97;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	list-style: none;
}

.iso-chat-options__toggle::-webkit-details-marker {
	display: none;
}

.iso-chat-options__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 118px;
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
	z-index: 20;
}

.iso-chat-options__item {
	width: 100%;
	border: 0;
	background: transparent;
	color: #111;
	text-align: left;
	padding: 10px 12px;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
}

.iso-chat-options__item:hover,
.iso-chat-options__item:focus {
	background: #fff1f2;
}

/* ---- Conversation final polish ------------------------------------------ */

.woocommerce-account .iso-chat-shell--conversation {
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	min-height: 720px;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-panel {
	background: #f6f6f6;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat {
	display: grid;
	grid-template-rows: 76px auto minmax(320px, 1fr) auto;
	min-height: 720px;
	background: #f6f6f6;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
	min-height: 76px;
	padding: 0 26px;
	background: #fff;
	border-bottom: 1px solid #dedede;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__user {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	gap: 12px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__avatar,
.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__avatar img,
.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__avatar .avatar {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__avatar {
	flex: 0 0 44px;
	overflow: hidden;
	background: #e9eaec;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__name {
	overflow: hidden;
	max-width: 48vw;
	color: #111;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-options {
	position: relative;
	align-self: center;
	flex: 0 0 auto;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-options__toggle {
	width: 38px;
	height: 38px;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #8e939c !important;
	font-size: 28px;
	line-height: 1;
	box-shadow: none !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-options__toggle:hover,
.woocommerce-account .iso-chat-shell--conversation .iso-chat-options[open] .iso-chat-options__toggle {
	background: #f1f1f1 !important;
	color: #111 !important;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-options__menu {
	top: calc(100% + 6px);
	right: 0;
	min-width: 132px;
	padding: 8px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 18px 38px rgba(17, 24, 39, 0.14);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-options__item {
	min-height: 38px;
	color: #111;
	font-size: 14px;
	font-weight: 600;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product--active {
	align-self: start;
	grid-template-columns: 80px minmax(0, 1fr) max-content;
	min-height: 104px !important;
	height: auto !important;
	margin: 16px 28px 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__main {
	min-width: 0;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__thumb {
	width: 80px;
	height: 80px;
	border-radius: 8px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__title {
	max-width: 100%;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__btn {
	min-width: 96px;
	min-height: 38px;
	padding: 0 18px !important;
	border-radius: 999px !important;
	font-size: 13px;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__messages {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 320px;
	padding: 30px 34px;
	background: #f6f6f6;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__notice {
	width: 100%;
	margin: 0 0 18px;
	padding: 13px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__notice--success {
	border: 1px solid #bbf7d0;
	background: #dcfce7;
	color: #166534;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__empty-state {
	margin: auto;
	color: #050505;
	font-size: 20px;
	font-weight: 700;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__reply {
	padding: 16px 28px;
	background: #fff;
	border-top: 1px solid #dedede;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-composer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 54px;
	align-items: center;
	min-height: 46px;
	padding: 7px 10px 7px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f2f1f3;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat-composer:focus-within {
	border-color: #ed1c24;
	background: #fff;
}

.woocommerce-account .iso-chat-shell--conversation .iso-chat__send-icon {
	width: 54px;
	height: 30px;
	border: 1px solid #ed1c24 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #ed1c24 !important;
}

@media (max-width: 1180px) {
	.woocommerce-account .iso-chat-shell--conversation .iso-chat-product--active {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-product__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 760px) {
	.woocommerce-account .iso-chat-shell--conversation .iso-chat {
		grid-template-rows: 70px auto minmax(260px, 1fr) auto;
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header {
		height: 70px;
		min-height: 70px;
		padding: 0 18px;
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-conversation-header__name {
		max-width: 58vw;
		font-size: 16px;
	}

	.woocommerce-account .iso-chat-shell--conversation .iso-chat-product--active {
		margin: 14px 18px 0;
	}
}

/* ---- Block confirmation modal ------------------------------------------- */

body.iso-block-confirm-modal-open {
	overflow: hidden;
}

.iso-block-confirm-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.iso-block-confirm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
	backdrop-filter: blur(1px);
}

.iso-block-confirm-modal__card {
	position: relative;
	z-index: 1;
	width: min(450px, calc(100vw - 32px));
	padding: 50px 30px 30px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.iso-block-confirm-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #ed1c24 !important;
	box-shadow: none !important;
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.iso-block-confirm-modal__close:hover {
	background: #fff5f5 !important;
	border-color: #ffc8cc !important;
}

.iso-block-confirm-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 158px;
	height: 158px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: rgba(237, 28, 36, 0.2);
}

.iso-block-confirm-modal__icon-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 116px;
	height: 116px;
	border: 16px solid rgba(237, 28, 36, 0.24);
	border-radius: 50%;
	background: #ed1c24;
	color: #fff;
}

.iso-block-confirm-modal__title {
	max-width: 360px;
	margin: 0 auto 14px;
	color: #050505;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: uppercase;
}

.iso-block-confirm-modal__text {
	max-width: 390px;
	margin: 0 auto 26px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.55;
}

.iso-block-confirm-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.iso-block-confirm-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 20px !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.iso-block-confirm-modal__button--secondary {
	border: 1px solid #ed1c24 !important;
	background: #fff !important;
	color: #ed1c24 !important;
}

.iso-block-confirm-modal__button--danger {
	border: 1px solid #ed1c24 !important;
	background: #ed1c24 !important;
	color: #fff !important;
}

.iso-block-confirm-modal__button--secondary:hover {
	background: #fff5f5 !important;
}

.iso-block-confirm-modal__button--danger:hover {
	background: #d71920 !important;
	border-color: #d71920 !important;
}

@media (max-width: 520px) {
	.iso-block-confirm-modal__card {
		padding: 44px 20px 24px;
	}

	.iso-block-confirm-modal__icon {
		width: 128px;
		height: 128px;
	}

	.iso-block-confirm-modal__icon-inner {
		width: 94px;
		height: 94px;
		border-width: 12px;
	}

	.iso-block-confirm-modal__title {
		font-size: 24px;
	}

	.iso-block-confirm-modal__actions {
		grid-template-columns: 1fr;
	}
}
