.ppg-multi-calendar-app {
  --ppg-gold: #d09b2c;
  --ppg-border: #d7d7d7;
  --ppg-iframe-height: 900px;
  font-family: Arial, sans-serif;
  border: 1px solid var(--ppg-border);
  border-radius: 8px;
  overflow: visible;
  position: relative;
  background: #fff;
}

.ppg-app-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #f4f4f4;
  border-bottom: 1px solid var(--ppg-border);
  flex-wrap: wrap;
}

.ppg-nav-btn {
  border: 1px solid #cbcbcb;
  background: #fff;
  color: #222;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
}

.ppg-nav-btn:hover {
  background: #ececec;
}

.ppg-nav-btn:focus-visible,
.ppg-info-icon:focus-visible,
.ppg-select-button:focus-visible,
.ppg-select-option:focus-visible,
.ppg-close:focus-visible,
.ppg-floor-close:focus-visible {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

.ppg-nav-btn.is-active {
  background: var(--ppg-gold);
  border-color: var(--ppg-gold);
  color: #fff;
}

.ppg-info-icon {
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: var(--ppg-gold);
  color: #fff;
  font-weight: 700;
  font-style: italic;
  font-family: "Times New Roman", serif;
  line-height: 1;
  font-size: 18px;
  cursor: pointer;
}

.ppg-app-content {
  background: #fff;
}

.ppg-view-container {
  display: none;
}

.ppg-view-container.is-active {
  display: block;
}

.ppg-dropdown-wrapper {
  padding: 16px;
  background: #fafafa;
  border-bottom: 1px solid #efefef;
}

.ppg-select-container {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.ppg-select-button {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  cursor: pointer;
}

.ppg-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 200;
}

.ppg-select-options.is-open {
  display: block;
}

.ppg-select-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  color: #222;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.35;
}

.ppg-select-option + .ppg-select-option {
  border-top: 1px solid #efefef;
}

.ppg-select-option:hover {
  background: #f2f2f2;
}

.ppg-select-option[aria-selected="true"] {
  background: #f7f0dc;
}

.ppg-select-arrow {
  border: solid #555;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
}

.ppg-calendar-iframe {
  display: block;
  width: 100%;
  height: var(--ppg-iframe-height);
  border: none;
}

.ppg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.58);
  padding: clamp(12px, 2.5vw, 28px);
}

.ppg-modal-content {
  background: #fff;
  width: min(680px, calc(100vw - 24px));
  margin: clamp(8px, 3.5vh, 32px) auto;
  border-radius: 10px;
  padding: clamp(16px, 2.2vw, 24px);
  position: relative;
  max-height: calc(100vh - clamp(24px, 9vh, 96px));
  overflow-y: auto;
  line-height: 1.55;
}

.ppg-floor-modal-content {
  width: clamp(320px, 62vw, 720px);
  max-width: calc(100vw - 48px);
  max-height: min(74vh, 760px);
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2.2vw, 24px);
  font-size: clamp(0.86rem, 0.35vw + 0.78rem, 0.96rem);
  line-height: 1.42;
}

.ppg-floor-modal-content h2 {
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.28rem);
  padding-right: 40px;
  margin: 0 0 0.6em;
}

.ppg-floor-modal-content p,
.ppg-floor-modal-content ul {
  margin: 0 0 0.7em;
}

.ppg-floor-modal-content li {
  margin: 0 0 0.25em;
}

.ppg-close,
.ppg-floor-close {
  border: none;
  background: #efefef;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  line-height: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 12px;
}

body.ppg-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .ppg-floor-modal-content {
    width: min(680px, calc(100vw - 28px));
  }
}

@media (max-width: 768px) {
  .ppg-nav-btn {
    padding: 9px 10px;
    font-size: 14px;
  }

  .ppg-calendar-iframe {
    height: min(var(--ppg-iframe-height), 78vh);
  }

  .ppg-modal {
    padding: 8px;
  }

  .ppg-modal-content {
    width: calc(100vw - 16px);
    margin: 8px auto;
    border-radius: 8px;
    padding: 16px;
    max-height: calc(100vh - 16px);
  }

  .ppg-floor-modal-content {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    padding: 14px 14px 16px;
  }

  .ppg-close,
  .ppg-floor-close {
    width: 30px;
    height: 30px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .ppg-floor-modal-content h2 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
}
