:root {
  --wp-calendar-primary: var(--e-global-color-primary, #ffcd03);
  --wp-calendar-secondary: var(--e-global-color-secondary, #143051);
  --wp-calendar-text: var(--e-global-color-text, #7a7a7a);
}

#wp-phm-calendar-wrapper {
  margin: 0;
}

#wp-phm-calendar-wrapper button:active,
#wp-phm-calendar-wrapper button:focus,
#wp-phm-calendar-wrapper button:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

#wp-phm-calendar-wrapper button:disabled {
  color: #666;
}

#wp-phm-calendar-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#wp-phm-current-month-year {
  font-size: 2em;
  color: var(--wp-calendar-secondary);
}

#wp-phm-days-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.wp-phm-calendar-nav-button {
  background-color: transparent;
  border: none;
  font-size: 1.5em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.1s ease;
  color: var(--wp-calendar-secondary);
}

.wp-phm-calendar-nav-button:hover,
.wp-phm-calendar-nav-button:active,
.wp-phm-calendar-nav-button:focus,
.wp-phm-slider-arrow:hover,
.wp-phm-slider-arrow:focus,
.wp-phm-slider-arrow:active {
  background-color: transparent;
  color: inherit;
}

#wp-phm-days-slider {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background-color: transparent;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
}

.wp-phm-slider-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  cursor: pointer;
  border: none;
  font-size: 1.5em;
  color: var(--wp-calendar-primary);
  padding: 0;
  line-height: 1;
}

.wp-phm-slider-arrow:active,
.wp-phm-slider-arrow:focus,
.wp-phm-slider-arrow:focus-visible {
  outline: none;
  border: none;
  box-shadow: none;
}

#wp-phm-days-slider::-webkit-scrollbar {
  height: 6px;
}

#wp-phm-days-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#wp-phm-days-slider::-webkit-scrollbar-thumb {
  background: var(--wp-calendar-primary);
  border-radius: 10px;
  opacity: 0.6;
}

#wp-phm-days-slider::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.wp-phm-day-item {
  border: 2px solid var(--wp-calendar-primary);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  min-width: 110px;
  width: -moz-max-content;
  width: max-content;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 10px;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  color: #666;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.wp-phm-day-item:disabled {
  opacity: 0.6;
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  color: #999;
}

.wp-phm-day-number {
  font-size: 1.1em;
  font-weight: 600;
}

.wp-phm-day-shortname {
  font-size: 0.7em;
  /* color: #666; */
  font-weight: 400;
  letter-spacing: 0.5px;
}

.wp-phm-day-isClosed {
  position: absolute;
  bottom: 0.5em;
  font-size: 0.7em;
  color: #666;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.wp-phm-day-item:hover:not(.wp-phm-day-closed):not(.wp-phm-day-other-month) {
  border-color: var(--wp-calendar-primary);
  background: rgba(255, 255, 255, 1);
  color: var(--wp-calendar-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-phm-day-today {
  border-color: var(--wp-calendar-primary);
  background: rgba(255, 205, 3, 0.1);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 205, 3, 0.2);
}

.wp-phm-day-selected {
  background-color: var(--wp-calendar-primary);
  color: #fff;
  border-color: var(--wp-calendar-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 205, 3, 0.3);
}

.wp-phm-day-closed {
  opacity: 0.5;
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  pointer-events: none;
  color: #999;
  cursor: not-allowed;
}

.wp-phm-day-closed:hover {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
}

.wp-phm-day-status {
  font-size: 0.6em;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.wp-phm-opening-hours-info {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--wp-calendar-primary);
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wp-phm-hours-content {
  width: 100%;
  margin: 0;
  display: flex;
  justify-self: center;
  flex-direction: column;
  align-items: center;
}

.wp-phm-hours-title {
  margin: 0 0 1rem 0;
  font-size: 1.3em;
  color: var(--wp-calendar-secondary);
  text-transform: capitalize;
}

.wp-phm-hours-time {
  margin: 0;
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
}

.wp-phm-hours-label {
  color: #666;
  margin-right: 0.5rem;
}

.wp-phm-hours-value {
  color: var(--wp-calendar-text);
  font-size: 1.15em;
}

.wp-phm-hours-closed {
  margin: 0;
  font-size: 1.1em;
  color: var(--wp-calendar-secondary);
}

.wp-phm-hours-no-data {
  margin: 0;
  font-size: 1em;
  color: #999;
  font-style: italic;
}
