/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Bootstrap 3 compatibility helpers.
   The WHMCS templates and theme JS still toggle `.hidden` in multiple places
   (notably `#fullpage-overlay`). Bootstrap 5 no longer defines it, which can
   leave overlays visible and make the footer look "broken".
   Keep this in custom.css so we don't touch vendor/minified files. */
.hidden {
    display: none !important;
}

/* Bootstrap 3 `.sr-only` equivalent (BS5 uses `.visually-hidden`).
   Some WHMCS markup still includes `.sr-only`. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Floating back-to-top button.
   The WHMCS JS already binds click for `.back-to-top`, but the element wasn't present.
   Keep styling minimal and rely on existing theme button classes for colors. */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.back-to-top i {
    line-height: 1;
}

/* Back to Top (`.cd-top`): match marketing icon placement. */
.cd-top i {
    right: 35px;
}

/* Back to Top (`.cd-top`): force same Font Awesome glyph as marketing.
   Some WHMCS pages can load different Font Awesome bundles; this keeps the arrow consistent. */
.cd-top i.fas.fa-angle-up,
.cd-top i.fa-solid.fa-angle-up {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.cd-top i.fas.fa-angle-up::before,
.cd-top i.fa-solid.fa-angle-up::before {
    content: "\f106";
}

/* Fix dropdown positioning in BS5 when theme CSS forces dropdowns to be static/full-width.
   Scoped to header icon dropdowns + order-form header actions only. */
.infonews .infonews-nav .dropdown-menu.show,
.infonews .dropdown.notify-container .dropdown-menu.show,
.infonews .dropdown.lang-drop .dropdown-menu.show,
.infonews .dropdown.user-login .dropdown-menu.show,
.header .infonews-nav .dropdown-menu.show,
.header .dropdown.notify-container .dropdown-menu.show,
.header .dropdown.lang-drop .dropdown-menu.show,
.header .dropdown.user-login .dropdown-menu.show {
    position: absolute !important;
    width: auto !important;
    left: auto !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 10px !important;
    z-index: 1050 !important;
    transform: none !important;
}

/* Ensure the language trigger is actually visible in the topbar.
   In WHMCS pages the right-side icon row can get tight and the flag trigger (img-only)
   becomes effectively invisible if it collapses or gets clipped. */
.infonews .infonews-nav {
    width: 100%;
    justify-content: flex-end;
}

.infonews .infonews-nav .dropdown.lang-drop,
.infonews .infonews-nav .dropdown.notify-container,
.infonews .infonews-nav .dropdown.user-login {
    display: flex;
    align-items: center;
}

.infonews .infonews-nav .dropdown.lang-drop > a.iconews {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
}

.infonews .infonews-nav .dropdown.lang-drop img {
    display: block;
}

/* Flag icon: force circular crop like Antler (some pages override border-radius). */
.infonews .infonews-nav .dropdown.lang-drop img,
.header .infonews-nav .dropdown.lang-drop img {
    width: 19px;
    height: 19px;
    border-radius: 50% !important;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .infonews .infonews-nav a.iconews {
        margin-left: 15px;
    }
}

/* Notifications badge (dotted-animation) was originally styled only under `.header`.
   In the topbar (`.infonews`) it can end up taking space/overlapping adjacent icons
   (like the language flag). Mirror the positioning and ensure it doesn't intercept clicks. */
.infonews .dotted-static {
    position: relative;
    right: -12px;
    top: -10px;
    pointer-events: none;
}

.infonews .dotted-animation {
    position: relative;
    right: -4px;
    top: 0;
    pointer-events: none;
}

.infonews .dotted-animation .animate-circle {
    position: absolute;
    top: -20px;
    right: -4px;
    height: 25px;
    width: 25px;
    z-index: 10;
    border-radius: 70px;
    border: 5px solid currentColor;
    -webkit-animation: 1s ease-out infinite heartbit;
    animation: 1s ease-out infinite heartbit;
}

.infonews .dotted-animation .main-circle,
.infonews .dotted-static .main-circle {
    width: 6px;
    height: 6px;
    border-radius: 30px;
    position: absolute;
    right: 6px;
    top: -10px;
    background-color: currentColor;
}

/* WHMCS: franja superior gris (sin texto) en páginas internas.
   Se usa en `header.tpl` para evitar el hero grande con título/subtítulo. */
.top-header.whmcs-slim-banner {
    min-height: 180px;
    padding: 0 !important;
}

/* Notifications dropdown: keep Antler fixed width even with the generic width:auto override. */
.infonews .dropdown.notify-container .dropdown-menu.notification.show,
.header .dropdown.notify-container .dropdown-menu.notification.show {
    width: 350px !important;
    min-width: 350px !important;
}

.header .dropdown.notify-container .dropdown-menu.notification,
.header .dropdown.lang-drop .dropdown-menu.notification {
    min-width: 320px;
}

/* Language dropdown sizing (Antler-like). Without this, our global width:auto override can make it too narrow. */
.infonews .dropdown.lang-drop .dropdown-menu.notification.lang-container.show,
.header .dropdown.lang-drop .dropdown-menu.notification.lang-container.show {
    width: 450px !important;
    min-width: 400px !important;
    max-width: 92vw !important;
}

/* Language dropdown layout (ported from theme's main.css `.header` rules).
   Without these, the locales list renders as a messy inline flow in `.infonews`. */
.infonews .dropdown .notification.lang-container {
    max-width: 450px;
    width: 100%;
    min-width: 400px;
    background-repeat: no-repeat;
    background-position: center;
}

.infonews .dropdown .lang-container .notify-header a {
    right: 40px;
    top: 20px;
    position: absolute;
    background: #fff;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 10px !important;
    border-radius: 50px;
    color: #212122;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

.infonews .dropdown .notification.lang-container ul {
    float: left;
    padding: 20px 0;
    border-bottom-left-radius: 9px !important;
    border-bottom-right-radius: 9px !important;
}

.infonews .dropdown .notification.lang-container ul li {
    float: left;
    display: inline;
    padding: 0 15px 0 20px;
    width: 33.333%;
    line-height: 2em;
}

.infonews .dropdown .notification.lang-container ul li a {
    font-size: 13px;
    padding: 0 10px;
    font-weight: 500;
    color: #414142;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.infonews .dropdown .notification.lang-container ul li a:hover {
    text-decoration: none;
    color: #808080 !important;
}

@media (max-width: 575px) {
    .infonews .dropdown.lang-drop .dropdown-menu.notification.lang-container.show,
    .header .dropdown.lang-drop .dropdown-menu.notification.lang-container.show {
        width: 92vw !important;
        min-width: 0 !important;
    }

    /* On very small screens avoid 3 squeezed columns; use 2 columns. */
    .infonews .dropdown .notification.lang-container ul li {
        width: 50%;
    }
}

/* Notifications dropdown styling (ported from theme's main.css, scoped) */
.header .dropdown-toggle::after {
    display: none;
}

.infonews .dropdown-toggle::after {
    display: none;
}

.header .dropdown .dropdown-menu.notification {
    width: 350px;
    padding: 0;
    line-height: 1.4;
    background: #fff;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 1px 10px 0 rgba(69, 90, 100, 0.2);
}

.infonews .dropdown .dropdown-menu.notification {
    width: 350px;
    padding: 0;
    line-height: 1.4;
    background: #fff;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 1px 10px 0 rgba(69, 90, 100, 0.2);
}

.header .dropdown .notification ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.infonews .dropdown .notification ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.header .dropdown .notification .notify-header {
    display: block;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    border: 0;
    color: #fff;
}

.infonews .dropdown .notification .notify-header {
    display: block;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    border: 0;
    color: #fff;
}

/* Give the notification header a visible background (matches theme palette via data-color). */
.header .dropdown .notification .notify-header,
.infonews .dropdown .notification .notify-header {
    background-color: #55bde5;
}

[data-color=pink] .header .dropdown .notification .notify-header,
[data-color=pink] .infonews .dropdown .notification .notify-header {
    background-color: #ee5586;
}

[data-color=green] .header .dropdown .notification .notify-header,
[data-color=green] .infonews .dropdown .notification .notify-header {
    background-color: #97cb3b;
}

[data-color=black] .header .dropdown .notification .notify-header,
[data-color=black] .infonews .dropdown .notification .notify-header {
    background-color: #4c555d;
}

.header .dropdown .notification .notify-header h6 {
    float: left;
    margin: 0;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.infonews .dropdown .notification .notify-header h6 {
    float: left;
    margin: 0;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.header .dropdown .notification .notify-header .notify-number {
    font-weight: 500;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    color: #212122;
    background: #fff;
    position: absolute;
    top: 14px;
    right: 25px;
    text-decoration: none;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infonews .dropdown .notification .notify-header .notify-number {
    font-weight: 500;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    color: #212122;
    background: #fff;
    position: absolute;
    top: 14px;
    right: 25px;
    text-decoration: none;
    transition: all .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .dropdown .notification .notify-content {
    padding: 30px;
    position: relative;
    line-height: 22px;
    font-size: 12px;
    border-radius: 0 0 15px 15px;
}

.infonews .dropdown .notification .notify-content {
    padding: 30px;
    position: relative;
    line-height: 22px;
    font-size: 12px;
    border-radius: 0 0 15px 15px;
}

.header .dropdown .notification .notify-content li {
    width: 100%;
    position: relative;
    border-radius: 50px;
    background-color: #f5f5f5;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

.infonews .dropdown .notification .notify-content li {
    width: 100%;
    position: relative;
    border-radius: 50px;
    background-color: #f5f5f5;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

.header .dropdown .notification .notify-content li:last-child {
    margin-bottom: 0;
}

.infonews .dropdown .notification .notify-content li:last-child {
    margin-bottom: 0;
}

.header .dropdown .notification .client-alerts a {
    display: block;
    transition: color .3s ease;
    font-size: 13px;
    font-weight: 400;
    color: #595d6e;
    padding: 0;
}

.infonews .dropdown .notification .client-alerts a {
    display: block;
    transition: color .3s ease;
    font-size: 13px;
    font-weight: 400;
    color: #595d6e;
    padding: 0;
}

.header .dropdown .notification .client-alerts a i {
    transform: translateY(-50%);
    top: 50%;
    left: 15px;
    position: absolute;
    padding-right: 25px;
    font-size: 24px;
    color: #818182;
}

.infonews .dropdown .notification .client-alerts a i {
    transform: translateY(-50%);
    top: 50%;
    left: 15px;
    position: absolute;
    padding-right: 25px;
    font-size: 24px;
    color: #818182;
}

.header .dropdown .notification .client-alerts a .message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 30px;
    flex-grow: 1;
}

.infonews .dropdown .notification .client-alerts a .message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 30px;
    flex-grow: 1;
}

.header .dropdown .notification .alert.alert-warning.notify-alert {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    display: block;
    text-align: left;
    border-radius: 50px;
}

.infonews .dropdown .notification .alert.alert-warning.notify-alert {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    display: block;
    text-align: left;
    border-radius: 50px;
}

.header .dropdown .notification .alert.alert-warning.notify-alert i {
    color: #eacd5b;
    right: 15px;
    position: absolute;
    font-size: 24px;
    transform: translateY(-50%);
    top: 50%;
}

.infonews .dropdown .notification .alert.alert-warning.notify-alert i {
    color: #eacd5b;
    right: 15px;
    position: absolute;
    font-size: 24px;
    transform: translateY(-50%);
    top: 50%;
}

#order-standard_cart .dropnav-header-lined .dropdown-menu.show {
    position: absolute !important;
    width: auto !important;
    transform: none !important;
}
