.art-in-ar-buttons{
  margin-bottom:20px;
  display:flex;
  flex-wrap:wrap;
}
.art-in-ar-container{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  position: relative;
}
.art-in-ar-message{
  font-size:0.9em;
  opacity:0.8;
  margin:0;
}

/* QR card — designed to draw the eye and sell the AR reward */
.art-in-ar-qr{
  border:1px solid rgba(0,0,0,0.10);
  border-radius:12px;
  padding:14px;
  background:#fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}

/* Teaser: the product image with an AR badge, hinting at the reward */
.art-in-ar-qr-teaser{
  position:relative;
  flex:none;
  border-radius:10px;
  overflow:hidden;
  line-height:0;
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
}
.art-in-ar-qr-teaser img{
  display:block;
  width:120px;
  height:120px;
  object-fit:cover;
  margin:0;
  padding:0;
}
.art-in-ar-qr-badge{
  position:absolute;
  bottom:6px;
  right:6px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(0,0,0,0.80);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.05em;
  line-height:1;
}
.art-in-ar-qr-badge svg{ display:block; }

.art-in-ar-qr-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}
.art-in-ar-qr-title{
  font-weight:700;
  font-size:1.05em;
  line-height:1.3;
}
.art-in-ar-qr-scan{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.art-in-ar-qr-image{
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:8px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 0 0 2px rgba(0,0,0,0.06);
  position:relative;
}
/* Pulsing ring to draw the eye to the code */
.art-in-ar-qr-image::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:10px;
  box-shadow:0 0 0 0 rgba(0,0,0,0.18);
  animation: artinar-pulse 2.2s ease-out infinite;
  pointer-events:none;
}
@keyframes artinar-pulse{
  0%   { box-shadow:0 0 0 0 rgba(0,0,0,0.20); }
  70%  { box-shadow:0 0 0 12px rgba(0,0,0,0); }
  100% { box-shadow:0 0 0 0 rgba(0,0,0,0); }
}
@media (prefers-reduced-motion: reduce){
  .art-in-ar-qr-image::after{ animation:none; }
}
.art-in-ar-qr-image canvas,
.art-in-ar-qr-image img{
  display:block;
  width:150px;
  height:150px;
  max-width:46vw;
  max-height:46vw;
  object-fit: contain;
  margin: 0;
  padding: 0;
}
.art-in-ar-qr-note{
  font-size:0.85em;
  opacity:0.85;
  text-align:center;
  line-height: 1.4;
}

/* On wider screens: teaser and scan side by side */
@media (min-width: 600px) {
  .art-in-ar-qr{
    flex-direction:row;
    align-items:center;
    gap:18px;
    padding:16px;
  }
  .art-in-ar-qr-body{
    align-items:flex-start;
    text-align:left;
  }
  .art-in-ar-qr-title{ font-size:1.1em; }
  .art-in-ar-qr-scan{
    flex-direction:row;
    align-items:center;
    gap:14px;
  }
  .art-in-ar-qr-note{ text-align:left; max-width:200px; }
  .art-in-ar-qr-image canvas,
  .art-in-ar-qr-image img{
    width:150px;
    height:150px;
    max-width:none;
    max-height:none;
  }
}

/* Model Viewer Custom Button Styles */
.artinar-ar-button {
  background-color: #000;
  border-radius: 4px;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  white-space: nowrap;
  z-index: 10;
}

/* Hide button when AR is not supported or not yet ready */
model-viewer:not([ar-status='hidden']) .artinar-ar-button {
  display: block;
}
model-viewer[ar-status='hidden'] .artinar-ar-button {
  display: none;
}

.artinar-ar-button:active {
  background-color: #333;
}

.artinar-ar-button:focus {
  outline: none;
}

.artinar-ar-button:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
