/* ================================================================
   Inventory Action Buttons — Revvable widget modals (Quote, Text Us,
   Price Alert) + shared utilities. Loads on SRP and VDP.
   ================================================================ */

.inv-disclaimer { font-style: italic; max-width: 1000px; margin: auto; }

/* --- Revvable "Text Us" floating button --- */
#revvable-revtext {
  position: fixed;
  bottom: 5%;
  right: 10px;
  cursor: pointer;
  width: 116px;
  height: 56px;
  background-color: #0f1446;
  color: #fff;
  border-radius: 16px;
  font-size: 14px;
  border: 1px solid #fff;
  background-image: url('https://revvable-prod.dotcms.cloud/dA/8f9b5c4157/smswhite.png');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: left 19px top 16px;
  z-index: 9999;
}
#revvable-revtext:hover {
  background-image: url('https://revvable-prod.dotcms.cloud/dA/0596d03467/sms.png');
  background-color: #fff;
  color: #0f1446;
}

/* --- Text Us modal frame (bottom-right) --- */
#revvable-revmodal {
  font-family: Montserrat, sans-serif;
  position: fixed;
  opacity: 1;
  z-index: 10000;
  color: #0f1446;
  bottom: 13%;
  right: 30px;
  max-height: 85vh;
  border: 1px solid #0f1446;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  overflow-x: clip;
  transform: translateY(0);
  animation: revvable-fade-in 0.75s ease-in;
}

/* --- Quote modal backdrop --- */
.revvable-quote-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: revvable-fade-in 0.2s ease;
}
.revvable-quote-overlay.is-open {
  display: block;
}

/* --- Quote modal frame (centered with overlay) --- */
#revvable-revquote {
  font-family: Montserrat, sans-serif;
  position: fixed;
  z-index: 10000;
  color: #0f1446;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  max-width: 94vw;
  max-height: 95vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: revvable-alert-in 0.3s ease-out;
}

/* --- Price Alert modal frame --- */
#revvable-revalert {
  font-family: Montserrat, sans-serif;
  position: fixed;
  z-index: 10000;
  color: #0f1446;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: revvable-alert-in 0.3s ease-out;
}

@keyframes revvable-fade-in {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
}
@keyframes revvable-alert-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px);
  }
}

/* --- Modal inner elements --- */
.revvable-revmodalinner {
  background-color: #fff;
  color: #000;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 24px 24px 0;
}
.revvable-revmtitle { font-weight: 700; font-size: 20px; margin: 0; }
.revvable-revm2nd,
.revvable-revmtext {
  font-weight: 400;
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
  padding-bottom: 0;
  max-width: 100%;
}
.revvable-revmtab {
  font-weight: 500;
  display: inline-block;
  width: 158px;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  color: #718096;
  text-align: center;
  font-size: 14px;
}
.revvable-revftab {
  font-weight: 500;
  display: inline-block;
  text-align: center;
  width: 158px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  color: #718096;
}
.revvable-rselected { border-bottom: 1px solid #000; color: #000; }
.revvable-rcenter { text-align: center; }
.revvable-revcirc { margin-left: auto; margin-right: auto; }
.revwide { width: auto !important; overflow-y: scroll; }
.MuiBox-root { overflow-x: clip; }

/* --- Price Alert form container --- */
#revvable-revalert .revvable-rev-text-us {
  margin: 0;
  padding: 20px 24px 0;
}

/* Text-us form positioning */
#revvable-revmodal .revvable-rev-text-us {
  margin-left: 50px;
  margin-top: 16px;
}
#revvable-revquote .revvable-rev-text-us {
  margin: 0;
  padding: 20px 24px 0;
}

/* --- Form labels --- */
.revmlabel,
.revvable-revlabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

/* --- Form fields --- */
.revvable-revin {
  font-family: inherit;
  font-weight: 400;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
  width: 100%;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.revvable-revin:focus {
  outline: none;
  border-color: #0096d7;
  box-shadow: 0 0 0 3px rgba(0, 150, 215, 0.1);
}
.revvable-revin::placeholder { color: #9ca3af; }

/* Textarea */
#revvable-revmessage,
#price-revmessage {
  height: 80px;
  resize: vertical;
}

/* State select */
#rstate,
.revvable-revstate {
  font-family: inherit;
  font-weight: 400;
  height: 42px;
  width: 100%;
  font-size: 14px;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 14px;
  margin-bottom: 12px;
  background: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.revvable-revstate:focus {
  outline: none;
  border-color: #0096d7;
  box-shadow: 0 0 0 3px rgba(0, 150, 215, 0.1);
}

/* Radio buttons */
.revvable-radio-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  cursor: pointer;
}

/* --- Text-us holder, quote holder, finance holder --- */
#revvable-revtext-holder {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 12px;
  background-color: #fff;
  padding-bottom: 10px;
  color: #000;
}
#revquote-holder { font-size: 14px; min-height: 500px; min-width: 300px; }
#revvable-revfinholder { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }

/* Price alert holder */
#revvable-revalert-holder {
  background: #fff;
  padding-bottom: 8px;
}

/* --- Send / submit buttons --- */
#price-revsend,
#quote-revsend,
#revvable-revsend {
  cursor: pointer;
  background-color: #0f1446;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  box-sizing: border-box;
  transition: background-color 0.15s;
}
#price-revsend:hover,
#quote-revsend:hover,
#revvable-revsend:hover {
  background-color: #1a1f5c;
}

/* --- Close buttons --- */
#revvable-revpriceclosebutton,
#revvable-revalertclosebutton,
#revvable-revclosebutton {
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #6b7280;
  border-radius: 50%;
  border: none;
  z-index: 90000;
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
#revvable-revpriceclosebutton:hover,
#revvable-revalertclosebutton:hover,
#revvable-revclosebutton:hover {
  background-color: #f3f4f6;
}
.revvable-revclosebuttoninner {
  font-weight: 100;
  font-size: 60px;
  transform: rotate(-45deg);
  text-align: center;
  margin-top: -22px;
  margin-left: -3px;
}

/* --- Footer elements --- */
.revvable-revdisc {
  margin-top: 16px;
  padding: 0 24px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}
.revvable-revdeets { text-decoration: underline; color: #6b7280; }
.revvable-revpow {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  padding: 12px 0 16px;
}
.revvable-revicon { width: 20px; display: inline-block; vertical-align: middle; margin-right: 2px; }
.revvable-revlink { color: #6b7280; text-decoration: underline; }

/* --- Error display --- */
/* Hidden until favorite/alert features are working */
[data-action="revfavorite"],
[data-action="revalert"] { display: none !important; }

#price-errorer,
#quote-errorer {
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
}
