/*
Theme Name: consul child
Tags: one-column, flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready
Template: consul
Version: 1.0.0
*/

/*---------------------------------
      write your css from here
------------------------------------*/

:root{
      --brcolor: #1a3d6b!important;
}

.joinchat__powered{
      display: none!important;
}

.wpcf7-not-valid-tip{
      text-align: left;
      margin-bottom: 1em;  
}

@media (max-width: 767px) {
      .mobile_menu_logo img {
          width: 68%;
      }

      .txbdsinner .txbdstitle{
            margin-bottom: 1rem!important;
      }
}


@media (min-width: 10px) and (max-width: 768px){

      
      #scrollUp{
            display: none!important;
      }

      /* Mobile tables – comparison & pricing */
      .wp-block-table,
      .entry-content .wp-block-table {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-left: -16px;
            margin-right: -16px;
            padding: 0 16px 12px;
      }

      .wp-block-table table,
      .entry-content table.has-fixed-layout {
            width: max-content;
            min-width: 100%;
            table-layout: auto;
            font-size: 14px;
            border-collapse: collapse;
      }

      .wp-block-table th,
      .wp-block-table td,
      .entry-content table.has-fixed-layout th,
      .entry-content table.has-fixed-layout td {
            padding: 12px 14px;
            vertical-align: top;
            line-height: 1.5;
            white-space: normal;
            word-break: break-word;
            border: 1px solid #e2e8f0;
      }

      /* Header row */
      .wp-block-table tbody tr:first-child th,
      .wp-block-table tbody tr:first-child td,
      .entry-content table.has-fixed-layout tbody tr:first-child th,
      .entry-content table.has-fixed-layout tbody tr:first-child td {
            background: #1a3d6b;
            color: #ffffff;
            font-weight: 700;
            font-size: 13px;
            line-height: 1.45;
            vertical-align: middle;
            text-align: center;
      }

      .wp-block-table tbody tr:first-child th,
      .entry-content table.has-fixed-layout tbody tr:first-child th {
            text-align: left;
            min-width: 120px;
      }

      .wp-block-table tbody tr:first-child td,
      .entry-content table.has-fixed-layout tbody tr:first-child td {
            min-width: 130px;
      }

      /* Feature / label column (comparison tables) */
      .wp-block-table tbody tr:not(:first-child) > th,
      .entry-content table.has-fixed-layout tbody tr:not(:first-child) > th {
            background: #f8fafc;
            color: #1a3d6b;
            font-weight: 600;
            font-size: 13px;
            text-align: left;
            min-width: 220px;
            max-width: 300px;
      }

      /* Data cells */
      .wp-block-table tbody tr:not(:first-child) td,
      .entry-content table.has-fixed-layout tbody tr:not(:first-child) td {
            text-align: center;
            vertical-align: middle;
            min-width: 120px;
            font-size: 14px;
      }

      /* Small tick/cross icons */
      .wp-block-table td img[width="15"],
      .wp-block-table td img[height="15"],
      .entry-content table.has-fixed-layout td img[width="15"],
      .entry-content table.has-fixed-layout td img[height="15"] {
            width: 15px !important;
            height: 15px !important;
            vertical-align: middle;
            margin-right: 4px;
      }

      /* Flag icons (offshore pricing table) */
      .wp-block-table tbody tr:not(:first-child) > th img:not([width="15"]):not([height="15"]),
      .entry-content table.has-fixed-layout tbody tr:not(:first-child) > th img:not([width="15"]):not([height="15"]) {
            width: 48px;
            height: auto;
            display: block;
      }

      .wp-block-table tbody tr:not(:first-child) > th:has(img:not([width="15"])),
      .entry-content table.has-fixed-layout tbody tr:not(:first-child) > th:has(img:not([width="15"])) {
            min-width: 64px;
            max-width: 80px;
            width: 72px;
            text-align: center;
            vertical-align: middle;
            background: #ffffff;
      }

      /* Jurisdiction name column (offshore table) */
      .wp-block-table tbody tr:not(:first-child) > th:has(img) + td,
      .entry-content table.has-fixed-layout tbody tr:not(:first-child) > th:has(img) + td {
            font-weight: 700;
            color: #1a3d6b;
            text-align: left;
            min-width: 150px;
      }
}

@media (max-width: 560px) {
      /* Comparison tables (first row has th): card layout */
      .wp-block-table:has(tbody tr:first-child > th),
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) {
            overflow-x: visible;
            margin-left: 0;
            margin-right: 0;
            padding: 0;
      }

      .wp-block-table:has(tbody tr:first-child > th) table,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) {
            display: block;
            width: 100%;
            min-width: 0;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody {
            display: block;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:first-child,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:first-child {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-bottom: 16px;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:first-child th,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:first-child th {
            display: none;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:first-child td,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:first-child td {
            display: block;
            border-radius: 8px;
            min-width: 0;
            padding: 14px;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child),
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) {
            display: block;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            margin-bottom: 12px;
            overflow: hidden;
            background: #ffffff;
            box-shadow: 0 2px 12px rgba(26, 61, 107, 0.06);
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child) > th,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) > th {
            display: block;
            width: 100%;
            max-width: none;
            min-width: 0;
            border: none;
            border-bottom: 1px solid #e2e8f0;
            padding: 14px 14px 12px;
            background: #f8fafc;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-width: 0;
            border: none;
            border-top: 1px solid #f1f5f9;
            padding: 12px 14px;
            text-align: right;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(2)::before,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(2)::before {
            content: "Registered / Correspondence";
            font-weight: 600;
            color: #64748b;
            font-size: 12px;
            text-align: left;
            flex: 1;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(3)::before,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(3)::before {
            content: "Virtual Office A";
            font-weight: 600;
            color: #64748b;
            font-size: 12px;
            text-align: left;
            flex: 1;
      }

      .wp-block-table:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(4)::before,
      .entry-content table.has-fixed-layout:has(tbody tr:first-child > th) tbody tr:not(:first-child) > td:nth-child(4)::before {
            content: "Virtual Office B";
            font-weight: 600;
            color: #64748b;
            font-size: 12px;
            text-align: left;
            flex: 1;
      }

      /* Offshore pricing table (first row all td, 5+ columns): horizontal scroll */
      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) {
            overflow-x: auto;
            margin-left: -16px;
            margin-right: -16px;
            padding: 0 16px 12px;
      }

      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) table {
            display: table;
            width: max-content;
            min-width: 860px;
      }

      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) tbody,
      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) tr,
      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) th,
      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) td {
            display: table-cell;
      }

      .wp-block-table:has(tbody tr:first-child td:nth-child(5)):not(:has(tbody tr:first-child > th)) tbody tr:not(:first-child) {
            display: table-row;
            border: none;
            border-radius: 0;
            margin-bottom: 0;
            box-shadow: none;
      }
}