﻿/*
 * GSMUnlockUSA Unlock Instructions V115
 * Products-style Related Services Cluster / FIRST GROUP ONLY
 *
 * Scope:
 * - V111 Topic-first instruction layout remains authoritative.
 * - Products Search V7.10/V7.11 + keyword chips are reused as an entry point.
 * - V110 owns service-row geometry.
 * - This file only connects those shared components to Unlock Instructions and
 *   makes the cart icon a direct Submit Order action while all other row links remain Product Detail links.
 */

.gsm-instruction-products-cluster-v114 {
    width: 100%;
    box-sizing: border-box;
}

/* The old V112 title/subtitle is intentionally removed: this section now starts
   with the same Search + featured-keyword cluster used by Products & Services. */
.gsm-instruction-service-search-top-v114 {
    width: 100%;
    max-width: 100%;
    margin: 0 0 7px 0;
    padding: 0;
    box-sizing: border-box;
}

.gsm-instruction-search-v114 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Keep the keyword row visually connected to the first group. */
.gsm-instruction-search-v114 .service-search-common {
    margin-bottom: 0;
}

.gsm-instruction-service-list-v114 {
    margin-top: 5px;
}

/* V110 supplies the approved Products/Index/Product Detail row geometry.
   Unlock Instructions keeps the compact cart icon instead of the desktop
   text "Order" CTA. V115 routes that icon directly to Submit Order. */
/* Header Price must share the same right edge as the price values below. */
.gsm-instruction-service-list-v114 .table-service
> tbody > .tr-header > td:nth-child(3):not([colspan]) {
    text-align: right !important;
}

.gsm-instruction-service-list-v114 .table-service
.tr-detail-list > td:last-child > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    min-width: 30px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 2px !important;
    margin: 0 auto !important;
    border: 1px solid #d5e3ec !important;
    border-radius: 5px !important;
    background: #f8fbfd !important;
    color: inherit !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 24px !important;
}

.gsm-instruction-service-list-v114 .table-service
.tr-detail-list > td:last-child > a:hover,
.gsm-instruction-service-list-v114 .table-service
.tr-detail-list > td:last-child > a:focus {
    border-color: #9ed2ed !important;
    background: #eef8fd !important;
    color: inherit !important;
    outline: none !important;
}

.gsm-instruction-service-list-v114 .table-service
.tr-detail-list > td:last-child > a:after {
    content: none !important;
    display: none !important;
}

.gsm-instruction-service-list-v114 .table-service
.tr-detail-list > td:last-child > a .img-cart {
    display: inline-block !important;
    width: 21px !important;
    max-width: 21px !important;
    min-width: 21px !important;
    height: auto !important;
}

.gsm-instruction-service-list-v114 .divTableR:first-child {
    margin-top: 0 !important;
}

.gsm-instruction-service-list-v114 #divMore.timeline-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.gsm-instruction-first-group-error-v114 {
    margin: 6px 0 4px;
    padding: 10px 12px;
    border: 1px solid #dce7ee;
    border-radius: 6px;
    background: #f8fbfd;
    color: #60798a;
    font-size: 12px;
    line-height: 17px;
    text-align: center;
}

.gsm-instruction-first-group-error-v114 a {
    color: #0878b5 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.gsm-instruction-first-group-error-v114 a:hover,
.gsm-instruction-first-group-error-v114 a:focus {
    text-decoration: underline !important;
}

.gsm-instruction-service-list-v114 .gsm-instruction-direct-order-v115 {
    cursor: pointer !important;
}

@media (max-width: 767px) {
    /* Search/chips retain the approved Products search gutter. V7.10 JS/CSS
       measures the actual root; V110 independently expands ONLY the service
       group/list to ~4px from each viewport edge. */
    .gsm-instruction-service-search-top-v114 {
        margin-bottom: 6px;
    }

    .gsm-instruction-service-list-v114 {
        margin-top: 4px;
    }

    .gsm-instruction-service-list-v114 .table-service
    .tr-detail-list > td:last-child > a {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        min-height: 26px !important;
        padding: 1px !important;
    }

    .gsm-instruction-service-list-v114 .table-service
    .tr-detail-list > td:last-child > a .img-cart {
        width: 19px !important;
        max-width: 19px !important;
        min-width: 19px !important;
    }
}
