/*
Theme Name: Mediterra Restaurant & Bar
Author URI: https://alphacreative.vn/
Version: 1.0.0
*/

.section-table {
  padding: 40px;
}

.section-table .note a {
  color: #174b9c;
  position: relative;
}

.section-table .note {
  padding: 32px 0 40px;
}

.section-table .note > div {
  display: flex;
  align-items: center;
  gap: 40px;
}

.section-table .note a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  background-color: var(--color-primary);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-table .note a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.tablepress {
  border-collapse: collapse;
  width: 100%;
  margin: 0 !important;
  font-size: 16px;
}

:root {
  --table-main-color: #174b9c;
  --table-row-first: #fff;
  --table-row-second: #f1f2f2;
}

.tablepress td:nth-child(1),
.tablepress th:nth-child(1) {
  width: 50%;
}

.tablepress td:nth-child(2),
.tablepress th:nth-child(2),
.tablepress td:nth-child(3),
.tablepress th:nth-child(3),
.tablepress td:nth-child(4),
.tablepress th:nth-child(4) {
  width: 16.66%;
  text-align: center;
  vertical-align: middle;
}

.tablepress > :where(thead) + tbody > :where(:not(.child)) > *,
.tablepress > tbody > * ~ :where(:not(.child)) > *,
.tablepress > tfoot > :where(:first-child) > * {
  border-color: transparent !important;
  color: #174b9c !important;
}

.tablepress caption {
  display: none;
}

.tablepress > :not(caption) > * > * {
  padding: 23px 24px !important;
}

.tablepress th,
.tablepress td {
  border: 1px solid transparent;
  padding: 8px 12px;
  text-align: center;
}

.tablepress thead th {
  background-color: var(--table-main-color);
  color: #fff;

  font-size: 12px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 2.4px;
}

.tablepress tbody {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
}

.tablepress tbody tr:nth-child(even) {
  background-color: var(--table-row-second);
}

.tablepress tbody tr:hover {
  background-color: var(--table-row-second);
}

@media (max-width: 991px) {
  .section-table {
    padding: 40px 0 40px 16px;
  }

  .section-table .table-wrapper {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-right: 16px;
  }

  .section-table .note {
    padding: 24px 12px 24px 0;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .section-table .note > div {
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .section-table .note .button {
    margin-top: 8px;
  }

  .tablepress > :not(caption) > * > * {
    padding: 15px 20px !important;
  }
}

/* popup marker */
.pum-theme-lightbox .pum-content + .pum-close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent !important;
  font-size: 0 !important;
  transition: all 0.4s ease;
}

.pum-theme-lightbox .pum-content + .pum-close:hover {
  background-color: #fff;
}

.pum-theme-lightbox .pum-content + .pum-close:hover::after {
  background-image: url("./assets/images/icon/icon-close-popup-green.svg");
}

.pum-theme-lightbox .pum-content + .pum-close::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("./assets/images/icon/icon-close-popup.svg");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-0.5px - 50%), calc(1px - 50%));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 767px) {
  .pum-theme-lightbox .pum-content {
    margin-left: 24px;
    margin-right: 24px;
  }

  .pum-theme-lightbox .pum-content + .pum-close {
    right: 24px !important;
  }
}
