/* Container for the AR button component */
[data-baetes-vah] {
  position: relative;
  display: inline-block;
}

/* Main AR button - using WordPress button styling with customizations */
.baetes-vah-button {
  display: inline-block;
  padding: 0.667em 1.333em;
  background-color: var(--wp--preset--color--black, #000000);
  color: var(--wp--preset--color--white, #ffffff);
  border: 1px solid var(--wp--preset--color--black, #000000);
  border-radius: 4px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1.5;
}

.baetes-vah-button:hover {
  background-color: var(--wp--preset--color--contrast, #333333);
  border-color: var(--wp--preset--color--contrast, #333333);
  color: var(--wp--preset--color--white, #ffffff);
}

.baetes-vah-button:active {
  transform: scale(0.98);
}

/* Variant selector dropdown */
.baetes-vah-variant-selector {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background-color: var(--wp--preset--color--base, #ffffff);
  border: 1px solid var(--wp--preset--color--contrast-2, #e0e0e0);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.baetes-vah-variant-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.baetes-vah-variant-list li {
  border-bottom: 1px solid var(--wp--preset--color--contrast-1, #f0f0f0);
}

.baetes-vah-variant-list li:last-child {
  border-bottom: none;
}

.baetes-vah-variant-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  color: var(--wp--preset--color--contrast, #333333);
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 0.875em;
  cursor: pointer;
}

.baetes-vah-variant-option:hover {
  background-color: var(--wp--preset--color--contrast-1, #f5f5f5);
  color: var(--wp--preset--color--contrast, #000000);
}

.baetes-vah-variant-option:active {
  background-color: var(--wp--preset--color--contrast-2, #e8e8e8);
}

/* Popout container for help text and QR code */
.baetes-vah-popout {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 320px;
  background-color: var(--wp--preset--color--base, #ffffff);
  border: 1px solid var(--wp--preset--color--contrast-2, #e0e0e0);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 16px;
}

/* Help text section */
.baetes-vah-help-text {
  color: var(--wp--preset--color--contrast-3, #666666);
  font-size: 0.875em;
  line-height: 1.5;
}

.baetes-vah-help-text p {
  margin: 0;
}

/* QR code section */
.baetes-vah-qr {
  text-align: center;
}

.baetes-vah-qr p {
  margin: 0 0 16px 0;
  color: var(--wp--preset--color--contrast-3, #666666);
  font-size: 0.875em;
  line-height: 1.5;
}

.baetes-vah-qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.baetes-vah-qr-code img {
  max-width: 100%;
  height: auto;
}

/* Editor-specific styles 
.wp-block-baetes-view-at-home-button .baetes-vah-button {
  pointer-events: none;
}*/

/* Responsive adjustments */
@media screen and (max-width: 782px) {
  .baetes-vah-button {
    padding: 0.583em 1.167em;
    font-size: 0.875em;
  }
  
  .baetes-vah-variant-selector,
  .baetes-vah-popout {
    min-width: 240px;
    max-width: 280px;
  }
}
