/* =============================================================================
   Two additions to the public site that sit outside the bought theme:

   1. the sibling-product strip in the footer
   2. the floating column at the bottom right, which has to line up with the
      chat bubble the website suite puts there

   Values are written out rather than inherited, because the theme's global
   rules (notably `button { padding: 17px 40px }`) reach anything that does
   not state its own.
   ========================================================================== */

/* ------------------------------------------------- the footer product strip */

.studio__strip {
    margin: 10px 0 46px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.studio__strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 40px;
    margin-bottom: 26px;
}

.studio__strip-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #F7D478;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.studio__strip-head h4 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.25;
}

.studio__strip-head p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.6;
}

.studio__strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.studio__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

a.studio__card:hover {
    border-color: rgba(247, 212, 120, .55);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-3px);
}

.studio__card-chip {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: var(--chip, #007D59);
    color: #fff;
    font-size: 19px;
    line-height: 1;
}

.studio__card strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.studio__card-line {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.5;
}

.studio__card-cta {
    margin-top: 10px;
    color: #F7D478;
    font-size: 13px;
    font-weight: 600;
}

.studio__card-cta i {
    font-size: 15px;
    vertical-align: -2px;
}

a.studio__card:hover .studio__card-cta i {
    margin-left: 3px;
}

.studio__card.is-here {
    border-color: rgba(0, 125, 89, .75);
    background: rgba(0, 125, 89, .16);
}

.studio__card-badge {
    align-self: flex-start;
    margin-top: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #F7D478;
    color: #1A1A1A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .studio__strip-grid { grid-template-columns: repeat(3, 1fr); }

    /* Below this the container reaches far enough right that the floating
       column lands on it, so unpin the note and keep the policy links clear
       of the buttons rather than hiding under them. */
    .studio__strip-head { display: block; }
    .studio__strip-head p { margin-top: 14px; }
    .footer-widget-menu { padding-right: 86px; }
}

@media (max-width: 767px) {
    /* Stacked and centred down here, so the links cannot dodge sideways;
       give the row enough room to sit above the whole column instead. */
    .footer-widget-menu { padding-right: 0; }
    .copyright__area { padding-bottom: 182px; }

    /* The theme drops the spacing between the policy links once they centre,
       so they run together as one word. Scoped to the copyright row: the same
       class wraps the stacked column menus above, which must stay vertical. */
    .copyright__area .footer-widget-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 18px;
    }

    .copyright__area .footer-widget-menu ul li {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .studio__strip { padding-top: 32px; margin-bottom: 34px; }
    .studio__strip-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .studio__strip-head h4 { font-size: 21px; }
    .studio__strip-head p { max-width: none; }
}

@media (max-width: 419px) {
    .studio__strip-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
    /* Wide enough that the container reaches under the floating column,
       so the last policy link ends up beneath the chat bubble. Below
       1200px the rule above already keeps this clearance. */
    .copyright__area .footer-widget-menu {
        padding-right: 86px;
    }
}

/* ------------------------------------------- the floating column, bottom right */

/*
   The chat bubble is 56px wide at right:18px, so this column is 56px wide at
   the same offset and centres its own buttons. That way the three line up on
   one axis whatever size each button is.
*/

.cw-dock {
    position: fixed;
    right: 18px;
    /* the bubble is 56px tall at bottom:18px, so 84px leaves the same 10px
       gap between all three buttons */
    bottom: 84px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 56px;
}

.cw-dock a,
.cw-dock button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    /* the same 56px as the chat bubble below, so the three read as one column */
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    /* colour is set per button below. Said here it would outweigh
       .cw-dock-top and paint that arrow white on a white circle. */
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, opacity .2s ease, visibility .2s ease;
}

.cw-dock a:hover,
.cw-dock button:hover {
    transform: scale(1.06);
}

.cw-dock svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.cw-dock-top {
    background: rgba(255, 255, 255, .92);
    color: #10201A;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
}

.cw-dock-top.is-on {
    opacity: 1;
    visibility: visible;
}

.cw-dock-top:focus-visible,
.cw-dock-wa:focus-visible {
    outline: 3px solid #F7D478;
    outline-offset: 3px;
}

.cw-dock-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .75);
}

@media (max-width: 480px) {
    /* the bubble is 52px down here, and the suite moves it to bottom:12px */
    .cw-dock { right: 12px; bottom: 74px; width: 52px; }
    .cw-dock a,
    .cw-dock button { width: 52px; height: 52px; }
    .cw-dock svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .cw-dock a,
    .cw-dock button { transition: none; }
    .cw-dock a:hover,
    .cw-dock button:hover { transform: none; }
}

/*
   The theme has a back-to-top of its own, .scroll-up, which it shows on
   scroll at right:35px bottom:20px - on top of the chat bubble. The dock
   does that job in line with the rest of the column, so this one goes.
*/
.scroll-up,
.scroll-up.active-scroll {
    display: none;
}
