#alt-content .alt-copy-wrapper {
    position: relative;
    display: inline-block;
}

#alt-content .alt-copy-column {
  display: inline;
}

#alt-content .alt-copy-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25); /* lớp overlay nhẹ */
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

#alt-content .alt-copy-wrapper:hover::after {
    opacity: 1;
}

#alt-content .alt-copy-wrapper:hover .alt-copy {
    opacity: 1;
}
.alt-copy {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    transition: opacity 220ms cubic-bezier(.2,.9,.2,1);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99;
}



.alt-copy-buttons {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px; /* khoảng cách giữa các nút */
    opacity: 0;
    transition: opacity 220ms cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
    z-index: 99;
}

.alt-is-hover {
    opacity: 1;
    pointer-events: auto;
}

.alt-copy-buttons .alt-copy {
    position: static;
    opacity: 1;
    transform: none;
    border-radius: 30px;
}

.alt-download,
.alt-download-table {
  border-radius: 30px;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
    border: .25em solid #6db047 !important;
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    background-color: #6db047;
}

.notification {
    position: fixed;
    right: 1.5em;
    bottom: 1.5em;
    width: 100%;
    max-width: 215px;
    transition: transform 0.15s ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 99;
    transform: translateX(100%);
    opacity: 0;
}

.notification__box,
.notification__content {
    display: flex;
}

.notification__box,
.notification__content {
    align-items: center;
}

.notification__box {
    animation: flyIn 0.3s ease-out;
    border-radius: 0.75em;
    box-shadow: 0 0.5em 1em hsla(var(--hue),10%,10%,0.1);
    height: 65px;
    transition: background-color var(--transDur), color var(--transDur);
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
}
.notification--out .notification__box {
  animation: flyOut 0.3s ease-out forwards;
}
.notification__content {
  padding: 0.375em 1em;
  width: 100%;
  height: 100%;
}
.notification__icon {
  flex-shrink: 0;
  margin-right: 0.75em;
  width: 2em;
  height: 2em;
}
.notification__icon-svg {
  width: 100%;
  height: auto;
}
.notification__text {
  line-height: 1.333;
}
.notification__text-title {
  font-size: 0.75em;
  font-weight: bold;
}
.notification__text-subtitle {
  font-size: 0.6em;
  opacity: 0.75;
}

.alt-file-icon {
  display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 9px;
  background-size: contain;
  background-repeat: no-repeat;
}
.alt-link-download {
  display: flex;
  align-items: center;
}
.file-icon-pdf { background-image: url('icon/pdf1.svg'); }
.file-icon-doc, .file-icon-docx { background-image: url('icon/word.svg');}
.file-icon-xls, .file-icon-xlsx { background-image: url('icon/excel.svg'); }
.file-icon-ppt, .file-icon-pptx { background-image: url('icon/powerpoint.svg'); }
.file-icon-zip, .file-icon-rar { background-image: url('icon/archive.svg'); }
.file-icon-csv { background-image: url('icon/csv.svg'); }

#alt-content .alt-test-data .kb-button.btn-test-data {
    padding: .4em 1em !important;
    border: 0 !important;
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    background: var(--global-palette-btn-bg) !important;
    color: var(--global-palette-btn) !important;
    border-radius: 30px !important;
}

#alt-content .alt-test-data .kb-button.btn-test-data:hover {
  background: var(--global-palette-btn-bg-hover) !important;
}

#alt-content .alt-row-table-graph {
      display: grid;
    grid-template-rows: auto auto;
    gap: 16px;
    grid-template-columns: 425px 1fr;
}

#alt-content .alt-row-table-graph h2.wp-block-kadence-advancedheading{
  grid-column: 1 / -1;

}
#alt-content .alt-row-table-graph .wp-block-kadence-column table {
  width: 100%;
}

@supports selector(:focus-visible) {
  .notification__btn:focus {
    background-color: transparent;
  }
  .notification__btn:focus-visible,
  .notification__btn:active {
    background-color: hsl(var(--hue),10%,95%);
  }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue),10%,10%);
    --fg: hsl(var(--hue),10%,90%);
  }
  .notification__box {
    background-color: hsl(var(--hue),10%,30%);
  }
  .notification__btns {
    box-shadow: -1px 0 0 hsla(var(--hue),10%,90%,0.15);
  }
  .notification__btn + .notification__btn {
    box-shadow: 0 -1px 0 hsla(var(--hue),10%,90%,0.15);
  }
  .notification__btn:active,
  .notification__btn:focus {
    background-color: hsl(var(--hue),10%,35%);
  }

  @supports selector(:focus-visible) {
    .notification__btn:focus {
      background-color: transparent;
    }
    .notification__btn:focus-visible,
    .notification__btn:active {
      background-color: hsl(var(--hue),10%,35%);
    }
  }
}

/* Animations */
@keyframes flyIn {
  from {
    transform: translateX(calc(100% + 1.5em));
  }
  to {
    transform: translateX(0);
  }
}
@keyframes flyOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100% + 1.5em));
  }
}