/* ==========================================================================
   Media Service Cart - HostBill order page (wizard template, step 0)
   Edit the custom properties in the `.ms-cart` block below to restyle
   the whole order page.
   ========================================================================== */

.ms-cart {
    /* Shared gradient for the card header and the CTA button */
    --ms-grad-from: #b657d8;
    --ms-grad-to: #f4711e;
    --ms-grad: linear-gradient(100deg, var(--ms-grad-from) 0%, var(--ms-grad-to) 100%);

    --ms-card-bg: #ffffff;
    --ms-radius: 20px;
    --ms-text: #4f4f4f;        /* feature list text */
    --ms-heading: #1f1b2e;     /* page title */
    --ms-muted: #6c6880;       /* intro text and inactive category pills */
    --ms-line: #e3e0ea;        /* category pill border */
    --ms-check: #8b4bb5;       /* reference only - see note on the check icon below */
    --ms-gap: 24px;

    /* No background and no horizontal padding: the cards inherit whatever the
       surrounding client-area template provides and run full width. */
    background: none;
    padding: 0;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ms-cart *,
.ms-cart *::before,
.ms-cart *::after { box-sizing: border-box; }

/* ------------------------------------------------- page title and intro */

.ms-cart__header {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.ms-cart__title {
    margin: 0;
    color: var(--ms-heading);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

/* Category description, entered as HTML in HostBill */
.ms-cart__intro {
    margin-top: 12px;
    color: var(--ms-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.ms-cart__intro > :first-child { margin-top: 0; }
.ms-cart__intro > :last-child { margin-bottom: 0; }

/* --------------------------------------------------- category switcher */

.ms-cart__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.ms-cart__cat {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--ms-line);
    border-radius: 999px;
    background: var(--ms-card-bg);
    color: var(--ms-muted);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ms-cart__cat:hover,
.ms-cart__cat:focus {
    color: var(--ms-grad-from);
    border-color: var(--ms-grad-from);
    text-decoration: none;
}

.ms-cart__cat.is-active {
    border-color: transparent;
    background: var(--ms-grad);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(182, 87, 216, .28);
}

/* --------------------------------------------------------------- layout */

.ms-cart__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ms-gap);
    align-items: start;
    /* Full bleed - the container of the client-area template sets the width */
    width: 100%;
    margin: 0;
}

.ms-cart__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #8a8a8a;
}

/* ----------------------------------------------------------------- card */

.ms-card {
    display: flex;
    flex-direction: column;
    background: var(--ms-card-bg);
    border-radius: var(--ms-radius);
    overflow: hidden;
    /* Soft shadow tuned for a light page background */
    box-shadow: 0 6px 24px rgba(23, 12, 38, .10), 0 1px 3px rgba(23, 12, 38, .06);
}

/* ---------------------------------------------------------- card header */

.ms-card__head {
    position: relative;
    background: var(--ms-grad);
    padding: 30px 28px 62px;
    text-align: center;
    color: #fff;
}

.ms-card__title {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

.ms-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ms-card__amount {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.2;
}

/* Normalises the extra markup emitted by common/price.tpl, so the template
   can switch between the `price` modifier and that include without breaking. */
.ms-card__amount * {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ms-card__unit {
    font-size: 14px;
    font-weight: 400;
    opacity: .92;
}

/* Wave divider: three stacked scallop layers, the opaque one sitting last */
.ms-card__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    display: block;
    height: 52px;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 100px 22px, 132px 36px, 168px 52px;
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2020'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,20L0,10Q12.5,0,25,10T50,10T75,10T100,10L100,20Z'%20fill='%23ffffff'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2020'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,20L0,10Q12.5,0,25,10T50,10T75,10T100,10L100,20Z'%20fill='%23ffffff'%20fill-opacity='0.45'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2020'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,20L0,10Q12.5,0,25,10T50,10T75,10T100,10L100,20Z'%20fill='%23ffffff'%20fill-opacity='0.22'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ card body */

.ms-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 26px 28px 34px;
}

/* Populated from the HostBill product description. Enter it as a bullet
   list so every <li> renders as a feature row with a check icon. */
.ms-card__features {
    flex: 1 1 auto;
    margin-bottom: 26px;
    color: var(--ms-text);
    font-size: 14.5px;
    line-height: 1.6;
}

.ms-card__features ul,
.ms-card__features ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ms-card__features li {
    position: relative;
    padding: 0 0 0 26px;
    margin: 0 0 13px;
}

.ms-card__features li:last-child { margin-bottom: 0; }

/* The icon colour lives in the `stroke` value of the inlined SVG below -
   `--ms-check` cannot be applied to a data URI, so change both together. */
.ms-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 17px;
    height: 17px;
    background: no-repeat center / contain
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%238b4bb5'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M8.2,12.4l2.6,2.6l5-5.6'/%3E%3C/svg%3E");
}

.ms-card__features p { margin: 0 0 13px; }
.ms-card__features p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ cta */

.ms-card__btn {
    align-self: center;
    display: inline-block;
    padding: 14px 34px;
    border-radius: 6px;
    background: var(--ms-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ms-card__btn:hover,
.ms-card__btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(182, 87, 216, .38);
}

.ms-card__btn:active { transform: translateY(0); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
    .ms-cart__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .ms-cart__grid { grid-template-columns: minmax(0, 1fr); }
    .ms-cart__title { font-size: 25px; }
    .ms-card__amount { font-size: 26px; }
}
