/* Ensure inputs size correctly and remove native iOS appearance */
.qiog-timepicker,
.qiog-datepicker,
input[type="text"],
input[type="tel"],
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  background-clip: padding-box;
  display: block;
}

/* Prevent any overflow from inner elements */
.qiog-time-section,
.qiog-date-section {
  overflow: hidden;
}

/* Ensure the input can't visually overflow the card */
.qiog-timepicker {
  max-width: 100%;
}

/* If you have a fixed scroll-to-top button, respect safe area */
.scroll-to-top,
.qiog-scroll-top {
  right: env(safe-area-inset-right, 16px);
  bottom: env(safe-area-inset-bottom, 16px);
}

.qiog-timepicker,
.qiog-datepicker {
  font-size: 16px;
}

.qiog-time-section input {
  box-sizing: border-box;
}

/* Cart Icon Shortcode Styling */
.qiog-cart-icon-wrapper {
  display: inline-block;
  position: relative;
}

.qiog-cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 92, 49, 0.25), 0 2px 4px rgba(0, 92, 49, 0.15);
  border: 2px solid transparent;
}

.qiog-cart-icon-link i {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.qiog-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(
    135deg,
    var(--qiog-accent, #d9534f) 0%,
    #c9302c 100%
  );
  color: #ffffff;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(217, 83, 79, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: qiog-badge-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  letter-spacing: 0.3px;
}

@keyframes qiog-badge-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pulse animation when cart updates */
.qiog-cart-icon-link.cart-updated {
  animation: qiog-cart-pulse 0.5s ease-in-out;
}

@keyframes qiog-cart-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  .qiog-cart-icon-link {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .qiog-cart-badge {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .qiog-cart-icon-link,
  .qiog-cart-badge {
    animation: none;
    transition: none;
  }

  .qiog-cart-icon-link:hover {
    transform: none;
  }
}
