/* All styling applies only after the existing product layout has been recognized. */
.g2dv-product {
    --g2dv-ink: #122e3e;
    --g2dv-muted: #36586b;
    --g2dv-link: #006885;
    --g2dv-blue: #2db6de;
    --g2dv-pale: #eaf5f9;
    --g2dv-line: #cfe3ed;
    --g2dv-radius: 15px;
}
.g2dv-product .g2dv-source[hidden] { display: none !important; }

.g2dv-product .g2dv-layout {
    width: min(100% - 3rem, var(--site-content-width, 1300px));
    margin: 0 auto clamp(1rem, 3vw, 2.5rem);
}
.g2dv-product .g2dv-layout > .g-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    font-size: .875rem;
    margin-bottom: 1rem;
}
.g2dv-product .g2dv-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.3vw, 2rem);
}
.g2dv-product .g2dv-picture {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--g2dv-radius);
    background: #20292e;
    overflow: hidden;
}
.g2dv-product .g2dv-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.g2dv-product .g2dv-enlarge {
    position: absolute;
    right: .8rem;
    bottom: .8rem;
    padding: .25rem .65rem;
    border: 1px solid #ffffff60;
    border-radius: 6px;
    color: #fff;
    background: #12212ae8;
    font-size: .85rem;
}
.g2dv-product .g2dv-thumbs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
    margin: .6rem 0 0;
}
.g2dv-product .g2dv-thumbs button {
    width: 100%;
    padding: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 7px;
    background: var(--g2dv-pale);
    cursor: pointer;
}
.g2dv-product .g2dv-thumbs button[aria-pressed="true"] { border-color: var(--g2dv-link); }
.g2dv-product .g2dv-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g2dv-product .g2dv-dialog {
    max-width: 96vw;
    max-height: 96vh;
    padding: .6rem;
    border: 0;
    border-radius: 10px;
    background: #132733;
    color: #fff;
}
.g2dv-product .g2dv-dialog::backdrop { background: #09131ded; }
.g2dv-product .g2dv-dialog img { max-height: 83vh; display: block; margin: 0 auto; object-fit: contain; }
.g2dv-product .g2dv-dialog button { padding: .35rem .7rem; margin: 0 0 .4rem; border-radius: 6px; cursor: pointer; }
.g2dv-product .g2dv-details {
    padding: clamp(1.1rem, 3vw, 2.5rem);
    border: 1px solid var(--g2dv-line);
    border-radius: var(--g2dv-radius);
    color: var(--g2dv-ink);
    background: linear-gradient(135deg, #f4f9fc, #e7f3f8);
}
.g2dv-product .g2dv-details::before {
    content: "";
    display: block;
    height: 4px;
    width: 3rem;
    border-radius: 4px;
    background: var(--g2dv-blue);
    margin-bottom: 1rem;
}
.g2dv-product .g2dv-details h1 {
    font-size: clamp(1.75rem, 3.7vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    text-align: left;
    padding: 0;
    margin: 0 0 1rem;
    color: inherit;
    overflow-wrap: break-word;
}
.g2dv-product .g2dv-intro { color: var(--g2dv-muted); }
.g2dv-product .g2dv-intro p { margin-bottom: .75em; }
.g2dv-product .g2dv-intro a { color: var(--g2dv-link); text-decoration: underline; }
.g2dv-product .g2dv-price {
    border-top: 1px solid var(--g2dv-line);
    padding-top: .8rem;
    margin: 1rem 0 .15rem;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
}
.g2dv-product .g2dv-note { margin: 0; color: var(--g2dv-muted); font-size: .88rem; }
.g2dv-product .g2dv-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.g2dv-product .g2dv-cta {
    display: inline-block;
    padding: .67rem .95rem;
    border: 1px solid var(--g2dv-link);
    border-radius: 7px;
    background: var(--g2dv-link);
    color: white;
    text-align: center;
    font-weight: 700;
    line-height: 1.35;
}
.g2dv-product .g2dv-cta:hover { color: #fff; border-color: #004e68; background: #004e68; }
.g2dv-product .g2dv-cta.g2dv-secondary { color: var(--g2dv-link); background: #fff; }
.g2dv-product .g2dv-cta.g2dv-secondary:hover { color: #00415b; background: #d9eef7; }
.g2dv-product :is(.g2dv-picture, .g2dv-cta, .g2dv-thumbs button, .g2dv-table-frame):focus-visible {
    outline: 2px solid var(--g2dv-link);
    outline-offset: 3px;
}
.g2dv-product .g2dv-pricing,
.g2dv-product .g2dv-quote,
.g2dv-product .g2dv-article .w-tabs-section-content-h {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--g2dv-line);
    border-radius: var(--g2dv-radius);
    background: #fff;
}
.g2dv-product .g2dv-pricing {
    color: var(--g2dv-ink);
    margin-top: clamp(1rem, 3vw, 2.25rem);
    scroll-margin-top: 145px;
}
.g2dv-product .g2dv-pricing h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    padding: 0;
    margin: 0 0 .75rem;
    color: inherit;
}
.g2dv-product .g2dv-table-frame { overflow-x: auto; border: 1px solid var(--g2dv-line); border-radius: 9px; }
.g2dv-product .g2dv-table-frame table {
    width: 100%;
    min-width: 30rem;
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: .95rem;
    text-align: left;
}
.g2dv-product .g2dv-table-frame caption {
    background: #f6fafc;
    text-align: left;
    padding: .55rem .75rem;
    color: var(--g2dv-muted);
}
.g2dv-product .g2dv-table-frame :is(td, th) {
    border: 0;
    border-bottom: 1px solid var(--g2dv-line);
    text-align: left;
    padding: .55rem .75rem;
    white-space: normal;
}
.g2dv-product .g2dv-table-frame thead th { background: var(--g2dv-pale); }
.g2dv-product .g2dv-table-frame tbody tr:last-child > * { border-bottom: 0; }
.g2dv-product .g2dv-costs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem 1rem;
    margin: 1rem 0 0;
    color: var(--g2dv-muted);
    font-size: .9rem;
}
.g2dv-product .g2dv-costs dt { font-weight: 700; }
.g2dv-product .g2dv-costs dd { margin: 0; }
.g2dv-product .g2dv-anchor { scroll-margin-top: 145px; }
.g2dv-product .g2dv-quote-section > .l-section-h { padding-top: .75rem; }
.g2dv-product .g2dv-article .w-tabs-section-content-h { overflow-wrap: break-word; }

@media (max-width: 700px) {
    .g2dv-product .g2dv-layout { width: calc(100% - 2rem); }
    .g2dv-product .g2dv-hero { grid-template-columns: minmax(0, 1fr); }
    .g2dv-product .g2dv-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .g2dv-product .g2dv-costs { grid-template-columns: minmax(0, 1fr); }
    .g2dv-product .g2dv-anchor,
    .g2dv-product .g2dv-pricing { scroll-margin-top: 95px; }
}

.g2dv-product .g2dv-coupe-pricing .g2dv-table-frame table { min-width: 0; }
