/* Package prices of the home page (template local_courseshop/price_quotes). Sizes in px: the theme sets html to 15px,
   the prototype is drawn on 16px. */

.courseshop-quotes {
    --cq-font-heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --cq-blue: #3b82f6;
    --cq-blue-hover: #1e6ff5;
    --cq-teal: #0d9488;
    --cq-teal-dark: #0f766e;
    --cq-teal-light: #14b8a6;
    --cq-slate-900: #0f172a;
    --cq-slate-500: #64748b;
    --cq-slate-400: #94a3b8;
    --cq-gap: 30px;

    /* Keeps the top margin of the strip inside: collapsed with the margin of the element above it would vanish. */
    display: flow-root;
    padding-bottom: 24px;
}

/* The builder text element wrapping the placeholder pads its content with an inline style (30px by default): without
   it the strip and the boxes line up with the edges of the column, like the other rows of the page. */
.theme-text-inner:has(> .theme-text-text > .courseshop-quotes) {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.courseshop-quotes .cq-strip {
    margin: 24px 0 32px;
    padding: 14px 16px;
    border-radius: 6px;
    background-color: var(--cq-teal);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: .025em;
    text-align: center;
    text-transform: uppercase;
}

/* One box per row on small screens, three per row from 992px (two when there are exactly four); an incomplete last
   row is centred. */
.courseshop-quotes .cq-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px var(--cq-gap);
}

.courseshop-quotes .cq-plan {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    min-width: 0;
    padding: 32px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}

@media (min-width: 992px) {
    .courseshop-quotes .cq-plan {
        flex-basis: calc((100% - 2 * var(--cq-gap)) / 3);
    }

    .courseshop-quotes-cols-2 .cq-plan {
        flex-basis: calc((100% - var(--cq-gap)) / 2);
    }
}

.courseshop-quotes .cq-plan-featured {
    box-shadow: 0 0 0 2px var(--cq-teal-light), 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.courseshop-quotes .cq-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 9999px;
    background-color: var(--cq-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

.courseshop-quotes .cq-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.courseshop-quotes .cq-plan-title {
    margin: 0;
    color: var(--cq-slate-900);
    font-family: var(--cq-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.courseshop-quotes .cq-plan-save {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 9999px;
    background-color: #ecfdf5;
    box-shadow: 0 0 0 1px #a7f3d0;
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.courseshop-quotes .cq-plan-price {
    margin: 16px 0 0;
    color: var(--cq-slate-900);
    font-family: var(--cq-font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
}

.courseshop-quotes .cq-plan-list {
    margin-left: 6px;
    color: var(--cq-slate-400);
    font-size: 20px;
    font-weight: 500;
}

.courseshop-quotes .cq-plan-per {
    margin: 4px 0 0;
    color: var(--cq-slate-500);
    font-size: 14px;
    line-height: 20px;
}

.courseshop-quotes .cq-plan-earlybird {
    margin: 8px 0 0;
    color: var(--cq-teal-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

/* At the bottom of the box, at least 32px below the text: the boxes of a row have the same height. */
.courseshop-quotes .cq-plan-action {
    margin-top: auto;
    padding-top: 32px;
}

.courseshop-quotes .cq-plan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65em;
    height: 40px;
    padding: 0 16px;
    border: 2px solid var(--cq-blue);
    border-radius: 6px;
    background-color: var(--cq-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.125;
    text-decoration: none;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.courseshop-quotes .cq-plan-button:hover,
.courseshop-quotes .cq-plan-button:focus {
    border-color: var(--cq-blue-hover);
    background-color: var(--cq-blue-hover);
    color: #fff;
    text-decoration: none;
}

.courseshop-quotes .cq-plan-button:focus-visible {
    outline: 2px solid var(--cq-slate-900);
    outline-offset: 2px;
}

.courseshop-quotes .cq-plan-featured .cq-plan-button {
    border-color: var(--cq-teal);
    background-color: var(--cq-teal);
}

.courseshop-quotes .cq-plan-featured .cq-plan-button:hover,
.courseshop-quotes .cq-plan-featured .cq-plan-button:focus {
    border-color: var(--cq-teal-dark);
    background-color: var(--cq-teal-dark);
}

/* Envelope of remixicon (ri-mail-line), the icon font of the theme. */
.courseshop-quotes .cq-plan-button::before {
    content: "\eef6";
    margin-right: 8px;
    font-family: "remixicon";
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}
