/* Reusable UI for the Digital Services product catalog. */

/* This stylesheet is only enqueued for products with a service design profile.
   Override the parent theme's inline hero dimensions without changing shop,
   category, or ordinary content-page headers. */

body.single-product .page-header {
    display: flex;
    align-items: center;
    height: auto !important;
    min-height: 300px;
    padding: 40px 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
    background: linear-gradient(115deg, #101d36 0%, #15325e 58%, #1757a2 100%) !important;
    overflow: hidden;
    isolation: isolate;
}
body.single-product .page-header > .page-header_wrapper {
    width: 100%;
    height: auto;
}
body.single-product .page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(174, 207, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(174, 207, 255, .055) 1px, transparent 1px),
        radial-gradient(ellipse at 90% 15%, rgba(75, 155, 255, .18), transparent 65%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
}
body.single-product .page-header .page-header_content {
    min-height: 100px;
    align-items: flex-end;
    justify-content: center;
}
body.single-product .page-header .page-header_wrapper_product {
    width: 100%;
}
body.single-product .page-header .page-header_breadcrumbs {
    align-self: flex-start;
    text-align: left;
    color: #fff !important;
}
body.single-product .page-header .breadcrumbs {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
body.single-product .page-header .breadcrumbs a {
    color: #c6d8f3;
}
body.single-product .page-header .breadcrumbs a:hover,
body.single-product .page-header .breadcrumbs a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
body.single-product .page-header .breadcrumbs .current {
    color: #fff;
}
@media (max-width: 767px) {
    body.single-product .page-header {
        min-height: 120px;
        padding: 28px 0 !important;
    }
    body.single-product .page-header .page-header_content {
        min-height: 64px;
    }
    body.single-product .page-header .page-header_breadcrumbs {
        font-size: 14px !important;
        line-height: 22px !important;
    }
}

.woocommerce div.product.coporton-service-product {
    --service-accent: #075cde;
    --service-ink: #17253e;
    --service-muted: #607086;
    --service-border: #dce4f0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 36px 56px;
    align-items: stretch;
    scroll-margin-top: 125px;
}
.woocommerce div.product.coporton-service-product .summary *,
.woocommerce div.product.coporton-service-product h1,
.woocommerce div.product.coporton-service-product h2,
.woocommerce div.product.coporton-service-product h3,
.woocommerce div.product.coporton-service-product label,
.woocommerce div.product.coporton-service-product legend { font-family: inherit; }
.woocommerce div.product.coporton-service-product::before,
.woocommerce div.product.coporton-service-product::after { display: none; }
.woocommerce div.product.coporton-service-product::before {
    content: "";
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: 0;
    border-bottom: 1px solid var(--service-border);
}
.woocommerce div.product.coporton-service-product > .summary,
.woocommerce div.product.coporton-service-product > .woocommerce-product-gallery { float: none; width: 100%; margin: 0; min-width: 0; }
.coporton-service-product > .woocommerce-tabs,
.coporton-service-product > .related,
.coporton-service-product > .up-sells { grid-column: 1 / -1; min-width: 0; }
.coporton-service-product .service-product-overview { display: flex; flex-direction: column; border: 1px solid var(--service-border); border-radius: 20px; overflow: hidden; }
.coporton-service-product .service-product-art { display: flex; min-height: 0; flex-direction: column; justify-content: center; padding: 28px 24px; color: var(--service-accent); background: linear-gradient(145deg, #eef4ff, #f6f9ff 70%, #e7efff); text-align: center; }
.coporton-service-product .service-product-art svg { display: block; width: 100%; height: auto; margin: 18px 0 8px; }
.coporton-service-product .service-product-art .service-product-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0px 0 18px; border-radius: 14px; }
.coporton-service-product .service-product-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.6; color: var(--service-accent); }
.coporton-service-product .service-product-preview-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.coporton-service-product .service-product-preview-tags span { padding: 3px 12px; border: 1px solid #d7e3fa; border-radius: 20px; background: #fff; font-size: 12px; }
.coporton-service-product .service-product-overview-copy { min-height: 0; padding: 28px; color: var(--service-muted); font-size: 14px; line-height: 1.8; }
.coporton-service-product .service-product-overview-copy h2 { color: var(--service-ink); font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.coporton-service-product .service-product-overview-copy ul { padding: 0 0 0 18px; margin: 18px 0; list-style: disc; }
.coporton-service-product .service-product-overview-copy ul li { display: list-item; list-style: disc; padding: 0 0 0 4px; margin: 0 0 8px; }
.coporton-service-product .service-product-overview-copy li::before { display: none; }
.coporton-service-product .service-product-disclaimer { border-top: 1px solid var(--service-border); padding-top: 16px; margin: 0; font-size: 12px; }
.woocommerce .coporton-service-product .summary .product_title { font-size: clamp(28px, 3vw, 40px); line-height: 1.18; letter-spacing: -.025em; color: var(--service-ink); margin: 0 0 16px; }
.woocommerce .coporton-service-product .summary > .price { font-size: 16px; margin-bottom: 18px; color: var(--service-muted); }
.coporton-service-product .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.8; color: var(--service-muted); margin-bottom: 26px; }
.coporton-service-product .service-product-config-heading { border-top: 1px solid var(--service-border); padding-top: 24px; }
.coporton-service-product .service-product-config-heading h2 { font-size: 20px; line-height: 1.4; margin: 0 0 4px; color: var(--service-ink); }
.coporton-service-product .service-product-config-heading p { font-size: 13px; color: var(--service-muted); margin-bottom: 18px; }
.woocommerce .coporton-service-product form.cart { margin: 0 !important; padding-bottom: 0; border-bottom: 0; }
.woocommerce .coporton-service-product form.cart table.variations { margin: 0 0 0px; }
.coporton-service-product .service-config-ready .variations tbody,
.coporton-service-product .service-config-ready .variations tr,
.coporton-service-product .service-config-ready .variations td { display: block; width: 100%; padding: 0; border: 0; }
.woocommerce div.product.coporton-service-product form.service-config-ready table.variations th.label { display: none; }
.woocommerce div.product.coporton-service-product form.service-config-ready table.variations tr,
.woocommerce div.product.coporton-service-product form.service-config-ready table.variations td { background: transparent; padding: 0; border: 0; }
.coporton-service-product .service-config-ready select[hidden] { display: none !important; }
.coporton-service-product .service-option-group { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.coporton-service-product .service-option-group legend { font-size: 14px; font-weight: 600; color: var(--service-ink); margin: 0 0 10px; padding: 0; }
.coporton-service-product .service-option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.coporton-service-product .service-option-choice { position: relative; margin: 0; cursor: pointer; font-size: 14px; line-height: 1.4; font-weight: 500; }
.coporton-service-product .service-option-choice input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.coporton-service-product .service-option-choice span { display: block; padding: 11px 18px; border: 1px solid var(--service-border); border-radius: 8px; background: #fff; color: var(--service-ink); transition: background .18s, border-color .18s, box-shadow .18s; }
.coporton-service-product .service-option-choice:hover span { border-color: #87abe4; }
.coporton-service-product .service-option-choice.is-selected span { border-color: var(--service-accent); color: var(--service-accent); background: #edf4ff; box-shadow: inset 0 0 0 1px var(--service-accent); }
.coporton-service-product .service-option-choice input:focus-visible + span { outline: 3px solid #93b9ff !important; outline-offset: 3px; }
.coporton-service-product .service-option-choice input:disabled + span { opacity: .4; cursor: not-allowed; }
.woocommerce div.product.coporton-service-product form.cart .reset_variations { font-size: 12px; color: var(--service-muted) !important; margin: 0; }
.woocommerce div.product.coporton-service-product form.cart .reset_variations::before { display: none; }
.woocommerce .coporton-service-product .woocommerce-variation-price { margin: 0px 0 18px; padding: 18px 20px; background: #f4f7fc; border: 1px solid var(--service-border); border-radius: 10px; }
.woocommerce .coporton-service-product .woocommerce-variation-price .price { font-size: 22px; line-height: 1.5; margin: 0; color: var(--service-accent); }
.woocommerce .coporton-service-product .coporton-cart-fields { clear: both; margin: 0 0 20px; padding: 22px; border: 1px solid var(--service-border); border-radius: 12px; background: #fff; }
.woocommerce .coporton-service-product .coporton-cart-fields.has-compact-apnic-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.woocommerce .coporton-service-product .coporton-cart-fields.has-compact-apnic-fields > * { grid-column: 1 / -1; }
.woocommerce .coporton-service-product .coporton-cart-fields.has-compact-apnic-fields > .service-product-field-half { grid-column: auto; min-width: 0; }
.coporton-service-product .coporton-cart-fields h3 { font-size: 17px; margin: 0 0 16px; color: var(--service-ink); }
.coporton-service-product .coporton-cart-fields label { font-size: 14px; color: var(--service-ink); font-weight: 500; }
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, textarea, select) { margin-top: 8px; width: 100%; background: #f8faff; border: 1px solid var(--service-border); border-radius: 8px; padding: 12px 14px; outline: 1px solid transparent; outline-offset: 0; transition: border-color .18s ease, box-shadow .18s ease, outline-color .18s ease; }
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, select) { height: 48px; }
.woocommerce .coporton-service-product .coporton-cart-fields textarea { min-height: 126px; resize: vertical; line-height: 1.6; }
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, textarea, select):focus,
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, textarea, select):focus-visible { border-color: rgba(51, 136, 255, 0.5) !important; box-shadow: 3px 3px 10px 0 rgb(194 205 220 / 50%); outline: 1px solid rgb(51 137 255 / 50%) !important; }
.coporton-service-product .service-product-field-help { color: var(--service-muted); font-size: 12px; line-height: 1.7; margin: 10px 0 0; }
.woocommerce .coporton-service-product form.cart .single_add_to_cart_button { width: 100%; float: none; margin: 0; border-radius: 8px; min-height: 52px; box-shadow: none; }
@media (max-width: 800px) {
    .woocommerce div.product.coporton-service-product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .woocommerce div.product.coporton-service-product::before { grid-row: 3; }
    .woocommerce div.product.coporton-service-product > .summary { grid-row: 2; }
    .coporton-service-product > .service-product-overview,
    .woocommerce div.product.coporton-service-product > .woocommerce-product-gallery { grid-row: 1; }
    .coporton-service-product .service-product-art,
    .coporton-service-product .service-product-overview-copy { flex: 0 0 auto; min-height: auto; }
    .coporton-service-product .service-product-art { padding: 20px; }
    .coporton-service-product .service-product-art svg { max-width: 300px; margin: 0 auto; }
    .coporton-service-product .service-product-overview-copy { padding: 20px; }
    .coporton-service-product .service-option-choice span { padding: 11px 15px; }
    .woocommerce .coporton-service-product .coporton-cart-fields.has-compact-apnic-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .coporton-service-product .service-option-choice span,
    .woocommerce .coporton-service-product .coporton-cart-fields :is(input, textarea) { transition: none; }
}

/* Equal field geometry: number/month inputs otherwise fall back to the
   browser's 13.33px control font, which shifts paired columns out of line. */
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, select, textarea, .coporton-ordering__trigger) {
    font-family: inherit;
    font-size: 16px;
    line-height: 22px;
    vertical-align: top;
}
.woocommerce .coporton-service-product .coporton-cart-fields :is(input, select) { display: block; height: 48px; padding: 12px 14px; }
.woocommerce .coporton-service-product .coporton-cart-fields .coporton-ordering { margin-top: 8px; }
.woocommerce .coporton-service-product .coporton-cart-fields .coporton-ordering__trigger { height: 48px; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid var(--service-border); font-weight: 400; color: var(--service-ink); }
.woocommerce .coporton-service-product .coporton-cart-fields .coporton-ordering.is-empty .coporton-ordering__value { font-weight: 400; }
.woocommerce .coporton-service-product .coporton-cart-fields > label { align-self: start; }
