/* Custom css Breadcrumb NavXT */
nav.breadcrumb>span {
  display: inline-flex;
  align-items: center;
}

nav.breadcrumb>span:first-child {
  margin-right: 8px;
}

nav.breadcrumb>span:not(:first-child) {
  margin-inline: 8px;
}

nav.breadcrumb>span:last-child {
  color: var(--color-textGray);
}

nav.breadcrumb span a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

nav.breadcrumb span a:hover {
  color: var(--color-primary);
}

/* Custom css PageNavi */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  text-align: center;
  width: 100%;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--color-background);
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  font-size: 0.875rem;
}

.wp-pagenavi a:hover {
  background-color: var(--color-neutral);
}

.wp-pagenavi a:active {
  transform: scale(0.95);
}

.wp-pagenavi span.current {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.wp-pagenavi .pages {
  display: none;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  color: transparent;
  position: relative;
  font-size: 0;
}

.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover {
  background-color: #f5f5f5;
}

.wp-pagenavi .previouspostslink::after,
.wp-pagenavi .nextpostslink::after {
  font-family: 'Material Icons';
  font-size: 1.25rem;
  color: var(--color-foreground);
  display: inline-block;
}

.wp-pagenavi .previouspostslink::after {
  content: "chevron_left";
}

.wp-pagenavi .nextpostslink::after {
  content: "chevron_right";
}

/* Custom css Single content */
.reset-container h1 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 8px;
}

.reset-container h2 {
  font-weight: 700;
  font-size: 24px;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.reset-container h3 {
  font-weight: 600;
  font-size: 20px;
  margin-top: 1.6em;
  margin-bottom: .6em;
  line-height: 1.6;
}

.reset-container h2 * {
  font-weight: 700;
}

.reset-container h1,
.reset-container h3 * {
  font-weight: 600;
}

.reset-container p {
  margin-top: 20px;
  margin-bottom: 20px;
}

.reset-container :where(h1 + *,
  h2 + *,
  h3 + *,
  h4 + *,
  h5 + *,
  h6 + *) {
  margin-top: 0 !important;
}

.reset-container img {
  margin-block: 30px;
}

.reset-container figure.size-full.aligncenter {
  width: auto;
}

.reset-container figure.size-full.aligncenter figcaption {
  text-align: center;
}

/* --- Bổ sung style cho danh sách, bảng, link, blockquote --- */

.reset-container ul,
.reset-container ol {
  margin: 20px 0 20px 40px;
  padding: 0;
}

.reset-container ul {
  list-style-type: disc;
}

.reset-container ol {
  list-style-type: decimal;
}

.reset-container ul ul,
.reset-container ol ol,
.reset-container ul ol,
.reset-container ol ul {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 20px;
}

.reset-container li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.reset-container li::marker {
  color: #333;
}

.reset-container a {
  color: #0073aa;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.reset-container a:hover {
  color: #005177;
  text-decoration: none;
}

.reset-container blockquote {
  margin: 30px 0;
  padding: 16px 24px;
  border-left: 4px solid #0073aa;
  background-color: #f9f9f9;
  font-style: italic;
  color: #333;
}

.reset-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
}

.reset-container table th,
.reset-container table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.reset-container table th {
  background-color: #f3f3f3;
  font-weight: 600;
}

.reset-container table tr:nth-child(even) {
  background-color: #fafafa;
}

.reset-container code {
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.95em;
}

.reset-container pre {
  background-color: #f5f5f5;
  padding: 15px;
  overflow-x: auto;
  border-radius: 5px;
  font-size: 0.95em;
  line-height: 1.6;
}
/* Custom css Table of Content (Mục lục) */
.reset-container #ez-toc-container {
  padding: 12px;
  background-color: var(--color-background);
  border: 1px solid var(--color-neutral);
}

.reset-container #ez-toc-container nav a,
.reset-container #ez-toc-container nav a:link,
.reset-container #ez-toc-container nav a:visited,
.reset-container #ez-toc-container nav a:hover,
.reset-container #ez-toc-container nav a:focus,
.reset-container #ez-toc-container nav a:active {
  color: var(--color-secondary);
}

.reset-container #ez-toc-container ul ul {
  margin-top: 6px;
}

.reset-container .ez-toc-list>li:not(:first-child),
.reset-container .ez-toc-list li>ul>li:not(:first-child),
.reset-container .ez-toc-list li>ol>li:not(:first-child) {
  margin-top: 6px !important;
}

/* Custom css Map iframe */
#shop-map iframe {
  width: 100%;
  height: 500px !important;
  border-radius: 8px;
}

/* Loading dots animation */
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.loading-dots span {
  width: 4px;
  height: 4px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
  animation: loading-wave 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loading-wave {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}