﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* =========================================================
   Tech Souq storefront overrides
   ========================================================= */

/* Header - English is the only storefront language currently exposed. */
.techsouq-language-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.techsouq-language-current .left-image {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
}

/* Keep the dedicated sticky header compact and vertically aligned. */
.rbt-header-common-sticky-activation.rbt-sticky {
    overflow: visible;
}

.rbt-header-common-sticky-activation .mainbar-row.rbt-mainbar-row-md-height {
    min-height: 68px;
}

.rbt-header-common-sticky-activation .rbt-mainmenu-nav,
.rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu {
    width: 100%;
}

.rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
}

.rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu > li {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu > li > a {
    height: 68px !important;
    line-height: 1.25 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px !important;
    white-space: nowrap;
    font-size: 14px;
}

.rbt-header-common-sticky-activation .logo.rbt-logo-height-sm a img {
    max-height: 30px;
    width: auto;
}

.rbt-header-common-sticky-activation .header-left {
    flex: 0 0 auto;
    margin-right: 22px;
}

.rbt-header-common-sticky-activation .rbt-header-content.flex-grow-1 {
    min-width: 0;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu {
        gap: 4px;
    }

    .rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu > li > a {
        padding: 0 5px !important;
        font-size: 13px;
    }

    .rbt-header-common-sticky-activation .header-left {
        margin-right: 14px;
    }
}

/* Mobile navigation - use only live Tech Souq catalogue data. */
.popup-mobile-menu .techsouq-mobile-category-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-mobile-menu .techsouq-mobile-category-menu > li > a > .fa-chevron-down {
    margin-left: auto;
}

.popup-mobile-menu .techsouq-mobile-contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
}

.popup-mobile-menu .techsouq-mobile-contact-list li,
.popup-mobile-menu .techsouq-mobile-contact-list li a,
.popup-mobile-menu .techsouq-mobile-contact-list li span {
    width: 100%;
}

.popup-mobile-menu .techsouq-mobile-contact-list li a,
.popup-mobile-menu .techsouq-mobile-contact-list li span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Home popular products - equal visual rhythm across the grid. */
#rbt-product-block-01 .row.row--12.mt_dec--24 > [class*="col-"] {
    display: flex;
}

#rbt-product-block-01 .rbt-product-card {
    width: 100%;
    height: 100%;
}

#rbt-product-block-01 .rbt-product-card > .inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#rbt-product-block-01 .rbt-product-card .rbt-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

#rbt-product-block-01 .rbt-product-card .rbt-card-title {
    min-height: 5.8em;
    line-height: 1.45;
    margin-bottom: 10px;
}

#rbt-product-block-01 .rbt-product-card .rbt-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#rbt-product-block-01 .rbt-product-card .pricing-part {
    min-height: 58px;
    align-content: flex-start;
}

#rbt-product-block-01 .rbt-product-card .prd-btn-grp {
    margin-top: auto;
}

@media only screen and (max-width: 575px) {
    #rbt-product-block-01 .rbt-product-card .rbt-card-title {
        min-height: 5.4em;
    }
}

/* Shopping cart */
.rbt-cart-page .techsouq-cart-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible !important;
}

.rbt-cart-page .rbt-transparent-table-one {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
}

.rbt-cart-page .rbt-transparent-table-one th,
.rbt-cart-page .rbt-transparent-table-one td {
    white-space: normal !important;
    vertical-align: middle;
}

.rbt-cart-page .rbt-transparent-table-one th:nth-child(1),
.rbt-cart-page .rbt-transparent-table-one td:nth-child(1) {
    width: 52%;
}

.rbt-cart-page .rbt-transparent-table-one th:nth-child(2),
.rbt-cart-page .rbt-transparent-table-one td:nth-child(2),
.rbt-cart-page .rbt-transparent-table-one th:nth-child(3),
.rbt-cart-page .rbt-transparent-table-one td:nth-child(3),
.rbt-cart-page .rbt-transparent-table-one th:nth-child(4),
.rbt-cart-page .rbt-transparent-table-one td:nth-child(4) {
    width: 16%;
}

.rbt-cart-page .cart-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.rbt-cart-page .cart-product-card .product-thumbnail {
    flex: 0 0 auto;
}

.rbt-cart-page .cart-product-card > .d-flex {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.rbt-cart-page .rbt-wish-product-name {
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
}

.rbt-cart-page .rbt-wish-product-name a {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.rbt-cart-page .rbt-product-id {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.rbt-cart-page .price-text {
    white-space: nowrap !important;
}

.rbt-cart-page .rbt-qty-area {
    white-space: nowrap;
}

.techsouq-cart-remove-button {
    width: max-content;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #a71919;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.techsouq-cart-remove-button:hover,
.techsouq-cart-remove-button:focus {
    border-color: #a71919;
    background: #fff5f5;
}

.techsouq-cart-remove-button i {
    margin-right: 5px;
}

.rbt-minicart-wrapper .js-techsouq-cart-remove {
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
}

@media only screen and (max-width: 991px) {
    .rbt-cart-page .rbt-transparent-table-one th:nth-child(1),
    .rbt-cart-page .rbt-transparent-table-one td:nth-child(1) {
        width: 46%;
    }

    .rbt-cart-page .rbt-transparent-table-one th:nth-child(2),
    .rbt-cart-page .rbt-transparent-table-one td:nth-child(2),
    .rbt-cart-page .rbt-transparent-table-one th:nth-child(3),
    .rbt-cart-page .rbt-transparent-table-one td:nth-child(3),
    .rbt-cart-page .rbt-transparent-table-one th:nth-child(4),
    .rbt-cart-page .rbt-transparent-table-one td:nth-child(4) {
        width: 18%;
    }
}

@media only screen and (max-width: 767px) {
    .rbt-cart-page .techsouq-cart-table-wrap {
        overflow: visible !important;
    }

    .rbt-cart-page .rbt-transparent-table-one,
    .rbt-cart-page .rbt-transparent-table-one thead,
    .rbt-cart-page .rbt-transparent-table-one tbody,
    .rbt-cart-page .rbt-transparent-table-one tr,
    .rbt-cart-page .rbt-transparent-table-one th,
    .rbt-cart-page .rbt-transparent-table-one td {
        display: block;
        width: 100% !important;
    }

    .rbt-cart-page .rbt-transparent-table-one thead {
        display: none;
    }

    .rbt-cart-page .rbt-transparent-table-one tbody tr {
        padding: 16px;
        border-bottom: 1px solid var(--color-gray-200);
    }

    .rbt-cart-page .rbt-transparent-table-one tbody td {
        padding: 8px 0;
        border: 0;
    }

    .rbt-cart-page .cart-product-card {
        align-items: flex-start;
    }

    .rbt-cart-page .price-text {
        white-space: normal !important;
    }
}

/* Legal / policy pages - no hero or banner, content follows the main header. */
.techsouq-policy-page {
    background: var(--color-white);
    padding: 52px 0 72px;
}

.techsouq-policy-content {
    max-width: 980px;
    margin: 0 auto;
    color: var(--color-body);
}

.techsouq-policy-content h1 {
    margin: 0 0 24px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
}

.techsouq-policy-content h2 {
    margin: 30px 0 10px;
    font-size: 21px;
    line-height: 1.35;
}

.techsouq-policy-content p,
.techsouq-policy-content li {
    font-size: 16px;
    line-height: 1.75;
}

.techsouq-policy-content ul,
.techsouq-policy-content ol {
    margin: 10px 0 0;
    padding-left: 24px;
}

.techsouq-policy-content li + li {
    margin-top: 6px;
}

.techsouq-policy-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.techsouq-policy-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 32px;
    padding: 20px 22px;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    background: var(--color-gray-light);
}

.techsouq-policy-contact strong {
    color: var(--color-heading);
}

@media only screen and (max-width: 767px) {
    .techsouq-policy-page {
        padding: 34px 0 52px;
    }

    .techsouq-policy-content h1 {
        margin-bottom: 18px;
    }

    .techsouq-policy-content h2 {
        margin-top: 24px;
        font-size: 19px;
    }
}

.techsouq-minicart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.techsouq-minicart-remove-button {
    border: 0;
    background: transparent;
    color: #a71919;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.techsouq-minicart-remove-button i {
    margin-right: 4px;
}

.techsouq-minicart-remove-button:hover,
.techsouq-minicart-remove-button:focus {
    text-decoration: underline;
}

.rbt-header-common-sticky-activation .rbt-mainmenu-nav .mainmenu > li {
    height: 68px !important;
    line-height: normal !important;
}

/* =========================================================
   Stage 2 - cart confirmation, contact, FAQ and order tracking
   ========================================================= */

/* Cart remove actions - one visual language in mini cart and full cart. */
.techsouq-cart-remove-button,
.techsouq-minicart-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 34px;
    margin-top: 8px;
    padding: 7px 11px;
    border: 1px solid #e4caca !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: #a71919 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.techsouq-cart-remove-button:hover,
.techsouq-cart-remove-button:focus,
.techsouq-minicart-remove-button:hover,
.techsouq-minicart-remove-button:focus {
    border-color: #b42323 !important;
    background: #fff6f6 !important;
    color: #8f1515 !important;
    text-decoration: none !important;
}

.techsouq-cart-remove-button i,
.techsouq-minicart-remove-button i {
    margin: 0;
    font-size: 13px;
}

.techsouq-minicart-actions {
    align-items: center;
}

/* SweetAlert buttons use storefront styling instead of browser/default buttons. */
.techsouq-swal-popup {
    border-radius: 14px !important;
}

.techsouq-swal-remove-confirm,
.techsouq-swal-cancel {
    min-width: 105px;
    min-height: 42px;
    margin: 0 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.techsouq-swal-remove-confirm {
    border: 1px solid #a71919;
    background: #a71919;
    color: #ffffff;
}

.techsouq-swal-cancel {
    border: 1px solid var(--color-gray-300, #d4d4d4);
    background: #ffffff;
    color: var(--color-heading, #111111);
}

/* FAQ - simple content start, no template hero/banner. */
.techsouq-faq-page {
    padding: 52px 0 64px;
}

.techsouq-faq-page .section-title .title {
    margin-bottom: 0;
}

/* Shared storefront forms. */
.techsouq-form-field {
    width: 100%;
}

.techsouq-form-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--color-heading, #111111);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.techsouq-form-control {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--color-gray-300, #d7d7d7);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-heading, #111111);
    font-size: 15px;
    line-height: 1.45;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.techsouq-form-control:focus {
    outline: none;
    border-color: var(--color-primary, #18a93b);
    box-shadow: 0 0 0 3px rgba(24, 169, 59, .10);
}

textarea.techsouq-form-control {
    resize: vertical;
}

.techsouq-message-control {
    min-height: 180px;
}

.techsouq-form-summary ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.techsouq-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Contact Us */
.techsouq-contact-page {
    padding: 48px 0 68px;
    background: var(--color-gray-light, #f7f7f7);
}

.techsouq-contact-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.techsouq-contact-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
}

.techsouq-contact-heading p {
    margin: 0;
    color: var(--color-gray-500, #666666);
    font-size: 16px;
    line-height: 1.7;
}

.techsouq-contact-form-card,
.techsouq-contact-support-card {
    border: 1px solid var(--color-gray-200, #e6e6e6);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .035);
}

.techsouq-contact-form-card {
    padding: 28px;
}

.techsouq-contact-support-card {
    padding: 26px;
}

.techsouq-contact-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.techsouq-contact-card-title h2 {
    margin: 3px 0 0;
    font-size: 22px;
    line-height: 1.25;
}

.techsouq-contact-card-title > i {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b);
    font-size: 18px;
}

.techsouq-contact-card-kicker {
    display: block;
    color: var(--color-primary, #18a93b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.techsouq-contact-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.techsouq-contact-support-card > p {
    margin: -8px 0 22px;
    color: var(--color-gray-500, #666666);
    line-height: 1.6;
}

.techsouq-contact-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.techsouq-contact-links li + li {
    margin-top: 10px;
}

.techsouq-contact-links a,
.techsouq-contact-link-static {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--color-heading, #111111);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.techsouq-contact-links .icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b);
}

.techsouq-contact-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200, #e6e6e6);
}

.techsouq-contact-social-link {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b) !important;
    transition: background-color .2s ease, color .2s ease;
}

.techsouq-contact-social-link:hover,
.techsouq-contact-social-link:focus {
    background: var(--color-primary, #18a93b);
    color: #ffffff !important;
}

.techsouq-contact-social-link i {
    color: inherit !important;
}

/* Order Tracking */
.techsouq-order-tracking-shell {
    max-width: 920px;
    margin: 0 auto;
}

.techsouq-order-tracking-intro {
    margin-bottom: 24px;
}

.techsouq-order-tracking-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
}

.techsouq-order-tracking-intro p {
    max-width: 720px;
    margin: 0;
    color: var(--color-gray-500, #666666);
    font-size: 16px;
    line-height: 1.7;
}

.techsouq-order-tracking-form {
    padding: 26px;
    border: 1px solid var(--color-gray-200, #e6e6e6);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .035);
}

.techsouq-tracking-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #ead7a8;
    border-radius: 10px;
    background: #fffaf0;
}

.techsouq-tracking-message > i {
    margin-top: 3px;
    font-size: 20px;
}

.techsouq-tracking-message p {
    margin: 4px 0 0;
    line-height: 1.6;
}

.techsouq-tracking-result {
    margin-top: 24px;
}

.techsouq-tracking-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(24, 169, 59, .22);
    border-radius: 14px;
    background: rgba(24, 169, 59, .055);
}

.techsouq-tracking-status-card h2 {
    margin: 3px 0 4px;
    font-size: 24px;
}

.techsouq-tracking-status-card p {
    margin: 0;
    color: var(--color-gray-500, #666666);
}

.techsouq-tracking-label {
    color: var(--color-gray-500, #666666);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.techsouq-tracking-status-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-primary, #18a93b);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.techsouq-tracking-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.techsouq-tracking-summary-item {
    padding: 18px;
    border: 1px solid var(--color-gray-200, #e6e6e6);
    border-radius: 10px;
    background: #ffffff;
}

.techsouq-tracking-summary-item span,
.techsouq-tracking-summary-item strong {
    display: block;
}

.techsouq-tracking-summary-item span {
    margin-bottom: 5px;
    color: var(--color-gray-500, #666666);
    font-size: 13px;
}

.techsouq-tracking-summary-item strong {
    overflow-wrap: anywhere;
}

.techsouq-tracking-history {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--color-gray-200, #e6e6e6);
    border-radius: 14px;
    background: #ffffff;
}

.techsouq-tracking-history h2 {
    margin: 0 0 20px;
    font-size: 21px;
}

.techsouq-tracking-history-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
}

.techsouq-tracking-history-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 6px;
    bottom: 0;
    width: 1px;
    background: var(--color-gray-200, #e6e6e6);
}

.techsouq-tracking-history-item:last-child {
    padding-bottom: 0;
}

.techsouq-tracking-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 4px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--color-gray-400, #a8a8a8);
    box-shadow: 0 0 0 1px var(--color-gray-300, #d7d7d7);
}

.techsouq-tracking-history-item.is-latest .techsouq-tracking-dot {
    background: var(--color-primary, #18a93b);
    box-shadow: 0 0 0 1px var(--color-primary, #18a93b);
}

.techsouq-tracking-history-item strong,
.techsouq-tracking-history-item span {
    display: block;
}

.techsouq-tracking-history-item span {
    margin-top: 3px;
    color: var(--color-gray-500, #666666);
    font-size: 13px;
}

.techsouq-order-tracking-help {
    margin-top: 24px;
}

@media only screen and (max-width: 991px) {
    .techsouq-contact-support-card {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .techsouq-faq-page,
    .techsouq-contact-page {
        padding-top: 34px;
        padding-bottom: 50px;
    }

    .techsouq-contact-form-card,
    .techsouq-contact-support-card,
    .techsouq-order-tracking-form,
    .techsouq-tracking-history {
        padding: 20px;
    }

    .techsouq-contact-submit-row {
        justify-content: stretch;
    }

    .techsouq-contact-submit-row .rbt-btn {
        width: 100%;
        justify-content: center;
    }

    .techsouq-tracking-status-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .techsouq-tracking-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Stage 3 storefront review refinements */
.swal2-container {
    z-index: 20050 !important;
}

/* Product cards: keep stock logic/data, hide the visual quantity/status badge. */
.techsouq-card-stock-badge,
.techsouq-stock-badge {
    display: none !important;
}

/* Contact page vertical rhythm. */
.techsouq-contact-page {
    padding-bottom: 42px;
}

.techsouq-contact-page .techsouq-message-control {
    min-height: 145px;
}

.techsouq-contact-page + .rbt-footer .rbt-footer-top {
    padding-top: 34px;
}

/* FAQ question form */
.techsouq-faq-question-section {
    padding: 48px 0 50px;
    background: var(--color-gray-light, #f7f7f7);
}

.techsouq-faq-question-shell {
    max-width: 1040px;
    margin: 0 auto;
}

.techsouq-faq-question-card,
.techsouq-faq-help-card {
    border: 1px solid var(--color-gray-200, #e6e6e6);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .035);
}

.techsouq-faq-question-card {
    padding: 26px;
}

.techsouq-faq-help-card {
    padding: 24px;
}

.techsouq-faq-question-header,
.techsouq-faq-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.techsouq-faq-question-header h2,
.techsouq-faq-help-header h3 {
    margin: 0;
}

.techsouq-faq-question-header .icon,
.techsouq-faq-help-header .icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b);
    font-size: 17px;
}

.techsouq-faq-question-card .techsouq-form-field {
    height: 100%;
}

.techsouq-faq-question-control {
    min-height: 48px;
}

textarea.techsouq-faq-question-control {
    min-height: 150px;
}

.techsouq-faq-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.techsouq-faq-help-card p {
    margin: 0 0 20px;
    color: var(--color-gray-500, #666666);
    line-height: 1.65;
}

.techsouq-faq-help-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.techsouq-faq-help-links li + li {
    margin-top: 10px;
}

.techsouq-faq-help-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-heading, #111111);
    text-decoration: none;
}

.techsouq-faq-help-links .icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b);
}

.techsouq-faq-question-section + .rbt-footer .rbt-footer-top {
    padding-top: 34px;
}

/* Checkout - compact delivery notes and a normal-sized primary action. */
.techsouq-checkout-page .techsouq-checkout-note {
    padding: 12px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
}

.techsouq-checkout-page .techsouq-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-white);
}

.techsouq-checkout-page .techsouq-payment-option .icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
}

.techsouq-checkout-page .techsouq-order-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.techsouq-checkout-page .techsouq-order-thumb {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.techsouq-checkout-page .techsouq-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.techsouq-checkout-page .techsouq-more-items {
    min-width: 58px;
    height: 58px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-200);
    font-weight: 600;
}

.techsouq-checkout-page .field-validation-error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
}

.techsouq-checkout-page .input-validation-error {
    border-color: #dc3545;
}

.techsouq-checkout-page .techsouq-price {
    white-space: nowrap;
}

.techsouq-checkout-page .techsouq-delivery-notes textarea {
    min-height: 108px;
    resize: vertical;
}

.techsouq-checkout-page .techsouq-place-order-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.techsouq-checkout-page #techsouq-place-order-btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 170px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding-left: 24px;
    padding-right: 24px;
}

@media only screen and (max-width: 991px) {
    .techsouq-faq-help-card {
        margin-top: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .techsouq-faq-question-section {
        padding: 36px 0 42px;
    }

    .techsouq-faq-question-card,
    .techsouq-faq-help-card {
        padding: 20px;
    }

    .techsouq-faq-submit-row,
    .techsouq-checkout-page .techsouq-place-order-row {
        justify-content: stretch;
    }

    .techsouq-faq-submit-row .rbt-btn,
    .techsouq-checkout-page #techsouq-place-order-btn {
        width: 100% !important;
        justify-content: center;
    }

    .techsouq-checkout-page .rbt-sidebar-cart.sticky-top {
        position: static !important;
    }
}

/* =========================================================
   Stage 4 storefront polish
   ========================================================= */

/* Contact / FAQ form rhythm: labels should never touch the field above. */
.techsouq-contact-fields,
.techsouq-faq-fields {
    row-gap: 24px;
}

.techsouq-contact-field-col,
.techsouq-faq-field-col {
    margin-bottom: 0 !important;
}

.techsouq-contact-form-card .techsouq-form-field,
.techsouq-faq-question-card .techsouq-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.techsouq-contact-form-card .techsouq-form-field label,
.techsouq-faq-question-card .techsouq-form-field label {
    margin-bottom: 0;
}

.techsouq-contact-message-col,
.techsouq-faq-fields > .col-12:last-child {
    padding-top: 2px;
}

.techsouq-contact-submit-row,
.techsouq-faq-submit-row {
    margin-top: 22px;
}

.techsouq-contact-submit-row .rbt-btn,
.techsouq-faq-submit-row .rbt-btn {
    min-width: 176px;
}

/* Header search: static placeholder only. No animated typing / no request per keystroke. */
.techsouq-header-search-input {
    position: relative;
    z-index: 1;
}

.techsouq-header-search-input::placeholder {
    color: var(--color-gray-500, #777777);
    opacity: 1;
}

/* Home category cards: the template forces horizontal scrolling on phones.
   Override only this section with a real two-column responsive grid. */
@media only screen and (max-width: 767px) {
    .techsouq-home-category-grid {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        flex-wrap: wrap !important;
        min-height: 0 !important;
    }

    .techsouq-home-category-grid > .col-6,
    .techsouq-home-category-grid > [class*="col-"] {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        display: flex;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 {
        width: 100%;
        height: 100%;
        min-width: 0;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .inner {
        width: 100%;
        min-height: 196px;
        padding: 12px 12px 50px;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content {
        width: 100%;
        min-width: 0;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .title {
        margin-top: 2px;
        line-height: 1.25;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .quick-link-list {
        gap: 5px;
        margin-top: 10px;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .quick-link-list li {
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .rbt-image-portion a img {
        max-width: 58px;
        max-height: 58px;
        object-fit: contain;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .rbt-icon-overlay-link-btn {
        bottom: 10px;
        left: 12px;
    }

    .techsouq-contact-fields,
    .techsouq-faq-fields {
        row-gap: 20px;
    }

    .techsouq-contact-submit-row,
    .techsouq-faq-submit-row {
        margin-top: 20px;
    }
}


/* Home category cards must never depend on scroll-animation JavaScript
   for visibility. Merchandising content is server-rendered and should be
   immediately visible on desktop and mobile. */
.techsouq-home-category-grid .techsouq-home-category-card,
.techsouq-home-category-grid .techsouq-home-category-card .inner,
.techsouq-home-category-grid .techsouq-home-category-card img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.techsouq-home-category-grid .techsouq-home-category-card {
    display: block !important;
}

/* =========================================================
   Stage 5 - form rhythm, mobile categories and search polish
   ========================================================= */

/* Contact / FAQ use an explicit grid so template row rules cannot pull labels upward. */
.techsouq-contact-fields,
.techsouq-faq-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 22px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.techsouq-contact-fields > [class*="col-"],
.techsouq-faq-fields > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.techsouq-contact-message-col,
.techsouq-faq-full-row {
    grid-column: 1 / -1;
}

.techsouq-contact-form-card .techsouq-form-field,
.techsouq-faq-question-card .techsouq-form-field {
    gap: 9px !important;
}

.techsouq-contact-submit-row,
.techsouq-faq-submit-row {
    margin-top: 24px !important;
    padding-bottom: 0;
}

.techsouq-contact-submit-row .rbt-btn,
.techsouq-faq-submit-row .rbt-btn {
    margin: 0 !important;
}

/* Mobile category cards - remove the template horizontal rail completely. */
@media only screen and (max-width: 767px) {
    .techsouq-home-category-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }

    .techsouq-home-category-grid > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7,
    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .inner,
    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .inner {
        min-height: 214px !important;
        padding: 14px 12px 52px !important;
    }

    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .title,
    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .quick-link-list li,
    .techsouq-home-category-grid .rbt-cat-box.rbt-cat-box-7 .content .quick-link-list a {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .techsouq-contact-fields,
    .techsouq-faq-fields {
        grid-template-columns: 1fr;
        row-gap: 20px !important;
    }

    .techsouq-contact-message-col,
    .techsouq-faq-full-row {
        grid-column: auto;
    }
}

/* =========================================================
   Stage 6 - QA pass: search, product rhythm, mini cart, wishlist
   ========================================================= */

/* Header category selector: custom Tech Souq dropdown.
   Do not use a native select here: Windows/browser option highlighting can
   introduce blue system colours that do not match the storefront identity. */
.rbt-search-with-category.uni-header-swc-one .techsouq-search-category {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 150px;
    max-width: 150px;
    height: 100%;
    z-index: 25;
}

.techsouq-search-category {
    position: relative;
}

.techsouq-search-category-toggle {
    width: 100%;
    height: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 0 16px;
    border: 0;
    background: transparent;
    color: var(--color-heading, #111111);
    font-size: var(--font-size-b3, 14px);
    font-weight: var(--f-medium, 500);
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.rbt-search-with-category.uni-header-swc-one .techsouq-search-category-toggle {
    border-right: 1px solid var(--color-gray-200, #e7e7e7);
}

.techsouq-search-category-toggle > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.techsouq-search-category-toggle > i {
    flex: 0 0 auto;
    font-size: 11px;
    transition: transform .18s ease;
}

.techsouq-search-category.is-open .techsouq-search-category-toggle > i {
    transform: rotate(180deg);
}

.techsouq-search-category-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    width: max-content;
    min-width: 220px;
    max-width: 320px;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--color-gray-200, #e7e7e7);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.techsouq-search-category.is-open .techsouq-search-category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.techsouq-search-category-option {
    width: 100%;
    display: block;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--color-heading, #111111);
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.techsouq-search-category-option:hover,
.techsouq-search-category-option:focus,
.techsouq-search-category-option.is-active {
    outline: 0;
    background: rgba(24, 169, 59, .10);
    color: var(--color-primary, #18a93b);
}

.techsouq-search-category-toggle:focus-visible {
    outline: 2px solid rgba(24, 169, 59, .28);
    outline-offset: -2px;
}

/* The template reserves room for the category control inside the desktop field. */
.rbt-search-with-category.uni-header-swc-one .rbt-search-input-section.has-left-catagory-section > input {
    padding-left: 166px !important;
}

/* Mobile search overlay is owned by Tech Souq rather than the template popup.
   This avoids the template's dark overlay opening without a visible form. */
.techsouq-mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 78px 16px 24px;
    background: rgba(17, 24, 39, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.techsouq-mobile-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.techsouq-mobile-search-open {
    overflow: hidden;
}

.techsouq-mobile-search-panel {
    width: min(100%, 560px);
    border: 1px solid var(--color-gray-200, #e7e7e7);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    padding: 18px;
    transform: translateY(-10px);
    transition: transform .18s ease;
}

.techsouq-mobile-search-overlay.is-open .techsouq-mobile-search-panel {
    transform: translateY(0);
}

.techsouq-mobile-search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-gray-200, #e7e7e7);
}

.techsouq-mobile-search-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary, #18a93b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.techsouq-mobile-search-close {
    flex: 0 0 auto;
}

.techsouq-mobile-search-overlay-form {
    display: grid;
    gap: 12px;
}

.techsouq-search-category-mobile {
    width: 100%;
    z-index: 5;
}

.techsouq-search-category-mobile .techsouq-search-category-toggle {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-gray-200, #dedede);
    border-radius: 9px;
    background: #ffffff;
}

.techsouq-search-category-mobile .techsouq-search-category-menu {
    top: calc(100% + 5px);
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.techsouq-mobile-search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.techsouq-mobile-search-input-row input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-gray-200, #dedede);
    border-radius: 9px;
    background: #ffffff;
    color: var(--color-heading, #111111);
    font-size: 15px;
}

.techsouq-mobile-search-input-row input[type="search"]:focus {
    outline: 0;
    border-color: var(--color-primary, #18a93b);
    box-shadow: 0 0 0 3px rgba(24, 169, 59, .10);
}

.techsouq-mobile-search-input-row .rbt-btn {
    min-width: 112px;
    justify-content: center;
}

@media only screen and (min-width: 1200px) {
    .techsouq-mobile-search-overlay {
        display: none !important;
    }
}

@media only screen and (max-width: 575px) {
    .techsouq-mobile-search-overlay {
        padding: 66px 12px 18px;
    }

    .techsouq-mobile-search-panel {
        padding: 15px;
        border-radius: 13px;
    }

    .techsouq-mobile-search-input-row {
        grid-template-columns: 1fr;
    }

    .techsouq-mobile-search-input-row .rbt-btn {
        width: 100%;
    }
}

/* Search must work on mobile with one explicit submit and no request while typing. */
.popup-mobile-menu .techsouq-mobile-search-form {
    width: 100%;
    margin-top: 16px;
}

.popup-mobile-menu .techsouq-mobile-search-form .rbt-inner-search-field {
    width: 100% !important;
    max-width: none !important;
}

.popup-mobile-menu .techsouq-mobile-search-form input[type="search"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 52px;
}

.popup-mobile-menu .techsouq-mobile-search-form .search-btn {
    z-index: 3;
    pointer-events: auto;
}

/* One product-card rhythm across Home, All Products and Category pages. */
.rbt-product-card.techsouq-product-grid-card {
    width: 100%;
    height: 100%;
}

.rbt-product-card.techsouq-product-grid-card > .inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.rbt-product-card.techsouq-product-grid-card .rbt-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.rbt-product-card.techsouq-product-grid-card .rbt-card-title {
    min-height: 4.35em;
    max-height: 4.35em;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    line-height: 1.45 !important;
    overflow: hidden;
}

.rbt-product-card.techsouq-product-grid-card .rbt-card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rbt-product-card.techsouq-product-grid-card .pricing-part {
    min-height: 32px;
    margin-top: 8px !important;
    align-content: flex-start;
}

.rbt-product-card.techsouq-product-grid-card .prd-btn-grp {
    margin-top: 8px !important;
}

/* Keep equal cards without creating a large empty band between title and price.
   Any unavoidable spare height remains after the actions, not inside product info. */
.rbt-product-card.techsouq-product-grid-card .rbt-card-body {
    justify-content: flex-start;
}

@media only screen and (max-width: 575px) {
    .rbt-product-card.techsouq-product-grid-card .rbt-card-title {
        min-height: 4.2em;
        max-height: 4.2em;
    }
}

/* Side cart: header + footer stay visible; only products scroll. */
.rbt-cart-side-menu #techsouq-mini-cart-content {
    height: 100%;
    min-height: 0;
}

.rbt-cart-side-menu .techsouq-minicart-shell {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.rbt-cart-side-menu .techsouq-minicart-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.rbt-cart-side-menu .techsouq-minicart-main .rbt-cart-header {
    flex: 0 0 auto;
}

.rbt-cart-side-menu .techsouq-minicart-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.rbt-cart-side-menu .techsouq-minicart-fixed-footer {
    position: static !important;
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding-top: 14px;
    background: var(--color-white, #ffffff);
    border-top: 1px solid var(--color-gray-200, #e7e7e7);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .035);
    z-index: 4;
}

.rbt-cart-side-menu .techsouq-minicart-fixed-footer > hr {
    display: none;
}

.rbt-cart-side-menu .techsouq-minicart-fixed-footer .rbt-minicart-bottom {
    margin-top: 14px !important;
}

/* Wishlist is temporarily disabled at storefront level only.
   Keep all existing backend/data/code available for later reactivation. */
.rbt-wishlist,
.rbt-wishlisted-btn,
.rbt-toaster-wishlist,
#wishlistModal,
[data-bs-target="#wishlistModal"],
[href="wishlist.html"],
[href="/en/wishlist"] {
    display: none !important;
}

/* ============================================================
   Tech Souq Promo Codes
   ============================================================ */
.techsouq-promo-box {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #d9e4dd;
    border-radius: 8px;
    background: #fbfdfb;
}

.techsouq-promo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1d2a22;
}

.techsouq-promo-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.techsouq-promo-input-row input {
    min-width: 0;
    flex: 1 1 auto;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #cfd8d2;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
}

.techsouq-promo-input-row input:focus {
    border-color: #198754;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .1);
}

.techsouq-promo-input-row .rbt-btn {
    flex: 0 0 auto;
    min-width: 82px;
    height: 44px;
    padding: 0 16px;
}

.techsouq-promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.techsouq-promo-applied > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.techsouq-promo-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #198754;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.techsouq-promo-applied strong {
    font-size: 15px;
    color: #16291e;
}

.techsouq-promo-applied small {
    color: #66756b;
}

.techsouq-promo-remove {
    flex: 0 0 auto;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.techsouq-promo-remove:hover,
.techsouq-promo-remove:focus {
    color: #8f1c13;
    text-decoration: underline;
}

.techsouq-promo-discount-row .price {
    color: #198754 !important;
    font-weight: 700;
}

.techsouq-minicart-promo {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d8ded9;
}

.techsouq-minicart-promo .rbt-cart-subttotal {
    margin-bottom: 4px;
}

@media only screen and (max-width: 575px) {
    .techsouq-promo-input-row {
        gap: 6px;
    }

    .techsouq-promo-input-row .rbt-btn {
        min-width: 74px;
        padding: 0 12px;
    }
}

/* ============================================================
   Stage 9 - Checkout and Thank You refinements
   ============================================================ */
.techsouq-checkout-page #techsouq-checkout-form .form-control,
.techsouq-checkout-page #techsouq-checkout-form .filter-select,
.techsouq-checkout-page #techsouq-checkout-form .bootstrap-select {
    width: 100% !important;
    max-width: none !important;
}

.techsouq-checkout-page #techsouq-checkout-form input.form-control {
    min-height: 48px;
}

.techsouq-checkout-page .techsouq-delivery-address-field,
.techsouq-checkout-page .techsouq-delivery-notes {
    width: 100%;
}

.techsouq-checkout-page .techsouq-delivery-notes textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 125px;
    resize: vertical;
    line-height: 1.55;
}

.techsouq-checkout-page .techsouq-place-order-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.techsouq-checkout-page .techsouq-place-order-row .rbt-btn {
    width: auto !important;
    min-width: 164px;
}

.techsouq-thanks-page {
    padding-top: 20px;
}

.techsouq-thanks-hero {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid #dbe9df;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 72%);
}

.techsouq-thanks-success-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #18a942;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(24, 169, 66, .18);
}

.techsouq-thanks-eyebrow {
    margin-bottom: 5px;
    color: #15913a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.techsouq-thanks-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.techsouq-thanks-hero p {
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.techsouq-thanks-order-ref {
    min-width: 250px;
    padding: 14px 16px;
    border: 1px solid #dbe9df;
    border-radius: 10px;
    background: #fff;
}

.techsouq-thanks-order-ref span,
.techsouq-thanks-order-ref small {
    display: block;
    color: #667085;
    font-size: 12px;
}

.techsouq-thanks-order-ref strong {
    display: block;
    margin: 3px 0 4px;
    color: #17231b;
    font-size: 16px;
    word-break: break-word;
}

.techsouq-thanks-card {
    padding: 22px;
    border: 1px solid #e0e6e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(16, 24, 40, .04);
}

.techsouq-thanks-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0ee;
}

.techsouq-thanks-card-header h2 {
    margin: 0;
    font-size: 18px;
}

.techsouq-thanks-card-header > span,
.techsouq-thanks-card-header > i {
    color: #6b756f;
    font-size: 13px;
}

.techsouq-thanks-items {
    display: flex;
    flex-direction: column;
}

.techsouq-thanks-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 150px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0ee;
}

.techsouq-thanks-item:last-child {
    border-bottom: 0;
}

.techsouq-thanks-item-main strong {
    display: block;
    color: #18231c;
    font-size: 14px;
    line-height: 1.45;
}

.techsouq-thanks-item-main span,
.techsouq-thanks-item-qty {
    color: #7a847e;
    font-size: 12px;
}

.techsouq-thanks-item-money {
    text-align: right;
}

.techsouq-thanks-item-money strong,
.techsouq-thanks-item-money span {
    display: block;
}

.techsouq-thanks-item-original {
    margin-bottom: 2px;
    color: #8a948e;
    font-size: 11px;
    text-decoration: line-through;
}

.techsouq-thanks-detail-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.techsouq-thanks-detail-list > div {
    display: grid;
    gap: 3px;
}

.techsouq-thanks-detail-list span {
    color: #7a847e;
    font-size: 12px;
}

.techsouq-thanks-detail-list strong {
    color: #27312b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.techsouq-thanks-summary {
    position: sticky;
    top: 118px;
}

.techsouq-thanks-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0ee;
    font-size: 13px;
}

.techsouq-thanks-summary-row > span small {
    display: block;
    margin-top: 2px;
    color: #15913a;
    font-weight: 700;
}

.techsouq-thanks-summary-discount strong {
    color: #15913a;
}

.techsouq-thanks-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    font-weight: 700;
}

.techsouq-thanks-summary-total strong {
    color: #111;
    font-size: 19px;
}

.techsouq-thanks-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #dbe9df;
    border-radius: 9px;
    background: #f7fbf8;
}

.techsouq-thanks-payment-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f5ea;
    color: #15913a;
}

.techsouq-thanks-payment small,
.techsouq-thanks-payment strong {
    display: block;
}

.techsouq-thanks-payment small {
    color: #748079;
    font-size: 11px;
}

.techsouq-thanks-next-step {
    margin-top: 18px;
    padding: 14px;
    border-radius: 9px;
    background: #f7f7f7;
}

.techsouq-thanks-next-step strong {
    font-size: 13px;
}

.techsouq-thanks-next-step ol {
    margin: 9px 0 0 18px;
    padding: 0;
    color: #5f6a63;
    font-size: 12px;
    line-height: 1.65;
}

.techsouq-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.techsouq-thanks-empty {
    padding: 15px;
    color: #7b867f;
    text-align: center;
}

@media only screen and (max-width: 991px) {
    .techsouq-thanks-hero {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .techsouq-thanks-order-ref {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .techsouq-thanks-summary {
        position: static;
    }
}

@media only screen and (max-width: 575px) {
    .techsouq-checkout-page .techsouq-place-order-row .rbt-btn {
        width: 100% !important;
    }

    .techsouq-thanks-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .techsouq-thanks-success-icon {
        width: 48px;
        height: 48px;
    }

    .techsouq-thanks-hero h1 {
        font-size: 24px;
    }

    .techsouq-thanks-item {
        grid-template-columns: 1fr auto;
    }

    .techsouq-thanks-item-money {
        grid-column: 1 / -1;
        text-align: left;
    }
}


/* Stage 11.1 - Checkout full-page submit loading */
body.techsouq-checkout-submitting { overflow: hidden; }
.techsouq-checkout-loading { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(2px); }
.techsouq-checkout-loading.is-active { display: flex; }
.techsouq-checkout-loading-card { min-width: 290px; max-width: 430px; padding: 28px 32px; border: 1px solid #dfe7e1; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.12); text-align: center; }
.techsouq-checkout-loading-card strong, .techsouq-checkout-loading-card span { display: block; }
.techsouq-checkout-loading-card strong { margin-top: 14px; color: #111827; font-size: 20px; }
.techsouq-checkout-loading-card > span:last-child { margin-top: 6px; color: #6b7280; font-size: 14px; }
.techsouq-checkout-spinner { width: 44px; height: 44px; margin: 0 auto; border: 4px solid #dcefe2; border-top-color: #18a942; border-radius: 50%; animation: techsouq-checkout-spin .75s linear infinite; }
@keyframes techsouq-checkout-spin { to { transform: rotate(360deg); } }


/* TechSouq mobile UX - compare confirmation is intentionally hidden on phones. */
@media only screen and (max-width: 575px) {
    .rbt-toaster.rbt-toaster-compare {
        display: none !important;
    }
}


/* Tech Souq home hero: keep dynamic banner content aligned without changing the template layout. */
.rbt-elctro-hero-banner .rbt-product-banner-content .rbt-banner-subtitle {
    min-height: 30px;
}

.rbt-elctro-hero-banner .rbt-product-banner-content .rbt-banner-title-lg {
    min-height: 96px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rbt-elctro-hero-banner .rbt-product-banner-content .techsouq-hero-price-zone {
    min-height: 76px;
}

@media only screen and (max-width: 767px) {
    .rbt-elctro-hero-banner .rbt-product-banner-content .rbt-banner-subtitle {
        min-height: 24px;
    }

    .rbt-elctro-hero-banner .rbt-product-banner-content .rbt-banner-title-lg {
        min-height: 70px;
    }

    .rbt-elctro-hero-banner .rbt-product-banner-content .techsouq-hero-price-zone {
        min-height: 62px;
    }
}
