/* --- Reset & Base Styles --- */
svg:not(:root) {
    overflow: hidden;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:after, 
:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

/* --- Responsive Helpers --- */
@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

/* --- Widget Main Container --- */
.arcontactus-widget {
    line-height: 1;
}

.arcontactus-widget.arcontactus-message {
    position: fixed !important;
    right: 15px;
    bottom: 140px;
    z-index: 10000;
    transition: all 0.3s;
}

/* --- Messengers Block (The Popup Menu) --- */
.arcontactus-widget .messangers-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 235px;
    padding: 14px 0;
    background: #fff center no-repeat;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    
    z-index: 10000;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    
    /* Animation states */
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    -webkit-transform-origin: 80% 105%;
    -ms-transform-origin: 80% 105%;
    transform-origin: 80% 105%;
    -webkit-transition: ease-out 0.12s all;
    -o-transition: ease-out 0.12s all;
    transition: ease-out 0.12s all;
}

.arcontactus-widget .messangers-block.show-messageners-block {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.arcontactus-widget.md .messangers-block {
    bottom: 70px;
}

/* Menu Arrow */
.arcontactus-widget .messangers-block:before {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 25px;
    left: auto;
    display: inline-block !important;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
}

.arcontactus-widget.md.right .messangers-block:before {
    right: 21px;
}

/* --- Individual Messenger Item --- */
.arcontactus-widget .messanger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    
    position: relative;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 8px 20px 8px 60px;
    cursor: pointer;
    text-decoration: none;
}

.arcontactus-widget .messanger:hover {
    background-color: #eee;
}

.arcontactus-widget .messanger span {
    position: absolute;
    left: 10px;
    top: 50%;
    display: block;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-right: 10px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    vertical-align: middle;
}

.arcontactus-widget .messanger p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
}

.arcontactus-widget .messanger span svg {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    text-align: center;
    vertical-align: middle;
}

/* --- Main Floating Button --- */
.arcontactus-widget .arcontactus-message-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    right: 0;
    width: 70px;
    height: 70px;
    background-color: red;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: 2px 2px 3px 0px;
}

.arcontactus-widget.md .arcontactus-message-button, 
.arcontactus-widget.md.arcontactus-message {
    width: 60px;
    height: 60px;
}

.arcontactus-widget .arcontactus-message-button .static {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin-top: -19px;
    margin-left: -26px;
    text-align: center;
    transition: 0.2s all;
}

.arcontactus-widget .arcontactus-message-button .static svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.arcontactus-widget .arcontactus-message-button p {
    margin: 0;
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    line-height: 11px;
}

/* --- Close Button Icon --- */
.arcontactus-widget .arcontactus-close {
    color: #fff;
}

.arcontactus-widget .arcontactus-close svg {
    display: block;
    -webkit-transform: rotate(180deg) scale(0);
    -ms-transform: rotate(180deg) scale(0);
    transform: rotate(180deg) scale(0);
    -webkit-transition: ease-in 0.12s all;
    -o-transition: ease-in 0.12s all;
    transition: ease-in 0.12s all;
}

.arcontactus-widget .arcontactus-close.show-messageners-block svg {
    -webkit-transform: rotate(0) scale(1);
    -ms-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
}

/* --- Pulsation Animation (Vòng tròn sóng) --- */
.arcontactus-widget .arcontactus-message-button .pulsation {
    position: absolute;
    top: -7px;
    left: -7px;
    z-index: -1;
    width: 84px;
    height: 84px;
    background-color: red;
    border-radius: 50px;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    -webkit-animation: arcontactus-pulse 2s infinite;
    animation: arcontactus-pulse 2s infinite;
}

.arcontactus-widget.md .arcontactus-message-button .pulsation {
    width: 74px;
    height: 74px;
}

.arcontactus-widget .pulsation:nth-of-type(2n) {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

/* --- Specific Icon Fixes (Zalo, etc.) --- */
.arcontactus-widget .messanger.zaloIcon span {
    background: 0 0;
}

.arcontactus-widget .messanger.zaloIcon span svg {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    border-radius: 50%;
}

/* --- Color Helpers (SVG) --- */
.st0 { fill: #fdfefe; }
.st1 { fill: #0180c7; }
.st2 { fill: #0172b1; }
.st3 { fill: none; stroke: #0180c7; stroke-width: 2; stroke-miterlimit: 10; }