/*
 * Custom: Standardized KYO Signature B2B product template.
 * Product-specific content is compact; sales and service sections are fixed.
 */

body.kyo-b2b-product-page {
    background: #f2f4f5;
}

body.kyo-b2b-product-page .product-main {
    padding: 30px 0 28px;
}

body.kyo-b2b-product-page .product-main > .row {
    align-items: flex-start;
    padding: 34px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(13, 39, 64, 0.05);
}

body.kyo-b2b-product-page .product-main .product-gallery.col,
body.kyo-b2b-product-page .product-main .product-info.summary {
    width: 50%;
    max-width: 50%;
    flex-basis: 50%;
}

body.kyo-b2b-product-page .product-main .product-gallery.col {
    padding: 0 32px 0 0;
}

body.kyo-b2b-product-page .product-gallery .product-images {
    overflow: hidden;
    border: 1px solid #e0e5e8;
    border-top: 2px solid #c99a3e;
    border-radius: 8px;
    background: #f1f3f4;
    box-shadow: 0 6px 18px rgba(13, 39, 64, 0.06);
}

body.kyo-b2b-product-page .product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails {
    display: block !important;
    width: calc(100% - 2px);
    margin: 16px 1px 0 !important;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails > .col,
body.kyo-b2b-product-page .product-gallery .product-thumbnails .flickity-slider > .col {
    width: calc((100% - 48px) / 4);
    max-width: calc((100% - 48px) / 4);
    margin-right: 16px;
    padding: 0 !important;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails a,
body.kyo-b2b-product-page .product-gallery .product-thumbnails img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    object-fit: cover;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails img {
    margin: 0 !important;
    transform: none !important;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails a {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    background: #f1f3f4;
    outline: 0;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails a::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid #dfe5e8;
    border-radius: 5px;
    content: "";
    pointer-events: none;
}

body.kyo-b2b-product-page .product-gallery .product-thumbnails .is-nav-selected a::after {
    border: 2px solid #d4a137;
}

/* Custom: Vertically center Flatsome gallery arrows against the thumbnail row. */
body.kyo-b2b-product-page .product-gallery .product-thumbnails .flickity-prev-next-button {
    top: 50% !important;
    width: 36px;
    height: 40px;
    margin-top: -20px !important;
}

body.kyo-b2b-product-page .product-info.summary {
    padding: 0 0 0 32px;
    border-left: 1px solid #e4e9ed;
}

body.kyo-b2b-product-page .kyo-b2b-summary__badge,
body.kyo-b2b-product-page .kyo-b2b-eyebrow,
body.kyo-b2b-product-page .kyo-b2b-related-card__body > span {
    color: #a87417;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.kyo-b2b-product-page .kyo-b2b-summary__badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6efde;
}

body.kyo-b2b-product-page .kyo-b2b-summary .product-title {
    margin: 12px 0 12px;
    color: #0d2740;
    font-size: 34px;
    line-height: 1.2;
}

body.kyo-b2b-product-page .kyo-b2b-summary__lead {
    margin: 0 0 20px;
    color: #52657a;
    font-size: 16px;
    line-height: 1.65;
}

body.kyo-b2b-product-page .kyo-b2b-summary__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 0;
    border: solid #e3e8eb;
    border-width: 1px 0;
    background: transparent;
}

body.kyo-b2b-product-page .kyo-b2b-summary__status span {
    color: #66788a;
    font-size: 14px;
}

body.kyo-b2b-product-page .kyo-b2b-summary__status strong {
    color: #a87518;
    font-size: 17px;
}

body.kyo-b2b-product-page .kyo-b2b-summary__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

body.kyo-b2b-product-page .kyo-b2b-summary__features li {
    position: relative;
    margin: 0;
    padding-left: 24px;
    color: #40566e;
}

body.kyo-b2b-product-page .kyo-b2b-summary__features li::before {
    position: absolute;
    left: 0;
    color: #c7932e;
    content: "✓";
    font-weight: 700;
}

body.kyo-b2b-product-page .kyo-b2b-summary__actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

body.kyo-b2b-product-page .kyo-b2b-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    margin: 0;
    padding: 0 22px;
    border-radius: 5px;
    font-weight: 700;
    line-height: 46px;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Custom: Add a lightweight, theme-colored icon to the consultation button. */
body.kyo-b2b-product-page .kyo-b2b-button--primary::before {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    content: "";
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body.kyo-b2b-product-page .kyo-b2b-button--primary::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0'/%3E%3Cpath d='M18 19c0 1.1-.9 2-2 2h-3'/%3E%3Cpath d='M4 13v3a2 2 0 0 0 2 2h1v-7H6a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M20 13v3a2 2 0 0 1-2 2h-1v-7h1a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0'/%3E%3Cpath d='M18 19c0 1.1-.9 2-2 2h-3'/%3E%3Cpath d='M4 13v3a2 2 0 0 0 2 2h1v-7H6a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M20 13v3a2 2 0 0 1-2 2h-1v-7h1a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E");
}

body.kyo-b2b-product-page .kyo-b2b-button--primary {
    flex: 1 1 auto;
    border-color: #d4a137;
    background: #d4a137;
    color: #0d2740;
}

body.kyo-b2b-product-page .kyo-b2b-button--secondary {
    border: 1px solid #d4a137;
    background: #d4a137 !important;
    color: #0d2740 !important;
}

body.kyo-b2b-product-page .kyo-b2b-button--primary:hover,
body.kyo-b2b-product-page .kyo-b2b-button--primary:focus-visible {
    border-color: #c7932e;
    background: #c7932e;
    color: #0d2740;
    box-shadow: 0 7px 18px rgba(13, 39, 64, 0.16);
    transform: translateY(-1px);
}

body.kyo-b2b-product-page .kyo-b2b-button--secondary:hover,
body.kyo-b2b-product-page .kyo-b2b-button--secondary:focus-visible {
    border-color: #c7932e;
    background: #c7932e !important;
    color: #0d2740 !important;
    box-shadow: 0 7px 18px rgba(13, 39, 64, 0.18);
    transform: translateY(-1px);
}

/* Custom: Keep consultation navy and Zalo gold wherever the two actions appear together. */
body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-b2b-button--primary {
    border-color: #0d2740;
    background: #0d2740;
    color: #fff;
}

body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-b2b-button--primary:hover,
body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-b2b-button--primary:focus-visible {
    border-color: #173f61;
    background: #173f61;
    color: #fff;
}

/* Custom: Keep the official-color Zalo logo consistent across B2B contact buttons. */
.kyo-zalo-logo {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    flex: 0 0 20px;
    border-radius: 4px;
    object-fit: contain;
}

body.kyo-b2b-product-page .kyo-b2b-order-card {
    padding: 20px 22px;
    border: 0;
    border-top: 2px solid #d4a137;
    border-radius: 7px;
    background: #f1f5f7;
    color: #40566e;
}

body.kyo-b2b-product-page .kyo-b2b-order-card h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dce4e9;
    color: #0d2740;
    font-size: 18px;
}

body.kyo-b2b-product-page .kyo-b2b-order-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0;
}

body.kyo-b2b-product-page .kyo-b2b-order-card dl > div {
    display: block;
    min-width: 0;
}

body.kyo-b2b-product-page .kyo-b2b-order-card dt {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    float: none;
    color: #a87518;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.kyo-b2b-product-page .kyo-b2b-order-card dd {
    display: block;
    width: 100%;
    margin: 0;
    float: none;
    color: #40566e;
    font-size: 13px;
    line-height: 1.45;
}

body.kyo-b2b-product-page .product-footer,
body.kyo-b2b-product-page .product-footer > .container {
    padding-top: 0;
    background: transparent;
}

body.kyo-b2b-product-page .product-footer > .container.row > .col.large-9 {
    max-width: 100%;
    flex-basis: 100%;
}

@media only screen and (min-width: 850px) {
    body.kyo-b2b-product-page .product-footer > .container.row > .col.large-9 {
        padding-right: 0;
        padding-left: 0;
    }
}

body.kyo-b2b-product-page .kyo-b2b-details,
body.kyo-b2b-product-page .kyo-b2b-related {
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.kyo-b2b-product-page .kyo-b2b-details {
    margin-bottom: 24px;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific,
body.kyo-b2b-product-page .kyo-b2b-fixed-value,
body.kyo-b2b-product-page .kyo-b2b-process,
body.kyo-b2b-product-page .kyo-b2b-faq,
body.kyo-b2b-product-page .kyo-b2b-related {
    padding: 44px 48px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(13, 39, 64, 0.045);
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value,
body.kyo-b2b-product-page .kyo-b2b-process,
body.kyo-b2b-product-page .kyo-b2b-faq {
    margin-top: 24px;
}

body.kyo-b2b-product-page .kyo-b2b-section-heading,
body.kyo-b2b-product-page .kyo-b2b-process__heading {
    display: block;
    margin-bottom: 26px;
    text-align: left;
}

body.kyo-b2b-product-page .kyo-b2b-related__heading {
    display: block;
    margin-bottom: 26px;
    text-align: left;
}

body.kyo-b2b-product-page .kyo-b2b-related__heading > div:first-child {
    max-width: 720px;
}

body.kyo-b2b-product-page .kyo-b2b-related__heading p {
    margin: 8px 0 0;
    color: #627286;
    font-size: 15px;
}

body.kyo-b2b-product-page .kyo-b2b-related__controls {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

body.kyo-b2b-product-page .kyo-b2b-related__arrow {
    position: absolute;
    top: 30%;
    display: flex;
    width: 42px;
    height: 68px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #52606d;
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 1px 8px #fff, 0 1px 8px #fff;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.kyo-b2b-product-page .kyo-b2b-related__arrow--prev {
    left: -37px;
    transform: translate(8px, -50%);
}

body.kyo-b2b-product-page .kyo-b2b-related__arrow--next {
    right: -37px;
    transform: translate(-8px, -50%);
}

body.kyo-b2b-product-page .kyo-b2b-related__arrow:hover,
body.kyo-b2b-product-page .kyo-b2b-related__arrow:focus-visible {
    color: #c58b1f;
}

body.kyo-b2b-product-page .kyo-b2b-related__arrow:disabled {
    cursor: default;
    opacity: 0;
    pointer-events: none;
}

body.kyo-b2b-product-page .kyo-b2b-related__slider:hover .kyo-b2b-related__arrow:not(:disabled),
body.kyo-b2b-product-page .kyo-b2b-related__arrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

body.kyo-b2b-product-page .kyo-b2b-related.is-static .kyo-b2b-related__controls {
    display: none;
}

body.kyo-b2b-product-page .kyo-b2b-section-heading h2,
body.kyo-b2b-product-page .kyo-b2b-process__heading h2,
body.kyo-b2b-product-page .kyo-b2b-related__heading h2 {
    margin: 5px 0 0;
    color: #0d2740;
    font-size: 29px;
    line-height: 1.3;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 42px;
    align-items: stretch;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__content,
body.kyo-b2b-product-page .kyo-b2b-product-specific__facts {
    height: 100%;
    box-sizing: border-box;
    padding: 26px 28px;
    border: 1px solid #dfe6ea;
    border-top: 2px solid #d4a137;
    border-radius: 8px;
    background: #f4f7f9;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific h3,
body.kyo-b2b-product-page .kyo-b2b-fixed-value h3 {
    margin: 0 0 12px;
    color: #0d2740;
    font-size: 21px;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__content > p {
    margin-bottom: 24px;
    color: #52657a;
    font-size: 16px;
    line-height: 1.7;
}

body.kyo-b2b-product-page .kyo-b2b-product-components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.kyo-b2b-product-page .kyo-b2b-product-components li {
    position: relative;
    margin: 0;
    padding: 11px 6px 11px 28px;
    border-bottom: 1px solid #e6ebee;
    color: #40566e;
}

body.kyo-b2b-product-page .kyo-b2b-product-components li::before,
body.kyo-b2b-product-page .kyo-b2b-fixed-value li::before {
    position: absolute;
    left: 4px;
    color: #c7932e;
    content: "✓";
    font-weight: 700;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts {
    display: flex;
    flex-direction: column;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dl {
    margin: 0;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dl > div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #dce4e9;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dt,
body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dd {
    margin: 0;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dt {
    color: #0d2740;
    font-weight: 700;
}

body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dd {
    color: #52657a;
}

body.kyo-b2b-product-page .kyo-b2b-product-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-left: 3px solid #d4a137;
    background: #faf6ec;
    color: #52657a;
    font-size: 13px;
    line-height: 1.55;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value {
    background: #fff;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #dbe3e8;
    border-radius: 8px;
    background: #fff;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value article {
    padding: 28px 32px;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value article + article {
    border-left: 1px solid #dbe3e8;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.kyo-b2b-product-page .kyo-b2b-fixed-value li {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 28px;
    color: #40566e;
}

body.kyo-b2b-product-page .kyo-b2b-process ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.kyo-b2b-product-page .kyo-b2b-process li {
    margin: 0;
    padding: 20px 18px;
    border: 1px solid #e1e7eb;
    border-radius: 7px;
    background: #fff;
}

body.kyo-b2b-product-page .kyo-b2b-process li > span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0d2740;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.kyo-b2b-product-page .kyo-b2b-process h3 {
    margin: 0 0 7px;
    color: #0d2740;
    font-size: 17px;
}

body.kyo-b2b-product-page .kyo-b2b-process p {
    margin: 0;
    color: #52657a;
    font-size: 13px;
    line-height: 1.55;
}

body.kyo-b2b-product-page .kyo-b2b-faq__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

body.kyo-b2b-product-page .kyo-b2b-faq details {
    padding: 0 18px;
    border: 1px solid #dfe6ea;
    border-radius: 7px;
    background: #f8fafb;
}

body.kyo-b2b-product-page .kyo-b2b-faq summary {
    position: relative;
    padding: 16px 28px 16px 0;
    color: #0d2740;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

body.kyo-b2b-product-page .kyo-b2b-faq summary::-webkit-details-marker {
    display: none;
}

body.kyo-b2b-product-page .kyo-b2b-faq summary::after {
    position: absolute;
    top: 14px;
    right: 0;
    color: #c7932e;
    content: "+";
    font-size: 22px;
    line-height: 1;
}

body.kyo-b2b-product-page .kyo-b2b-faq details[open] summary::after {
    content: "−";
}

body.kyo-b2b-product-page .kyo-b2b-faq details p {
    margin: 0;
    padding: 0 0 17px;
    color: #52657a;
    line-height: 1.6;
}

body.kyo-b2b-product-page .kyo-b2b-content-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 24px;
    padding: 30px 36px;
    border-radius: 9px;
    background: #0d2740;
    color: #fff;
}

body.kyo-b2b-product-page .kyo-b2b-content-cta h2 {
    margin: 3px 0 6px;
    color: #fff;
    font-size: 25px;
}

body.kyo-b2b-product-page .kyo-b2b-content-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

body.kyo-b2b-product-page .kyo-b2b-content-cta .kyo-b2b-eyebrow {
    color: #e0ad43;
}

body.kyo-b2b-product-page .kyo-b2b-content-cta .button {
    flex: 0 0 auto;
    margin: 0;
}

body.kyo-b2b-product-page .kyo-b2b-related__slider {
    position: relative;
}

body.kyo-b2b-product-page .kyo-b2b-related__rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    background: #fff;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

body.kyo-b2b-product-page .kyo-b2b-related__rail::-webkit-scrollbar {
    display: none;
}

body.kyo-b2b-product-page .kyo-b2b-related-card {
    display: flex;
    min-width: 0;
    flex: 0 0 calc((100% - 40px) / 3);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dce3e8;
    border-top: 2px solid #d4a137;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    scroll-snap-align: start;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e9eef1;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 28px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(145deg, #163a5a 0%, #0d2740 72%);
    color: #fff;
    transform-origin: center;
    transition: transform 0.35s ease;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover::before,
body.kyo-b2b-product-page .kyo-b2b-related-card__cover::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover::before {
    right: -24%;
    bottom: -33%;
    width: 74%;
    aspect-ratio: 1;
    border: 1px solid rgba(212, 161, 55, 0.7);
    border-radius: 50%;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover::after {
    top: 28px;
    right: 28px;
    width: 46px;
    height: 2px;
    background: #d4a137;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover > span,
body.kyo-b2b-product-page .kyo-b2b-related-card__cover small {
    position: relative;
    z-index: 1;
    color: #dcb04d;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__cover i {
    position: relative;
    z-index: 1;
    display: block;
    width: 54%;
    height: 1px;
    margin-top: auto;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.36);
}

body.kyo-b2b-product-page .kyo-b2b-related-card:nth-child(3n + 2) .kyo-b2b-related-card__cover {
    background: linear-gradient(145deg, #2c526f 0%, #12344f 72%);
}

body.kyo-b2b-product-page .kyo-b2b-related-card:nth-child(3n) .kyo-b2b-related-card__cover {
    background: linear-gradient(145deg, #314859 0%, #0d2740 72%);
}

@media only screen and (min-width: 850px) and (hover: hover) {
    body.kyo-b2b-product-page .kyo-b2b-related__rail {
        margin: -8px 0 -18px;
        /* Custom: Chừa 1px hai mép để viền card không bị overflow của rail cắt khi cuộn. */
        padding: 8px 1px 18px;
        scroll-padding-inline: 1px;
    }

    body.kyo-b2b-product-page .kyo-b2b-related-card:hover {
        border-color: #d4a137;
        transform: translateY(-4px);
    }

    body.kyo-b2b-product-page .kyo-b2b-related-card:hover img,
    body.kyo-b2b-product-page .kyo-b2b-related-card:hover .kyo-b2b-related-card__cover {
        transform: scale(1.035);
    }
}

body.kyo-b2b-product-page .kyo-b2b-related-card__body {
    display: flex;
    min-height: 188px;
    padding: 18px 20px 20px;
    flex: 1;
    flex-direction: column;
}

body.kyo-b2b-product-page .kyo-b2b-related-card h3 {
    margin: 7px 0 9px;
    color: #0d2740;
    font-size: 19px;
    line-height: 1.35;
}

body.kyo-b2b-product-page .kyo-b2b-related-card h3 a {
    color: inherit;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__link {
    display: inline-flex;
    width: fit-content;
    min-height: 0;
    margin-top: auto;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #0d2740;
    border-radius: 4px;
    background: #0d2740;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__body > p {
    margin: 0 0 17px;
    color: #627286;
    font-size: 14px;
    line-height: 1.55;
}

body.kyo-b2b-product-page .kyo-b2b-related-card__link:hover {
    background: #d4a137;
    border-color: #d4a137;
    color: #0d2740;
}

.kyo-b2b-mobile-cta {
    display: none;
}

@media only screen and (max-width: 849px) {
    body.kyo-b2b-product-page .product-main .product-gallery.col,
    body.kyo-b2b-product-page .product-main .product-info.summary {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    body.kyo-b2b-product-page .product-main .product-gallery.col {
        padding: 0;
    }

    body.kyo-b2b-product-page .product-info.summary {
        margin-top: 24px;
        padding: 24px 0 0;
        border-top: 1px solid #e4e9ed;
        border-left: 0;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-specific__grid {
        grid-template-columns: 1fr;
    }

    body.kyo-b2b-product-page .kyo-b2b-process ol {
        position: relative;
        display: block;
    }

    body.kyo-b2b-product-page .kyo-b2b-process ol::before {
        position: absolute;
        top: 18px;
        bottom: 18px;
        left: 18px;
        width: 1px;
        background: rgba(201, 154, 62, 0.45);
        content: "";
    }

    body.kyo-b2b-product-page .kyo-b2b-process li {
        position: relative;
        display: flex;
        gap: 14px;
        margin-bottom: 8px;
        padding: 10px 0;
        align-items: flex-start;
        border: 0;
    }

    body.kyo-b2b-product-page .kyo-b2b-process li > span {
        position: relative !important;
        z-index: 1;
        width: 36px;
        min-width: 36px;
        margin: 0;
        flex: 0 0 36px;
    }

    body.kyo-b2b-product-page .kyo-b2b-process li > div {
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media only screen and (max-width: 549px) {
    body.kyo-b2b-product-page {
        padding-bottom: 68px;
    }

    body.kyo-b2b-product-page .devvn_toolbar {
        display: none !important;
    }

    body.kyo-b2b-product-page .product-main {
        padding: 12px 0 16px;
    }

    body.kyo-b2b-product-page .product-main > .row {
        padding: 14px;
        border-radius: 7px;
    }

    body.kyo-b2b-product-page .product-info.summary {
        margin-top: 16px;
        padding-top: 18px;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary .product-title {
        font-size: 26px;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__lead {
        font-size: 15px;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__status {
        padding: 11px 0;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-bottom: 16px;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-b2b-button {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        gap: 6px;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-b2b-button--primary::before {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    body.kyo-b2b-product-page .kyo-b2b-summary__actions .kyo-zalo-logo {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        flex-basis: 18px;
    }

    body.kyo-b2b-product-page .kyo-b2b-order-card {
        padding: 17px;
    }

    body.kyo-b2b-product-page .kyo-b2b-order-card dl {
        gap: 12px;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-specific,
    body.kyo-b2b-product-page .kyo-b2b-fixed-value,
    body.kyo-b2b-product-page .kyo-b2b-process,
    body.kyo-b2b-product-page .kyo-b2b-faq,
    body.kyo-b2b-product-page .kyo-b2b-related {
        padding: 27px 18px;
        border-radius: 7px;
    }

    body.kyo-b2b-product-page .kyo-b2b-section-heading,
    body.kyo-b2b-product-page .kyo-b2b-process__heading,
    body.kyo-b2b-product-page .kyo-b2b-related__heading {
        margin-bottom: 20px;
    }

    body.kyo-b2b-product-page .kyo-b2b-section-heading h2,
    body.kyo-b2b-product-page .kyo-b2b-process__heading h2,
    body.kyo-b2b-product-page .kyo-b2b-related__heading h2 {
        font-size: 25px;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-specific__grid {
        gap: 24px;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-components {
        grid-template-columns: 1fr;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-components li {
        padding: 9px 4px 9px 27px;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-specific__facts {
        padding: 21px 18px;
    }

    body.kyo-b2b-product-page .kyo-b2b-product-specific__facts dl > div {
        grid-template-columns: 88px 1fr;
        gap: 9px;
    }

    body.kyo-b2b-product-page .kyo-b2b-fixed-value__grid {
        grid-template-columns: 1fr;
    }

    body.kyo-b2b-product-page .kyo-b2b-fixed-value article {
        padding: 22px 20px;
    }

    body.kyo-b2b-product-page .kyo-b2b-fixed-value article + article {
        border-top: 1px solid #dbe3e8;
        border-left: 0;
    }

    body.kyo-b2b-product-page .kyo-b2b-faq__list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.kyo-b2b-product-page .kyo-b2b-content-cta {
        display: block;
        padding: 24px 20px;
        text-align: center;
    }

    body.kyo-b2b-product-page .kyo-b2b-content-cta h2 {
        font-size: 22px;
    }

    body.kyo-b2b-product-page .kyo-b2b-content-cta .button {
        width: 100%;
        margin-top: 16px;
    }

    body.kyo-b2b-product-page .kyo-b2b-related {
        overflow: hidden;
    }

    body.kyo-b2b-product-page .kyo-b2b-related__heading {
        display: block;
        text-align: center;
    }

    body.kyo-b2b-product-page .kyo-b2b-related__heading p {
        font-size: 14px;
        line-height: 1.55;
    }

    body.kyo-b2b-product-page .kyo-b2b-related__controls {
        display: none;
    }

    body.kyo-b2b-product-page .kyo-b2b-related__rail {
        display: flex;
        gap: 12px;
        margin-right: -18px;
        padding-right: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    body.kyo-b2b-product-page .kyo-b2b-related__rail::-webkit-scrollbar {
        display: none;
    }

    body.kyo-b2b-product-page .kyo-b2b-related-card {
        min-width: 82%;
        flex-basis: 82%;
        scroll-snap-align: start;
    }

    body.kyo-b2b-product-page .kyo-b2b-related-card__body {
        min-height: 205px;
    }

    .kyo-b2b-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99999;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(13, 39, 64, 0.12);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(13, 39, 64, 0.12);
        backdrop-filter: blur(10px);
    }

    .kyo-b2b-mobile-cta a {
        display: inline-flex;
        min-height: 50px;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border-radius: 8px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.01em;
        transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
    }

    /* Custom: Add clear phone and chat icons to the mobile contact bar. */
    .kyo-b2b-mobile-cta__phone::before {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        background: currentColor;
        content: "";
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

    .kyo-b2b-mobile-cta__phone {
        border: 1px solid #0d2740;
        background: #0d2740;
        color: #fff;
        box-shadow: 0 5px 14px rgba(13, 39, 64, 0.18);
    }

    .kyo-b2b-mobile-cta__phone::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.56 2.81.69A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.56 2.81.69A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
    }

    .kyo-b2b-mobile-cta__zalo {
        border: 1px solid #d4a137;
        background: #d4a137;
        color: #0d2740;
        box-shadow: 0 5px 14px rgba(212, 161, 55, 0.22);
    }

    .kyo-b2b-mobile-cta__phone:hover,
    .kyo-b2b-mobile-cta__phone:focus-visible {
        border-color: #173f61;
        background: #173f61;
        color: #fff;
    }

    .kyo-b2b-mobile-cta__zalo:hover,
    .kyo-b2b-mobile-cta__zalo:focus-visible {
        border-color: #c7932e;
        background: #c7932e;
        color: #0d2740;
    }

    .kyo-b2b-mobile-cta a:active {
        box-shadow: none;
        transform: translateY(1px);
    }
}

/* Custom: Tighten the related-products transition into the global footer. */
body.kyo-b2b-product-page .kyo-b2b-related {
    margin-bottom: 12px;
}

body.kyo-b2b-product-page .product-footer .col.large-9 {
    padding-bottom: 12px;
}

body.kyo-b2b-product-page .product-footer .thong-so-ky-thuat-box {
    display: none !important;
}

/* Custom: On-page quote form shared by product and contact pages. */
body.kyo-quote-modal-open {
    overflow: hidden !important;
}

.kyo-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.kyo-quote-modal.is-open {
    display: flex;
}

.kyo-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 24, 42, 0.72);
    backdrop-filter: blur(4px);
}

.kyo-quote-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    padding: 0;
    border-top: 3px solid #d4a137;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 24, 42, 0.28);
}

.kyo-quote-modal__scroll {
    width: 100%;
    max-height: calc(100dvh - 35px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.kyo-quote-modal__dialog h2,
.kyo-contact-hero h1,
.kyo-contact-hero h2 {
    color: #0d2740;
}

.kyo-quote-modal__dialog h2 {
    margin: 5px 42px 7px 0;
    font-size: 28px;
}

.kyo-quote-modal__scroll > p {
    margin-bottom: 18px;
    color: #526576;
}

.kyo-quote-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 38px;
    height: 38px;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px;
    max-height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #d8e0e6;
    border-radius: 50%;
    background: #fff;
    color: #0d2740;
    font-size: 25px;
    line-height: 34px;
}

.kyo-quote-modal__close:hover,
.kyo-quote-modal__close:focus {
    border-color: #d4a137;
    background: #fff8e8;
    color: #0d2740;
}

.kyo-quote-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.kyo-quote-form__field,
.kyo-quote-form__field label {
    display: block;
    min-width: 0;
    margin: 0;
}

.kyo-quote-form__field--wide,
.kyo-quote-form__consent,
.kyo-quote-form__submit {
    grid-column: 1 / -1;
}

.kyo-quote-form label > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #1f3548;
    font-size: 13px;
    font-weight: 700;
}

.kyo-quote-form input:not([type="checkbox"]),
.kyo-quote-form textarea,
.kyo-quote-form select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    border: 1px solid #cfd9e1;
    border-radius: 6px;
    background: #fff;
    color: #263d50;
    font-weight: 600;
    box-shadow: none;
}

.kyo-quote-form input::placeholder,
.kyo-quote-form textarea::placeholder {
    color: #737373;
    opacity: 1;
}

.kyo-quote-form select:not(.kyo-form-control--has-value),
.kyo-quote-form input[type="date"]:not(.kyo-form-control--has-value) {
    color: #737373;
}

.kyo-quote-form select option {
    color: #263d50;
}

/* Custom: Keep the native date control inside its grid cell on iOS Safari. */
.kyo-quote-form .wpcf7-form-control-wrap[data-name="your-deadline"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 6px;
}

.kyo-quote-form input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    inline-size: 100%;
    min-inline-size: 0;
    box-sizing: border-box;
}

.kyo-quote-form input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}

/* Custom: iOS does not consistently render an empty date hint, so provide one without covering the picker. */
@supports (-webkit-touch-callout: none) {
    .kyo-quote-form .wpcf7-form-control-wrap[data-name="your-deadline"] {
        position: relative;
    }

    .kyo-quote-form .wpcf7-form-control-wrap[data-name="your-deadline"]:has(input[type="date"]:not(.kyo-form-control--has-value))::before {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 16px;
        color: #737373;
        content: "dd/mm/yyyy";
        font-weight: 600;
        pointer-events: none;
        transform: translateY(-50%);
    }

    /* Custom: Remove Safari's oversized intrinsic date box, then restore an explicit touch-friendly height. */
    .kyo-quote-form input[type="date"] {
        height: 46px;
        min-height: 46px;
        padding: 0 14px !important;
        -webkit-appearance: none;
        appearance: none;
        line-height: 46px;
    }

    .kyo-quote-form input[type="date"]::-webkit-date-and-time-value {
        display: flex;
        height: 46px;
        min-height: 46px;
        align-items: center;
        margin: 0;
        padding: 0;
        line-height: normal;
    }

    .kyo-quote-form input[type="date"]::-webkit-datetime-edit {
        display: flex;
        height: 46px;
        align-items: center;
        padding: 0;
    }
}

.kyo-quote-form textarea {
    height: 84px;
    min-height: 84px;
    resize: vertical;
}

.kyo-quote-form input:not([type="checkbox"]):focus,
.kyo-quote-form input:not([type="checkbox"]):focus-visible,
.kyo-quote-form textarea:focus,
.kyo-quote-form textarea:focus-visible,
.kyo-quote-form select:focus,
.kyo-quote-form select:focus-visible {
    border-color: #d4a137 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(212, 161, 55, 0.16) !important;
}

.kyo-quote-form__consent {
    color: #5d6d7a;
    font-size: 13px;
    line-height: 1.5;
}

.kyo-quote-form__consent .wpcf7-list-item {
    margin: 0;
}

.kyo-quote-form__consent .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.kyo-quote-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    border: 1.5px solid #aebbc5 !important;
    border-radius: 4px !important;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.kyo-quote-form__consent input[type="checkbox"]:checked {
    border-color: #d4a137 !important;
    background-color: #d4a137 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3 6.5 11.5 12.9 4.9' fill='none' stroke='%230d2740' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.kyo-quote-form__consent input[type="checkbox"]:focus,
.kyo-quote-form__consent input[type="checkbox"]:focus-visible,
.kyo-quote-form__consent input[type="checkbox"][aria-invalid="true"] {
    border-color: #d4a137 !important;
    border-radius: 4px !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(212, 161, 55, 0.18) !important;
}

.kyo-quote-form__consent .wpcf7-list-item-label {
    display: block;
}

.kyo-quote-form__submit input[type="submit"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    border: 1px solid #d4a137 !important;
    border-radius: 6px;
    background: #d4a137 !important;
    color: #0d2740 !important;
    font-weight: 800;
    opacity: 1 !important;
    cursor: pointer !important;
    text-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kyo-quote-form__submit input[type="submit"]:hover,
.kyo-quote-form__submit input[type="submit"]:focus {
    border-color: #0d2740 !important;
    background: #0d2740 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.kyo-quote-form__submit input[type="submit"]:focus-visible {
    outline: 3px solid rgba(212, 161, 55, 0.34);
    outline-offset: 2px;
}

@media only screen and (max-height: 760px) and (min-width: 550px) {
    .kyo-quote-modal__scroll {
        padding: 22px 26px;
    }

    .kyo-quote-modal__dialog h2 {
        font-size: 26px;
    }

    .kyo-quote-modal__scroll > p {
        margin-bottom: 12px;
    }

    .kyo-quote-form {
        gap: 9px 14px;
    }

    .kyo-quote-form input:not([type="checkbox"]),
    .kyo-quote-form textarea,
    .kyo-quote-form select {
        min-height: 42px;
    }

    .kyo-quote-form textarea {
        height: 68px;
        min-height: 68px;
    }
}

.kyo-quote-form .wpcf7-spinner {
    vertical-align: middle;
}

.kyo-quote-form .wpcf7-not-valid-tip {
    margin-top: 4px;
    font-size: 12px;
}

.kyo-quote-form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 4px 0 0 !important;
    border-radius: 6px;
}

/* Custom: Replace the obsolete contact content with a focused KYO quote page. */
body.kyo-b2b-contact-page .entry-title,
body.kyo-b2b-contact-page .page-title {
    display: none;
}

body.kyo-b2b-contact-page #main {
    background: #f3f6f8;
}

/* Custom: Remove Flatsome's extra white wrapper so the contact page has one clear card. */
body.kyo-b2b-contact-page #content.page-wrapper {
    padding: 24px 0 52px;
    background: transparent;
}

body.kyo-b2b-contact-page #content .row-main > .col {
    padding-bottom: 0;
}

body.kyo-b2b-contact-page #content .row-main > .col > .col-inner {
    padding: 0;
    background: transparent;
}

body.kyo-b2b-contact-page .entry-header {
    width: min(1140px, calc(100% - 30px));
    margin: 0 auto 18px;
}

body.kyo-b2b-contact-page .rank-math-breadcrumb p {
    margin: 0;
    color: #6d7d8c;
    font-size: 14px;
}

body.kyo-b2b-contact-page .rank-math-breadcrumb a {
    color: #405a72;
}

body.kyo-b2b-contact-page .rank-math-breadcrumb a:hover {
    color: #b77f13;
}

.kyo-contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 44px;
    width: min(1140px, calc(100% - 30px));
    margin: 0 auto;
    padding: 42px;
    border-top: 3px solid #d4a137;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(13, 39, 64, 0.09);
}

/* Custom: Keep the same contact design when the structure is owned by Flatsome UX Builder. */
.kyo-contact-builder-section {
    padding: 0 !important;
}

.kyo-contact-builder-section .kyo-contact-hero {
    display: grid !important;
    max-width: 1140px;
}

.kyo-contact-builder-section .kyo-contact-hero > .col {
    max-width: none;
    flex-basis: auto;
    padding-bottom: 0;
}

.kyo-contact-builder-section .kyo-contact-hero__intro {
    padding: 0;
}

.kyo-contact-builder-section .kyo-contact-hero__form {
    padding: 30px;
}

.kyo-contact-builder-section .kyo-contact-hero > .col > .col-inner {
    height: 100%;
}

.kyo-contact-builder-section .kyo-contact-hero__intro .ux-text > p {
    color: #526576;
    font-size: 18px;
    line-height: 1.7;
}

.kyo-contact-hero__intro .kyo-b2b-eyebrow {
    color: #b77f13;
    letter-spacing: 0.08em;
}

.kyo-contact-hero__intro h1 {
    max-width: 520px;
    margin: 8px 0 15px;
    font-size: clamp(34px, 3.6vw, 46px);
    line-height: 1.13;
}

.kyo-contact-hero__intro > p {
    color: #526576;
    font-size: 18px;
    line-height: 1.7;
}

.kyo-contact-hero__intro ul {
    margin: 24px 0;
    list-style: none;
}

.kyo-contact-hero__intro li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
    color: #263d50;
}

.kyo-contact-hero__intro li::before {
    position: absolute;
    left: 0;
    color: #c58f24;
    content: "✓";
    font-weight: 800;
}

.kyo-contact-hero__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kyo-contact-hero__channels a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #0d2740;
    border-radius: 6px;
    color: #0d2740;
    font-weight: 700;
}

/* Custom: Match contact-page channel colors to the sitewide call/Zalo convention. */
.kyo-contact-hero__channels .kyo-contact-channel--phone {
    border-color: #0d2740;
    background: #0d2740;
    color: #fff;
}

.kyo-contact-hero__channels .kyo-contact-channel--phone::before {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    content: "";
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.56 2.81.69A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.85.56 2.81.69A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.kyo-contact-hero__channels .kyo-contact-channel--zalo {
    border-color: #d4a137;
    background: #d4a137;
    color: #0d2740;
}

.kyo-contact-hero__channels .kyo-contact-channel--phone:hover,
.kyo-contact-hero__channels .kyo-contact-channel--phone:focus-visible {
    border-color: #173f61;
    background: #173f61;
    color: #fff;
}

.kyo-contact-hero__channels .kyo-contact-channel--zalo:hover,
.kyo-contact-hero__channels .kyo-contact-channel--zalo:focus-visible {
    border-color: #c7932e;
    background: #c7932e;
    color: #0d2740;
}

.kyo-contact-hero__form {
    padding: 30px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #f6f8fa;
}

.kyo-contact-hero__form h2 {
    margin: 0 0 20px;
    font-size: 27px;
}

@media only screen and (max-width: 849px) {
    body.kyo-b2b-contact-page #content.page-wrapper {
        padding: 18px 0 36px;
    }

    body.kyo-b2b-contact-page .entry-header {
        margin-bottom: 14px;
    }

    .kyo-contact-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px;
    }
}

@media only screen and (max-width: 549px) {
    .kyo-quote-modal {
        align-items: flex-end;
        padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    }

    .kyo-quote-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 18px);
        max-height: calc(100dvh - 8px - max(10px, env(safe-area-inset-bottom)));
        border-radius: 14px;
    }

    .kyo-quote-modal__scroll {
        max-height: calc(100vh - 18px);
        max-height: calc(100dvh - 8px - max(10px, env(safe-area-inset-bottom)));
        padding: 26px 18px 24px;
    }

    .kyo-quote-modal__dialog h2 {
        font-size: 25px;
    }

    .kyo-quote-form {
        grid-template-columns: 1fr;
    }

    .kyo-quote-form__field,
    .kyo-quote-form__field--wide,
    .kyo-quote-form__consent,
    .kyo-quote-form__submit {
        grid-column: 1;
    }

    .kyo-quote-form__submit input[type="submit"] {
        width: 100%;
    }

    .kyo-quote-form textarea {
        height: 72px;
        min-height: 72px;
    }

    .kyo-contact-hero {
        width: calc(100% - 24px);
        padding: 22px 18px;
    }

    body.kyo-b2b-contact-page .entry-header {
        width: calc(100% - 24px);
    }

    .kyo-contact-hero__intro h1 {
        font-size: 32px;
    }

    .kyo-contact-hero__intro > p {
        font-size: 16px;
    }

    .kyo-contact-hero__form {
        padding: 20px 15px;
    }
}

/* Custom: Neutralize Flatsome row/column spacing while preserving editable UX Builder wrappers. */
.kyo-contact-builder-section .kyo-contact-hero {
    margin: 0 auto !important;
    padding: 42px !important;
}

.kyo-contact-builder-section .kyo-contact-hero__form {
    padding: 30px !important;
}

.kyo-contact-builder-section .kyo-contact-hero > .col > .col-inner {
    padding: 0 !important;
    background: transparent !important;
}

/* Custom: Lower the desktop form slightly so its visual center aligns with the consultation copy. */
@media only screen and (min-width: 850px) {
    .kyo-contact-builder-section .kyo-contact-hero__form {
        margin-top: 14px;
    }
}

@media only screen and (max-width: 849px) {
    .kyo-contact-builder-section .kyo-contact-hero {
        padding: 28px !important;
    }
}

@media only screen and (max-width: 549px) {
    .kyo-contact-builder-section .kyo-contact-hero {
        padding: 22px 18px !important;
    }

    /* Custom: Keep the call and Zalo actions balanced in one row on mobile. */
    .kyo-contact-builder-section .kyo-contact-hero__channels {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .kyo-contact-builder-section .kyo-contact-hero__channels a {
        width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 0 6px;
        justify-content: center;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
    }

    .kyo-contact-builder-section .kyo-contact-channel--phone::before {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .kyo-contact-builder-section .kyo-contact-channel--zalo .kyo-zalo-logo {
        width: 18px;
        height: 18px;
    }

    .kyo-contact-builder-section .kyo-contact-hero__form {
        padding: 20px 15px !important;
        margin-top: 0;
    }

    .kyo-contact-builder-section .kyo-contact-hero__form h2 {
        margin-bottom: 14px;
    }

    /* Custom: Contact actions already sit above the form, so avoid covering the mobile submit button. */
    body.kyo-b2b-contact-page .devvn_toolbar.devvn_toolbar_right {
        display: none !important;
    }

    /* Custom: Pair the two compact ordering fields while keeping critical and free-text fields full width. */
    .kyo-contact-builder-section .kyo-quote-form {
        grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
        gap: 14px 10px;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(1),
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(2),
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(5),
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(6),
    .kyo-contact-builder-section .kyo-quote-form__consent,
    .kyo-contact-builder-section .kyo-quote-form__submit {
        grid-column: 1 / -1;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(3) {
        grid-column: 1;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(4) {
        grid-column: 2;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(3) label > span:first-child,
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(4) label > span:first-child {
        min-height: 38px;
        display: flex;
        align-items: flex-end;
        line-height: 1.25;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(4) select {
        padding-right: 26px;
        font-size: 13px;
    }
}

/* Custom: On standard modern iPhones, pair the two primary contact fields without squeezing smaller screens. */
@media only screen and (min-width: 360px) and (max-width: 549px) {
    .kyo-contact-builder-section .kyo-quote-form {
        grid-template-columns: repeat(20, minmax(0, 1fr));
        column-gap: 0;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(1) {
        grid-column: 1 / 21;
        margin: 0;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(2) {
        grid-column: 1 / 11;
        margin-right: 5px;
        margin-left: 0;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(3) {
        grid-column: 11 / 21;
        margin-right: 0;
        margin-left: 5px;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(4) {
        grid-column: 1 / 11;
        margin-right: 5px;
        margin-left: 0;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(5) {
        grid-column: 11 / 21;
        margin-right: 0;
        margin-left: 5px;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(6),
    .kyo-contact-builder-section .kyo-quote-form__consent,
    .kyo-contact-builder-section .kyo-quote-form__submit {
        grid-column: 1 / 21;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(2) label > span:first-child,
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(3) label > span:first-child,
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(4) label > span:first-child,
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(5) label > span:first-child {
        min-height: 38px;
        display: flex;
        align-items: flex-end;
        line-height: 1.25;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(2) input,
    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(3) input {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .kyo-contact-builder-section .kyo-quote-form__field:nth-child(5) input[type="date"] {
        padding-right: 10px !important;
        padding-left: 10px !important;
        font-size: 13px;
    }

    /* Custom: Reuse the same compact field grid inside the global mobile quote popup. */
    .kyo-quote-modal .kyo-quote-form {
        grid-template-columns: repeat(20, minmax(0, 1fr));
        column-gap: 0;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(1) {
        grid-column: 1 / 21;
        margin: 0;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(2) {
        grid-column: 1 / 11;
        margin-right: 5px;
        margin-left: 0;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(3) {
        grid-column: 11 / 21;
        margin-right: 0;
        margin-left: 5px;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(4) {
        grid-column: 1 / 11;
        margin-right: 5px;
        margin-left: 0;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(5) {
        grid-column: 11 / 21;
        margin-right: 0;
        margin-left: 5px;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(6),
    .kyo-quote-modal .kyo-quote-form__consent,
    .kyo-quote-modal .kyo-quote-form__submit {
        grid-column: 1 / 21;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(2) label > span:first-child,
    .kyo-quote-modal .kyo-quote-form__field:nth-child(3) label > span:first-child,
    .kyo-quote-modal .kyo-quote-form__field:nth-child(4) label > span:first-child,
    .kyo-quote-modal .kyo-quote-form__field:nth-child(5) label > span:first-child {
        min-height: 38px;
        display: flex;
        align-items: flex-end;
        line-height: 1.25;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(2) input,
    .kyo-quote-modal .kyo-quote-form__field:nth-child(3) input {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(4) select {
        padding-right: 26px;
        font-size: 13px;
    }

    .kyo-quote-modal .kyo-quote-form__field:nth-child(5) input[type="date"] {
        padding-right: 10px !important;
        padding-left: 10px !important;
        font-size: 13px;
    }
}
