/**
 * Custom CSS for Magmodules PDP Theme
 */

/* Product page full-width layout styling */
.page-layout-product-full-width .page-main {
    margin-top: 0px;
}

.page-layout-product-full-width .columns {
    max-width: 100%;
}

/* Product page: reviews. One large card for the first review, the next two beside it. */
.pdp-reviews-section {
    background: #f6f6f3;
}

.pdp-reviews {
    color: #44403c;
}

.pdp-reviews__eyebrow {
    margin: 0 0 4px;
    color: #9fa197;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.pdp-reviews__title {
    margin: 0 0 32px;
    color: #44403c;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.pdp-reviews__grid {
    display: grid;
    gap: 24px;
}

.pdp-reviews__side {
    display: grid;
    gap: 24px;
    align-content: stretch;
}

.pdp-reviews__more {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.pdp-reviews__more:not(:has(> .pdp-review:not([style*="display: none"]))) {
    margin-top: 0;
}

.pdp-review {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #fff;
}

.pdp-review__title {
    margin: 14px 0 6px;
    color: #44403c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.pdp-review__text {
    margin: 0;
    color: #57534e;
    font-size: 14px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

.pdp-review__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 18px 0 0;
    padding-top: 0;
    color: #a8a29e;
    font-size: 13px;
}

.pdp-review__note {
    flex-basis: 100%;
    font-size: 12px;
}

/* The large card */
.pdp-review--featured {
    padding: 28px;
    border-color: #f9e063;
    background: #f9e063;
}

.pdp-review--featured .pdp-review__quote {
    display: block;
    height: 34px;
    margin-top: 18px;
    color: rgba(68, 64, 60, 0.35);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
}

.pdp-review--featured .pdp-review__title {
    margin-top: 16px;
    font-size: 20px;
}

.pdp-review--featured .pdp-review__text {
    color: #57534e;
    font-size: 14px;
}

.pdp-review--featured .pdp-review__text {
    margin-bottom: 28px;
}

.pdp-review--featured .pdp-review__meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(68, 64, 60, 0.18);
    color: #78716c;
}

.pdp-review--featured .pdp-review__author {
    color: #44403c;
    font-weight: 600;
}

/* The invitation that fills the space when there are fewer than three reviews */
.pdp-review--invite {
    align-items: flex-start;
    justify-content: center;
    border-style: dashed;
    border-color: #d6d3d1;
    background: transparent;
}

.pdp-review--invite .pdp-review__title {
    margin-top: 0;
}

.pdp-review--invite .pdp-reviews__button {
    margin-top: 20px;
}

/* Stars */
.pdp-stars {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    line-height: 0;
}

.pdp-stars__empty,
.pdp-stars__filled {
    display: flex;
    gap: 3px;
    white-space: nowrap;
}

.pdp-stars__empty {
    color: #e7e5e4;
}

.pdp-stars__filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #eac43d;
}

.pdp-stars svg {
    flex: none;
}

.pdp-review--featured .pdp-stars__empty {
    color: rgba(68, 64, 60, 0.2);
}

.pdp-review--featured .pdp-stars__filled {
    color: #44403c;
}

/* Score and buttons */
.pdp-reviews__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
}

.pdp-reviews__score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdp-reviews__number {
    color: #44403c;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.pdp-reviews__based {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #78716c;
    font-size: 13px;
}

.pdp-reviews__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pdp-reviews__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid #44403c;
    border-radius: 8px;
    background: #44403c;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.pdp-reviews__button:hover {
    border-color: #292524;
    background: #292524;
    color: #fff;
}

.pdp-reviews__button--light {
    border-color: #d6d3d1;
    background: transparent;
    color: #44403c;
}

.pdp-reviews__button--light:hover {
    border-color: #44403c;
    background: transparent;
    color: #44403c;
}

@media (min-width: 768px) {
    .pdp-review {
        padding: 28px;
    }

    .pdp-review--featured {
        padding: 36px;
    }

    .pdp-reviews__more {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .pdp-reviews__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .pdp-review--featured .pdp-review__title {
        font-size: 24px;
    }

    .pdp-review--featured .pdp-review__text {
        font-size: 16px;
        line-height: 28px;
    }

    .pdp-reviews__more {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Product page: one heading pattern for every section. A small line above, the title below. */
.pdp-eyebrow,
#changelog h2 > span:first-child {
    display: block;
    margin: 0 0 4px;
    color: #9fa197;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.pdp-heading,
#changelog h2 > span + span {
    display: block;
    margin: 0;
    color: #44403c;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

#changelog h2 > span + span b {
    color: inherit;
    font-weight: inherit;
}

/* Knowledgebase: its own colour, so it does not read as a second FAQ block. */
[data-element="knowledgebase"] > section {
    background: #44403c;
}

/* Changelog: the same text sizes and colours as the rest of the page. */
#changelog h2 {
    margin-bottom: 12px;
}

#changelog h2 + p {
    color: #57534e;
    font-size: 16px;
    line-height: 28px;
}

#changelog .grid.gap-10 > div {
    color: #44403c;
    font-size: 16px;
}

#changelog .grid.gap-10 ul {
    gap: 2px;
    color: #57534e;
    font-size: 14px;
    line-height: 24px;
}

#changelog .grid.gap-10 ul b {
    color: #44403c;
}

#changelog .sticky h3 {
    color: #57534e;
}

#changelog .sticky svg {
    color: #9fa197;
}

/* Trust marks: a heading and a grid of cards instead of a list with yellow labels on white. */
[data-element="support-block"] {
    display: grid;
    gap: 24px;
    padding-top: 48px;
}

[data-element="support-block"] > * {
    border: 0 !important;
}

.pdp-support__header {
    margin-bottom: 8px;
}

[data-element="support-block"] > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    background: #f6f6f3;
}

[data-element="support-block"] > div > div:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

[data-element="support-block"] > div img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

[data-element="support-block"] > div h3 {
    margin: 0;
}

[data-element="support-block"] > div h3 > span:first-child {
    display: block;
    color: #9fa197;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

[data-element="support-block"] > div h3 > span + span {
    color: #44403c;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 1;
}

[data-element="support-block"] > div > div + div {
    gap: 12px;
    color: #57534e;
    font-size: 14px;
    line-height: 24px;
}

@media (min-width: 768px) {
    [data-element="support-block"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdp-support__header {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    [data-element="support-block"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: 80px;
    }

    [data-element="support-block"] > div {
        padding: 32px;
    }
}
