/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/**/
/* This style rule also applies to 5 other elements */
  .unic-table td {
    width: 33.333%;
  padding: 14px 13px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #172d40;
  }
.unic-table {
    width: 100%;
  border: 1px solid #dfe5eb;
  border-radius: 5px;
  overflow: hidden;
  }

@media (max-width: 767px) {
  .unic-table {
    overflow-x: auto;
  }
}
.unic-table table {
    width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  }

@media (max-width: 767px) {
  .unic-table table {
    min-width: 620px;
  }
}
.unic-table thead {
    background: #123D58;
  }
/* This style rule also applies to 5 other elements */
  .unic-table th {
    width: 33.333%;
  padding: 14px 13px;
  text-align: left;
  vertical-align: middle;
  border: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #172d40;
  }
/* This style rule also applies to 2 other elements */
  .unic-table thead th {
    background: #123D58;
  color: #fff;
  font-weight: 600;
  padding-top: 15px;
  padding-bottom: 15px;
  }
/* This style rule also applies to 2 other elements */
  .unic-table tbody tr:nth-child(odd) {
    background: #f3f5f7;
  }
/* This style rule also applies to 2 other elements */
  .unic-table tbody tr:nth-child(even) {
    background: #fff;
  }
/* This style rule also applies to 2 other elements */
  .unic-table tbody th {
    font-weight: 700;
  }


/* ==========================================
   UNIC SHIPPING - POST CONTENT
   Heading H1-H6 + Table
========================================== */

.css-post-content {
  --post-heading: #123D58;
  --post-border: #D8E1E7;
}

/* ===== HEADING H1 - H6 ===== */

.css-post-content h1,
.css-post-content h2,
.css-post-content h3,
.css-post-content h4,
.css-post-content h5,
.css-post-content h6 {
  color: var(--post-heading);
  font-weight: 600;
  line-height: 1.4;
  margin: 28px 0 14px;
  letter-spacing: normal;
}

/* Font size */
.css-post-content h1 {
  font-size: 28px;
}

.css-post-content h2 {
  font-size: 22px;
}

.css-post-content h3 {
  font-size: 20px;
}

.css-post-content h4 {
  font-size: 18px;
}

.css-post-content h5 {
  font-size: 16px;
}

.css-post-content h6 {
  font-size: 14px;
}

/* ===== TABLE ===== */

.css-post-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

/* Đường kẻ toàn bộ bảng */
.css-post-content table th,
.css-post-content table td {
  border: 1px solid var(--post-border);
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}

/* Tiêu đề bảng */
.css-post-content table th {
  background-color: #123D58;
  color: #fff;
  font-weight: 600;
  border-color: #123D58;
}

/* Dòng chẵn có nền nhẹ */
.css-post-content table tbody tr:nth-child(even) td {
  background-color: #F5F8FA;
}

/* Hover dòng bảng */
@media (hover: hover) {
  .css-post-content table tbody tr:hover td {
    background-color: #EBF4F8;
    transition: background-color .2s ease;
  }
}

/* ===== TABLET ===== */

@media (min-width: 768px) and (max-width: 1024px) {
  .css-post-content table th,
  .css-post-content table td {
    padding: 10px 12px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .css-post-content h1 {
    font-size: 26px;
  }

  .css-post-content h2 {
    font-size: 22px;
  }

  .css-post-content h3 {
    font-size: 20px;
  }

  .css-post-content h4 {
    font-size: 18px;
  }

  .css-post-content h5 {
    font-size: 16px;
  }

  .css-post-content h6 {
    font-size: 14px;
  }

  .css-post-content h1,
  .css-post-content h2,
  .css-post-content h3,
  .css-post-content h4,
  .css-post-content h5,
  .css-post-content h6 {
    margin: 22px 0 12px;
  }

  /* Bảng cuộn ngang nếu nội dung quá rộng */
  .css-post-content {
    min-width: 0;
  }

  .css-post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }

  .css-post-content table th,
  .css-post-content table td {
    padding: 10px 12px;
    min-width: 90px;
  }
}

/* css bảng --- */


/* ==========================================
   UNIC SHIPPING - RESPONSIVE TABLE
   Mobile:
   - 2 cot: hien thi du, khong scroll
   - 3+ cot: scroll ngang
========================================== */

@media (max-width: 767px) {

  /* ===== MAC DINH: BANG CUON NGANG ===== */

  .unic-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .unic-table table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
  }

  .unic-table table th,
  .unic-table table td {
    white-space: nowrap;
  }

  /* ===== BANG CO DUNG 2 COT ===== */

  .unic-table:has(
    table tr > :nth-child(2):last-child
  ):not(:has(
    table tr > :nth-child(3)
  )) {
    overflow-x: visible;
  }

  .unic-table table:has(
    tr > :nth-child(2):last-child
  ):not(:has(
    tr > :nth-child(3)
  )) {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .unic-table table:has(
    tr > :nth-child(2):last-child
  ):not(:has(
    tr > :nth-child(3)
  )) th,
  .unic-table table:has(
    tr > :nth-child(2):last-child
  ):not(:has(
    tr > :nth-child(3)
  )) td {
    width: 50%;
    min-width: 0;
    padding: 10px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* ===== BANG 3 COT TRO LEN ===== */

  .unic-table:has(table tr > :nth-child(3)) {
    overflow-x: auto;
  }

  .unic-table table:has(tr > :nth-child(3)) {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .unic-table table:has(tr > :nth-child(3)) th,
  .unic-table table:has(tr > :nth-child(3)) td {
    min-width: 130px;
    white-space: nowrap;
  }
}

/**/

/* ==========================================
   UNIC SHIPPING - 4 SHIPPING STEPS
   Class: .css-box-lua-chon

   Desktop: 4 columns
   Tablet: 4 columns
   Mobile: 2 x 2 (snake layout)

   Khong can JavaScript
========================================== */

/* ===== CONTAINER ===== */

.css-box-lua-chon {
  --step-arrow: #78B6D8;
  --step-gap: 40px;
  --step-arrow-size: 20px;

  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  column-gap: var(--step-gap);
  row-gap: 0;
  align-items: start;

  width: 100%;
  min-width: 0;
  overflow: visible;
}

/* ===== ITEM ===== */

.css-box-lua-chon > .brxe-block {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;

  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

/* ===== ICON ===== */

.css-box-lua-chon > .brxe-block > svg {
  flex-shrink: 0;
  align-self: center;
}

/* ===== TEXT ===== */

.css-box-lua-chon > .brxe-block > h4,
.css-box-lua-chon > .brxe-block > .brxe-text,
.css-box-lua-chon > .brxe-block > .brxe-text p {
  width: 100%;
  margin: 0;
  text-align: center;
}

/* ===== RESET OLD ARROWS ===== */

.css-box-lua-chon > .brxe-block::before,
.css-box-lua-chon > .brxe-block::after {
  content: none !important;
  display: none !important;
}

/* ===== ARROW BASE ===== */

.css-box-lua-chon > .brxe-block:not(:last-child)::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: 3;

  width: var(--step-arrow-size);
  height: var(--step-arrow-size);
  background-color: var(--step-arrow);

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;

  pointer-events: none;
}

/* ==========================================
   DESKTOP: 1025px+
   4 cot ngang
========================================== */

@media (min-width: 1025px) {

  .css-box-lua-chon
  > .brxe-block:not(:last-child)::after {
    top: 12px;
    left: calc(100% + var(--step-gap) / 2);
    transform: translateX(-50%);
  }
}

/* ==========================================
   TABLET: 768px - 1024px
   4 cot ngang
========================================== */

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

  .css-box-lua-chon {
    --step-gap: 24px;
    --step-arrow-size: 16px;
  }

  .css-box-lua-chon
  > .brxe-block:not(:last-child)::after {
    top: 12px;
    left: calc(100% + var(--step-gap) / 2);
    transform: translateX(-50%);
  }
}

/* ==========================================
   MOBILE: BELOW 768px
   2 COT X 2 HANG - HINH CHU S

   1 -> 2
        |
   4 <- 3
========================================== */

@media (max-width: 767px) {

  /* ===== CONTAINER ===== */

  .css-box-lua-chon {
    --step-gap: 24px;
    --step-arrow-size: 18px;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto;
    grid-auto-flow: row !important;

    column-gap: var(--step-gap);
    row-gap: 36px;

    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  /* ===== ITEM ===== */

  .css-box-lua-chon > .brxe-block {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-width: 0;
    padding: 0 !important;
    gap: 6px;
    text-align: center;
  }

  /* ===== ICON ===== */

  .css-box-lua-chon > .brxe-block > svg {
    align-self: center;
    margin: 0;
  }

  /* ===== TEXT ===== */

  .css-box-lua-chon > .brxe-block > h4,
  .css-box-lua-chon > .brxe-block > .brxe-text,
  .css-box-lua-chon > .brxe-block > .brxe-text p {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  /* ===== ORDER ===== */

  .css-box-lua-chon > .brxe-block:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .css-box-lua-chon > .brxe-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .css-box-lua-chon > .brxe-block:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .css-box-lua-chon > .brxe-block:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  /* ===== ARROW 1 -> 2 ===== */

  .css-box-lua-chon
  > .brxe-block:nth-child(1)::after {
    top: 12px;
    left: calc(100% + var(--step-gap) / 2);
    transform: translateX(-50%);
  }

  /* ===== ARROW 2 -> 3 (DOWN) ===== */

  .css-box-lua-chon
  > .brxe-block:nth-child(2)::after {
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  /* ===== ARROW 3 -> 4 (LEFT) ===== */

  .css-box-lua-chon
  > .brxe-block:nth-child(3)::after {
    top: 12px;
    left: calc(var(--step-gap) / -2);
    transform: translateX(-50%) rotate(180deg);
  }

  /* ===== LAST ITEM ===== */

  .css-box-lua-chon
  > .brxe-block:nth-child(4)::after {
    content: none !important;
    display: none !important;
  }
}
/*bảng dich-vu-hai-quan-nhap-khau*/
.unic-checklist {
    --check-navy: #123D58;
  --check-blue: #0076B8;
  --check-muted: #60798B;
  --check-border: #E3E9ED;

  width: 100%;
  overflow: hidden;
  border: 1px solid var(--check-border);
  border-radius: 6px;
  }
/* This style rule also applies to 3 other elements */
  .unic-checklist-row {
    display: grid;
  grid-template-columns: 28% minmax(0, 1fr) 106px;
  align-items: center;
  gap: 16px;

  min-height: 52px;
  padding: 12px 18px;
  box-sizing: border-box;
  }
/* This style rule also applies to 3 other elements */
  .unic-checklist-row:nth-child(odd) {
    background-color: #FFFFFF;
  }
/* This style rule also applies to 3 other elements */
  .unic-checklist-row:nth-child(even) {
    background-color: #F2F4F6;
  }

@media (min-width: 768px) and (max-width: 1024px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-row {
    grid-template-columns: 30% minmax(0, 1fr) 100px;
    gap: 12px;
    padding: 12px 14px;
  }
}

@media (max-width: 767px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px;
  }
}
/* This style rule also applies to 3 other elements */
  .unic-checklist-title {
    color: var(--check-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  }

@media (max-width: 767px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-title {
    grid-column: 1;
    grid-row: 1;
  }
}
/* This style rule also applies to 3 other elements */
  .unic-checklist-desc {
    color: var(--check-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  min-width: 0;
  }

@media (max-width: 767px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* This style rule also applies to 3 other elements */
  .unic-checklist-status {
    display: flex;
  align-items: center;

  width: 106px;
  min-height: 22px;
  padding: 4px 10px;

  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  }
/* This style rule also applies to 1 other element */
  .unic-checklist-status.is-ready {
    color: #0076B8;
  background-color: #E6F3FA;
  }

@media (min-width: 768px) and (max-width: 1024px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-status {
    width: 100px;
  }
}

@media (max-width: 767px) {
/* This style rule also applies to 3 other elements */
  .unic-checklist-status {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 90px;
    justify-content: center;
  }
}
/* This style rule also applies to 1 other element */
  .unic-checklist-status.is-pending {
    color: #A34E17;
  background-color: #FFF0E5;
  }