@charset "utf-8";
/* CSS Document */

.wtp
{
	position: absolute;
	top: 65px; left: 0px;
	right: 0px;
	padding: 15px;
	z-index: 10;
}

.zm
{
	position: relative;
	width: 85%;
	z-index: -1;
}

.wob
{
	position: absolute;
	top: 0px; right: 0px;
	bottom: 20px; left: 0px;
	z-index: 1;
}

.chat-top
{
	position: fixed;
	left: 0px; right: 0px;
	top: 0px;
	z-index: 1;
}

.fixed-wto
{
	margin: 0 20% 0 20%;
}

.fixed-aling
{
	position: relative;
	margin: 0 0% 0 38%;
	padding: 12px;
	display: flex;
}

.mobile-aling
{
	position: relative;
	padding: 12px;
	display: flex;
}

.chat-user
{
	position: relative;
	overflow: hidden;
	cursor: pointer;
	width: 100%;
}

.w-user-imge
{
	float: left;
	width: 40px; height: 40px;
	margin-right: 15px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-image:url(../icos/user.jpg);
}

.w-user-table
{
	position: relative;
	height: 40px;
	display: table;
}

.w-user-middle
{
	display: table-cell;
	vertical-align: middle;
}

.w-arrow
{
	position: relative;
	width: 50px; height: 40px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
	cursor: pointer;
}

.w-options
{
	position: relative;
	width: 50px; height: 40px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
	cursor: pointer;
}

.w-middle
{
	position: relative;
	height: 100%;
	padding: 15px 15px 30px 15px;
	overflow: auto;
}

.w-pos-left
{
	position: relative;
	padding-left: 50px;
	float: left;
}

.w-pos-left .w-date
{
	position: relative;
	padding-top: 5px;
	text-align: right;
}

.w-bubble-left
{
	position: relative;
	max-width: 80%;
	float: left;
	padding: 15px;
	word-wrap: break-word;
	line-height: 20px;
	background-color: #f0f2f5;
	color: #252525;
	-moz-border-radius: 22px 22px 22px 0px;
	-webkit-border-radius: 22px 22px 22px 0px;
	border-radius: 22px 22px 22px 0px;
	margin-bottom: 20px;
	z-index: 1;
}

.w-post
{
	position: relative;
	width: 160px; height: 160px;
	background-color: #FFFFFF;
	margin-bottom: 5px;
	cursor: pointer;
}

.w-post .ig
{
	box-shadow: inset 0 0 0 2px #FFF;
	background-image: fixed;
	background-repeat: no-repeat;
	background-position: center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-color:#EBEBEB;
}

.w-imge
{
	position: absolute;
	left: 0px; bottom: 20px;
	width: 30px; height: 30px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-image:url(../icos/user.jpg);
}

.w-user
{
	position: relative;
	height: 40px;
	margin-bottom: 5px;
	cursor: pointer;
}

.w-imga
{
	float: left;
	width: 40px; height: 40px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	margin-right: 10px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-image:url(../icos/user.jpg);
}

.w-imgs
{
	position: relative;
	width: 200px; height: 200px;
	background-color: #FFFFFF;
	margin-bottom: 5px;
	cursor: pointer;
}

.w-imgs .imge
{
	box-shadow: inset 0 0 0 2px #FFF;
	background-image: fixed;
	background-repeat: no-repeat;
	background-position: center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}


.w-imgs .img0A
{
	position: absolute;
	left: 0px; top: 0px;
	width: 100%;
	height: 100%;
}


.w-imgs .img0B
{
	position: absolute;
	left: 0px; top: 0px;
	width: 50%;
	height: 100%;
}
.w-imgs .img1B
{
	position: absolute;
	right: 0px; top: 0px;
	width: 50%;
	height: 100%;
}


.w-imgs .img0C
{
	position: absolute;
	left: 0px; top: 0px;
	width: 50%;
	height: 50%;
}
.w-imgs .img1C
{
	position: absolute;
	right: 0px; top: 0px;
	width: 50%;
	height: 50%;
}
.w-imgs .img2C
{
	position: absolute;
	right: 0px; bottom: 0px;
	width: 100%;
	height: 50%;
}


.w-imgs .img0D
{
	position: absolute;
	left: 0px; top: 0px;
	width: 50%;
	height: 50%;
}
.w-imgs .img1D
{
	position: absolute;
	left: 0px; bottom: 0px;
	width: 50%;
	height: 50%;
}
.w-imgs .img2D
{
	position: absolute;
	right: 0px; top: 0px;
	width: 50%;
	height: 50%;
}
.w-imgs .img3D
{
	position: absolute;
	right: 0px; bottom: 0px;
	width: 50%;
	height: 50%;
}


.w-user-table
{
	position: relative;
	height: 40px;
	display: table;
}

.w-user-middle
{
	display: table-cell;
	vertical-align: middle;
	line-height: 18px;
}

.w-pos-right
{
	position: relative;
	float: right;
}

.w-pos-right .w-date
{
	position: relative;
	padding-top: 3px;
	padding-right: 25px;
	text-align: right;
}

.w-bubble-right
{
	position: relative;
	max-width: 80%;
	float: right;
	padding: 15px;
	word-wrap: break-word;
	line-height: 20px;
	background-color:#4fa6f8;
	color:#ffffff;
	-moz-border-radius: 22px 22px 0px 22px;
	-webkit-border-radius: 22px 22px 0px 22px;
	border-radius: 22px 22px 0px 22px;
	margin-bottom: 20px;
	z-index: 1;
}

.w-received
{
	position: absolute;
	right: 0px; bottom: 0px;
	width: 15px; height: 15px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
	background-image: url(../icos/iconizer-ok.svg);
	z-index: 0;
}

.w-viewed
{
	position: absolute;
	right: 5px; bottom: 0px;
	width: 15px; height: 15px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
	background-image: url(../icos/iconizer-ok.svg);
	z-index: 1;
}

.w-bottom
{
	position: fixed;
	left: 0px; right: 0px;
	bottom: 0px;
	padding: 0px 70px;
	z-index: 1;
}

.fixed-wbx
{
	margin: 0 20% 0 45%;
}

.w-box
{
	width: 100%;
	max-height: 100px;
	resize: none;
	border: 0px;
	outline: 0px;
	overflow: auto;
	padding: 15px 0px;
	cursor: text;
}

.w-box[placeholder]:empty:before {
	font-style: italic;
    content: attr(placeholder);
    color: #949494; 
}

.w-send
{
	position: absolute;
	bottom: 10px; right: 20px;
	text-align: center;
	width: 28px; height: 28px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% auto;
	background-image:url(../icos/send.svg);
	cursor: pointer;
}

.w-atta
{
	position: absolute;
	bottom: 10px; left: 20px;
	width: 28px; height: 28px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% auto;
	background-image:url(../icos/photo.svg);
	cursor: pointer;
}

#window .cp-imgs
{
	position: relative;
	margin: 0 -70px;
}

#window .cp-imgs .ig
{
	position: relative;
	width: 80px;
	height: 80px;
	background-image: fixed;
	background-repeat: no-repeat;
	background-position: center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	float: left;
	margin: 15px 10px 15px 0px;
}

#window .cp-imgs .ig a
{
	position: absolute;
	top: 7px; right: 7px;
	width: 20px; height: 20px;
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	overflow: hidden;
}

#window .cp-imgs .ig .ico
{
	position: absolute;
	top: 0px; right: 0px;
	bottom: 0px; left: 0px;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 60% 60%;
	background-image: url(../icos/close.svg);
	z-index: 2;
}

.w-alert
{
	position:  relative;
	padding: 15px;
	text-align: center;
}
/* BRINTAGE 2026 - chat */
.chat,.mess,.message,.msj,.box-chat{border-radius:16px;}
input,textarea,select{font-family:-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica Neue,Arial,sans-serif;}

/* FIX FINAL CHAT AVATARS - 2026-07-05
   El avatar y el globo recibido vuelven a vivir en la misma fila.
   Tambien agrega margen para que no quede pegado a la linea lateral. */
#window .zm{
    box-sizing: border-box !important;
    clear: both !important;
    z-index: 0 !important;
}

#window .w-pos-left{
    float: left !important;
    width: auto !important;
    max-width: 85% !important;
    padding-left: 14px !important;
    padding-right: 12px !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 8px !important;
}

#window .w-pos-left .w-imge{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    display: block !important;
}

#window .w-pos-left .w-bubble-left{
    float: none !important;
    max-width: calc(100vw - 90px) !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#window .w-pos-right{
    float: right !important;
    width: auto !important;
    max-width: 85% !important;
    padding-left: 12px !important;
    padding-right: 14px !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    clear: both !important;
}

#window .w-pos-right .w-bubble-right{
    float: none !important;
    max-width: calc(100vw - 90px) !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

#window .wob{
    pointer-events: none !important;
}

@media (min-width: 800px){
    #window .w-pos-left{ padding-left: 18px !important; }
    #window .w-pos-right{ padding-right: 18px !important; }
    #window .w-pos-left .w-bubble-left,
    #window .w-pos-right .w-bubble-right{
        max-width: 520px !important;
    }
}

/* BRINTAGE CHAT PANEL BODY */
#w-messages{box-sizing:border-box;overflow-y:auto;overflow-x:hidden;}

/* BRINTAGE FIX 2026-07-06 - simetria de burbujas en chat
   El margen izquierdo se estaba viendo mucho mas grande porque al padding
   del mensaje recibido se le sumaban avatar + separacion. Dejamos el avatar
   al borde util del chat y acercamos la burbuja gris sin tocar el margen
   derecho de las burbujas azules. */
#window .w-pos-left{
    padding-left: 0 !important;
    padding-right: 8px !important;
    gap: 6px !important;
}

#window .w-pos-left .w-imge{
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
}

#window .w-pos-left .w-bubble-left{
    max-width: calc(100vw - 72px) !important;
}

@media (min-width: 800px){
    #window .w-pos-left{
        padding-left: 0 !important;
        padding-right: 10px !important;
        gap: 7px !important;
    }

    #window .w-pos-left .w-bubble-left{
        max-width: 520px !important;
    }
}

/* ================================================================
   BRINTAGE CHAT GROUPS — Messenger / Instagram style (2026-07-23)
   - 16px useful margin on both sides
   - 3px between consecutive messages from the same sender
   - avatar and tail only on the last received bubble of each group
   ================================================================ */
#window .w-messages{
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

#window .zm.w-pos-left,
#window .zm.w-pos-right{
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: flex-end !important;
}

#window .zm.w-pos-left{
    justify-content: flex-start !important;
    gap: 8px !important;
}

#window .zm.w-pos-right{
    justify-content: flex-end !important;
}

/* Consecutive bubbles are visually one compact group. */
#window .zm.chat-group-start,
#window .zm.chat-group-middle{
    margin-bottom: 3px !important;
}

#window .zm.chat-group-end,
#window .zm.chat-group-single{
    margin-bottom: 14px !important;
}

#window .w-pos-left .w-imge{
    position: relative !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    visibility: hidden !important;
}

#window .w-pos-left.chat-group-end .w-imge,
#window .w-pos-left.chat-group-single .w-imge{
    visibility: visible !important;
}

#window .w-bubble-left,
#window .w-bubble-right{
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    max-width: min(78%, 520px) !important;
    border-radius: 20px !important;
    overflow: visible !important;
}

/* The received side always reserves the avatar column, keeping every
   bubble in the group perfectly aligned even when the avatar is hidden. */
#window .w-pos-left .w-bubble-left{
    max-width: min(calc(78% - 38px), 520px) !important;
}

/* Internal corners: compact chain like Messenger/Instagram. */
#window .w-pos-right.chat-group-start .w-bubble-right{
    border-bottom-right-radius: 6px !important;
}
#window .w-pos-right.chat-group-middle .w-bubble-right{
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}
#window .w-pos-right.chat-group-end .w-bubble-right{
    border-top-right-radius: 6px !important;
}

#window .w-pos-left.chat-group-start .w-bubble-left{
    border-bottom-left-radius: 6px !important;
}
#window .w-pos-left.chat-group-middle .w-bubble-left{
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}
#window .w-pos-left.chat-group-end .w-bubble-left{
    border-top-left-radius: 6px !important;
}

/* Real tail only on the final bubble of a group. */
#window .w-pos-right.chat-group-end .w-bubble-right::after,
#window .w-pos-right.chat-group-single .w-bubble-right::after{
    content: "";
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 12px;
    height: 14px;
    background: #4fa6f8;
    clip-path: polygon(0 0, 100% 100%, 0 86%);
}

#window .w-pos-left.chat-group-end .w-bubble-left::after,
#window .w-pos-left.chat-group-single .w-bubble-left::after{
    content: "";
    position: absolute;
    left: -7px;
    bottom: 0;
    width: 12px;
    height: 14px;
    background: #f0f2f5;
    clip-path: polygon(100% 0, 0 100%, 100% 86%);
}

/* Media galleries must never alter the outer chat margins. */
#window .w-imgs,
#window .w-post{
    max-width: 100% !important;
}

@media (max-width: 799px){
    #window .w-bubble-left,
    #window .w-bubble-right{
        max-width: 78% !important;
    }
    #window .w-pos-left .w-bubble-left{
        max-width: calc(78% - 38px) !important;
    }
}
