/* Outer container (still no extra background/border for the overall shortcode) */
.rgg-quick-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

/* 
   SINGLE "bubble" container for -1, quantity, +1
   This encloses them in a rounded rectangle with a gold border
*/
.rgg-qatc-quantity-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  /* Larger radius + gold border to mimic the "bubble" look */
  border: 2px solid #d4af37; /* gold border */
  border-radius: 2rem;       /* round corners */
  background-color: #1c1c1c; /* dark interior */

  /* Spacing inside the bubble */
  padding: 0.5rem 1rem;
  gap: 2rem;                 /* space between -1, quantity, +1 */

  /* Keep some spacing from the button row below */
  margin-bottom: 1rem;
}

/* -1 button aligned to the right in the first column */
.rgg-qatc-quantity-container .decrement {
  justify-self: end;
}

/* +1 button aligned to the left in the third column */
.rgg-qatc-quantity-container .increment {
  justify-self: start;
}

/* Common styles for -1 and +1: square-ish, centered text, dark background */
.rgg-qatc-quantity-container .decrement,
.rgg-qatc-quantity-container .increment {
  width: 40px;
  height: 40px;
  border-radius: 4px; /* slight rounding for the buttons themselves */
  background-color: #1c1c1c;
  color: #fff;
  border: none;
  font-size: 1.25rem;
  display: flex;            /* center text */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.rgg-qatc-quantity-container .decrement:hover,
.rgg-qatc-quantity-container .increment:hover {
  background-color: #444;
}

/* Quantity input: dark background, white text, minimal border */
.rgg-qatc-quantity-container .quantity {
  width: 3rem;
  text-align: center;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  padding: 0.25rem;
}

/* SECOND ROW: Quick Add button, separate from the "bubble" above */
.rgg-qatc-button-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Gold gradient button with inline spinner */
.rgg-qatc-button-container .add-to-cart {
  display: inline-flex;         /* So the spinner can be inline with the text */
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    90deg,
    #c7a148 0%,
    #e0c379 50%,
    #c7a148 100%
  );
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  margin-bottom: 7px;
}
.rgg-qatc-button-container .add-to-cart:hover {
  background: linear-gradient(
    90deg,
    #d3b66f 0%,
    #e8d7aa 50%,
    #d3b66f 100%
  );
  transform: translateY(-2px);
}

/* Spinner for feedback, inline with button text */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem; /* space between text and spinner */
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
  vertical-align: middle;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* OPTIONAL: smaller spacing on mobile screens */
@media (max-width: 480px) {
  .rgg-qatc-quantity-container {
    gap: 1rem; /* reduce gap on phones */
    padding: 0.5rem;
  }
  .rgg-qatc-quantity-container .decrement,
  .rgg-qatc-quantity-container .increment {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* -----------------------------------------------
   Toast styles (unrelated to quantity container)
------------------------------------------------- */
.rgg-quick-add-to-toast {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9;
  background-color: var(--e-global-color-accent, #FED33C);
  color: #181616;
  padding: 15px 20px;
  min-width: 200px;
  text-transform: uppercase;
  font-size: 0.90rem;
  border-radius: 0px 10px;
  font-weight: 700;
}

.rgg-quick-add-to-toast a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
  font-family: "Encode Sans Condensed", Sans-serif;
  color: white !important;
  padding: 9px 15px;
  background: black;
  border-radius: 9px;
  font-size: 0.90rem;
  font-weight: bold;
}