@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-wrapper img {
  max-height: 130px;
  width: auto;
}

.nav-btn-account,
.nav-btn-account:hover,
.nav-btn-account:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #44121B;
  color: #fff;
  border: 1px solid #44121B;
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  line-height: 1.2;
}

@media (max-width: 1023px) {

  /* Hide desktop menu copy; mobile copy lives in .header-actions--mobile */
  nav > .nav-btn-account {
    display: none !important;
  }

  .nav-btn-account,
  .nav-btn-account:hover,
  .nav-btn-account:focus {
    align-self: flex-start;
    width: auto;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
  }

  .header-actions--mobile .nav-btn-account,
  .header-actions--mobile .nav-btn-account:hover,
  .header-actions--mobile .nav-btn-account:focus {
    display: inline-flex !important;
    width: 100% !important;
    align-self: stretch;
  }

  .header-actions {
    align-self: flex-start;
  }

  .header-actions .butn {
    height: 36px !important;
    padding: 0 0.75rem !important;
  }
}

/* Equal button widths based on the longest label */
.header-actions {
  display: inline-grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center !important;
  gap: 10px;
  width: max-content !important;
}

/* Override display — Tailwind lg:hidden alone cannot hide this */
.header-actions--mobile {
  display: inline-grid !important;
  grid-auto-flow: row;
  justify-items: stretch;
  width: max-content !important;
}

.header-actions--mobile .nav-btn-account {
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: center;
}

@media (min-width: 1024px) {
  .header-actions--mobile {
    display: none !important;
  }
}

.header-actions .butn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  box-sizing: border-box !important;
  border-radius: 0.5rem !important;
  border: 1px solid #a08630 !important;
  background-color: #e5bf44 !important;
  color: #fff !important;
  padding: 0 1.25rem !important;
  margin: 0 !important;
  transition: 0.25s ease-out !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.header-actions .butn:hover {
  background-color: #ceac3d !important;
}

.btn-login-ssnp {
  position: relative;
  gap: 8px !important;
  cursor: pointer;
}

.btn-login-ssnp__label {
  display: inline-block;
  white-space: nowrap !important;
  font-size: 1rem;
  line-height: 1;
  color: #fff !important;
}

.btn-login-ssnp__divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.45);
  margin: 0 2px;
  flex-shrink: 0;
}

.btn-login-ssnp__brand {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  color: #fff !important;
}

.btn-login-ssnp__brand span {
  display: block !important;
  white-space: nowrap !important;
}

@media (max-width: 991px) {
  .logo-wrapper img {
    max-height: 100px;
  }

  .prc-gld>p:last-child,
  .mobile-head,
  .prc-gld .text-green.text-base-4xl.font-semibold,
  .prc-gld .text-red.text-base-4xl.font-semibold {
    font-size: 1.25rem;
  }

  .prc-gld img {
    width: 20px;
  }

  .price--detail>div {
    padding: 0.25rem;
  }

  h1.text-base-5xl.leading-8 {
    font-size: 1.5rem;
    text-align: center;
  }

  .dayt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .dayt * {
    font-size: 0.95rem;
  }
}

.hover\:text-2nd:hover {
  color: #e5bf44;
}

@media (min-width: 992px) {
  .lg\:w-58 {
    width: 15rem;
  }
}

@media (min-width: 576px) {
  .sm\:asp-15b11 {
    position: relative;
    padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
    --tw-aspect-w: 15;
  }

  .sm\:asp-15b11>* {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .sm\:asp-15b11 {
    --tw-aspect-h: 11;
  }
}

.news-d-area .news-card-item .article-card .img-wrapper {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

@media (min-width: 576px) {
  .news-d-area .news-card-col-2.news-sub-control .detail-wrapper {
    width: 50%;
    flex-basis: 50%;
  }
}

@media (min-width: 992px) {
  .news-d-area .news-card-item .article-card .img-wrapper .asp-1b1 {
    --tw-aspect-w: 2;
  }
}

@media (max-width: 575px) {
  .news-d-area .news-card-col-2 .news-card-item {
    width: 100%;
  }

  .news-d-area .news-card-col-2 .news-card-item .detail-wrapper .font-light {
    display: none;
  }
}


/* table silver */
.price-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: auto;
}

.title-box {
  background: linear-gradient(135deg, #76ad4c, #a9d18e);
  color: #fff;
  border-radius: 9px;
  padding: 13.5px 22.5px;
  font-size: 1.45em;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3.6px 7.2px rgba(180, 180, 180, .3);
  width: 100%;
  order: 1;
}

.note-box {
  background-color: #e6f0e0;
  color: #444;
  border-radius: 9px;
  padding: 10px 22.5px;
  text-align: center;
  box-shadow: 0 1.8px 5.4px rgba(200, 200, 200, .3);
  border: 1px solid #d1e7d1;
  width: 100%;
  order: 3;
}

.note-text {
  font-size: 0.81rem;
  opacity: 0.9;
  font-style: italic;
}

.price-box,
.gold-price-wrapper {
  background: #fff;
  color: #333;
  border-radius: 9px;
  padding: 18px;
  border: 1px solid #bcd5c5;
  box-shadow: 0 3.6px 7.2px rgba(200, 200, 200, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1 1 350px;
  min-width: 300px;
  order: 2;
}

.gold-price-wrapper table {
  margin-bottom: 0;
  font-size: 17px;
}

.gold-price-wrapper table thead tr th,
.gold-iframe-content table thead tr th {
  color: #fff;
  --tw-bg-opacity: 1;
  background-color: rgb(114 95 40 / var(--tw-bg-opacity));
  border: none;
  font-weight: 500;
  font-size: 19px;
}

.gold-price-wrapper iframe {
  display: inline-block;
  width: 100%;
  height: 400px;
}

.gold-price-wrapper iframe html,
.gold-price-wrapper iframe body,
.gold-price-wrapper iframe .table1-1,
.gold-price-wrapper iframe .table1-2,
.gold-price-wrapper iframe .table2-1,
.gold-price-wrapper iframe .table2-3,
.gold-price-wrapper iframe .table2-4 {
  font-family: "Prompt", sans-serif !important;
}

.gold-price-wrapper iframe .table2-4 {
  font-family: "Prompt", sans-serif !important;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 9px;
  margin-bottom: 9px;
  color: #555;
}

.price-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.price-header .icon {
  font-size: 1.35em;
  margin-right: 9px;
  color: #4aa96c;
}

.price-header .time {
  margin-left: 10px;
  font-size: 0.81em;
  font-weight: normal;
  color: #999;
}

.price-values {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-grow: 1;
  align-items: center;
}

.price-item {
  width: 50%;
}

.price-item .value {
  font-size: 1.6em;
  font-weight: bold;
  color: #444;
}

.price-item .label {
  font-size: 17px;
  color: #888;
  margin-top: 4.5px;
}

.divider {
  width: 1px;
  background: #e6e6e6;
  align-self: stretch;
  margin: 0 9px;
}

@media (max-width: 600px) {
  .title-box {
    font-size: 1.17em;
    padding: 9px 13.5px;
  }

  .price-box {
    padding: 13.5px;
    gap: 13.5px;
    min-width: unset;
  }

  .price-header {
    font-size: 1em;
    color: #000;
  }

  .price-header .icon {
    font-size: 1.08em;
  }

  .price-item .value {
    font-size: 1.35em;
  }

  .note-text {
    font-size: 0.72rem;
  }
}

.price-item .value.buy {
  color: #1a6b17;
}

.price-item .value.sell {
  color: #b82a2a;
}

.table1-1,
.table1-2,
.table2-1,
.table2-2,
.gold-price-wrapper body {
  /* font-family: prompt-medium !important; */
  font-family: prompt-regular !important;
}

.silver-separate-iframe .price-container .title-box {
  display: none;
}

.table2-2 {
  color: #b82a2a !important;
}

.table2-3 {
  color: #1a6b17 !important;
}

.table2-4 {
  font-weight: normal;
  color: #303030;
  background-color: #FFFFFF;
  border-right: 1px solid #DDDDDD;
  border-bottom: 1px solid #DDDDDD;
  border-top: 1px solid #DDDDDD;
  text-align: center;
  vertical-align: middle;
}

/* iOS Safari: cell text-align can be ignored vs Android; span fills cell and centers content */
.gold-price-wrapper table th.table2-4,
.gold-price-wrapper table td.table2-4 {
  text-align: center;
  vertical-align: middle;
}

.table2-4 span {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.25;
}

.table2-4 span.up {
  color: var(--bs-success);
}

.table2-4 span.down {
  color: var(--bs-danger);
}

/* iOS WebKit: absolute ::before without top uses an inconsistent static position vs Chrome */
.table2-4 span.up::before,
.table2-4 span.down::before,
.table2-4 span.minus::before {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  left: 10px;
  /* top: 50%; */
  top: -1px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: left center;
}

.table2-4 span.up::before {
  background-image: url("../img/icon/up.svg");
  background-size: 13px;
}

.table2-4 span.down::before {
  background-image: url("../img/icon/down.svg");
  background-size: 13px;
}

.table2-4 span.minus::before {
  background-image: url("../img/icon/minus.gif");
  background-size: 12px;
}

.snpgold-font-gold {
  font-size: 15px;
  font-weight: normal;
  color: #303030;
}

.snpgold-lastupdate {
  font-size: 14px;
  font-weight: normal;
  color: #FFFFFF;
  text-align: center;
  background-color: #76AD4C;
  border: 1px solid #DDDDDD;
}

.sect-price-display .cleft {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  gap: 18px;
}

.sect-price-display .cright {
  padding-left: 20px;
}

.sect-price-display {
  padding: 60px 0 40px 0;
  --tw-bg-opacity: 1;
  background-color: rgb(229 191 68 / var(--tw-bg-opacity));
}

.header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title h2 {
  font-size: 2em;
  line-height: 1;
}

.header-title .rgh-text {
  text-align: right;
}

.text-link-phone {
  /* padding: 0 10px;
  border-radius: 20px;
  background: #aa8f06;
  color: #82650f;
  background: linear-gradient(to left, #c09f53, #eedaad); */
  background: rgba(255, 255, 255, 0.69);
  padding: 0 10px;
  border-radius: 50px;
  color: #745b11;
}

.text-link-phone:hover {
  background: #fff;
}

@media(max-width: 768px) {

  .sect-price-display .cleft,
  .sect-price-display .cright {
    width: 100%;
    padding: 0 15px;
  }

  .sect-price-display .cright {
    margin-top: 40px;
  }

  .price-container {
    max-width: 100%;
  }

  .price-item .value {
    font-weight: 500;
  }

  .sect-price-display .bottom-bar p,
  .header-title p {
    font-size: 15px !important;
  }
}

@media(max-width: 600px) {
  .gold-price-wrapper table thead tr th {
    font-size: 16px;
  }

  .price-header {
    font-size: 1.35em;
    color: #000;
  }
}

@media(max-width: 480px) {
  .gold-price-wrapper table {
    font-size: 16px;
  }

  .gold-price-wrapper table thead>tr>th:first-child {
    width: 16%;
  }

  .gold-price-wrapper table thead tr th {
    font-size: 14px;
    padding: 10px 3px;
  }
}

@media(max-width: 430px) {
  .gold-price-wrapper {
    padding: 0;
    overflow: hidden;
  }

  .gold-price-wrapper>p {
    display: none;
  }
}

@media(max-width: 395px) {
  .gold-price-wrapper {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    min-width: initial;
  }

  .gold-price-wrapper table {
    width: 373px;
    overflow: scroll;
  }

  .header-title {
    display: inline-block;
    width: 100%;
  }

  .header-title .rgh-text {
    text-align: left;
  }

  .header-title .rgh-text p {
    display: inline-block;
    float: left;
    font-size: 14px;
    margin-bottom: 0px;
    margin-right: 0.35em;
  }
}

@media(max-width: 320px) {
  .price-header {
    font-size: 1.2em;
  }
}

.site-popup-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.site-popup-banner[hidden] {
  display: none !important;
}

.site-popup-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.site-popup-banner__dialog {
  position: relative;
  z-index: 1;
  max-width: min(800px, 92vw);
  max-height: 90vh;
}

.site-popup-banner__dialog img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  height: auto;
}

.site-popup-banner__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}