/* GLOBAL FONT */
div.vibracart, div.vibracart * {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px;
  box-sizing: border-box;
}


/* div.vibracart_fade{
  overflow: hidden;
  visibility: hidden;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  background-color: white;
} */
div.vibracart_waiting{
  position: fixed;   /*  Don't adjust as this is controlled by cartposition in settings.js   */
  overflow: hidden;
  visibility: hidden;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  background-image: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 50% 25%;
  z-index: 2000;
}
div.vibracart_alert{
  position: fixed;   /*  Don't adjust as this is controlled by cartposition in settings.js   */
  overflow: hidden;
  visibility: hidden;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  z-index: 2001;
}
p.vibracart_alerterror{
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14pt;
  color: white;
  font-weight: bold;
  line-height: 20px;
  background-color: transparent;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
  padding: 0 10px 0 10px;
}
p.vibracart_alertmessage{
  text-align: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 14pt;
  color: white;
  font-weight: bold;
  line-height: 20px;
  background-color: transparent;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
  padding: 0 10px 0 10px;
}


/* CART */
div.vibracart {
  /* position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important; */
  z-index: 2000 !important;
  background-color: #1E2330 !important;
  border: 2px solid #4B5563;
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
  width: 100vw !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* NEW FLEX LAYOUT */
  display: flex;
  flex-direction: column;
  height: auto !important;
  max-height: 90vh !important;
  /* min-height: 400px !important; */
}

/* HEADER */
div.vibracart_header {
  background: transparent;
  padding: 15px 20px 0px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TITLE */
div.vibracart_title {
  font-size: 16px;
  font-weight: bold;
  color: rgba(255,255,255,0.9);
  margin: 0;
  padding: 0;
  flex-grow: 1;
  text-align: left;
}

/* CLOSE BUTTON */
div.vibracart_closebutton {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #9CA3AF;
  cursor: pointer;
  margin: 0;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  position: relative;
}

div.vibracart_closebutton::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='6' y1='6' x2='18' y2='18' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

div.vibracart_closebutton:hover {
  color: #D1D5DB;
  background: #2B3444;
}

/* CART CONTENT */
div.vibracart_content {
  background-repeat: no-repeat;
  background-position: center;
  padding: 0px 20px 0px 20px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 200px;       /* 👈 Reset this */
  flex-shrink: 1;      /* 👈 Ensure it can shrink */
}

/* Make the table stretch full width */
table.vibracart_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  table-layout: fixed;
}

/* Row styling */
tr.vibracart_item_even,
tr.vibracart_item_odd {
  background-color: #454E5C;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  overflow: hidden;
}

tr.vibracart_item_even td,
tr.vibracart_item_odd td {
  vertical-align: middle;
  padding: 15px 15px 15px 10px;
}

/* DELETE ICON */
td.vibracart_itemdelete {
  width: 24px;
  text-align: center;
  color: #9CA3AF;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-2px);
}
td.vibracart_itemdelete:hover {
  color: #e39f9f;
}

/* IMAGE */
td.vibracart_itemimage {
  width: 64px;
}
td.vibracart_itemimage img {
  width: 56px;
  height: auto;
  border-radius: 3px;
}

/* DESCRIPTION */
td.vibracart_itemdescription {
  font-size: 14px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
  text-align: left;
}
p.vibracart_itemprice {
  font-size: 14px;
  color: #2a94ff;
  font-weight: normal;
  margin: 4px 0 0;
}

/* QUANTITY */
td.vibracart_itemquantity {
  width: 70px;
  text-align: left;
}
input.vibracart_itemquantity[type="text"] {
  background: #303946;
  color: white;
  border-radius: 5px;
  border: 1px solid #515b6a;
  padding: 2px 3px;
  width: 40px;
  font-size: 14px;
  text-align: center;
}

/* TOTAL PRICE */
td.vibracart_itemtotal {
  width: 90px;
  text-align: right;
}
td.vibracart_itemtotal p {
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin: 0;
  white-space: nowrap;
}

/* Rounded Corners */
tr.vibracart_item_even td:first-child,
tr.vibracart_item_odd td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
tr.vibracart_item_even td:last-child,
tr.vibracart_item_odd td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
tr.vibracart_item_even,
tr.vibracart_item_odd {
  overflow: hidden;
}

/* FOOTER */
div.vibracart_footer {
  background: #374151;
  padding: 15px 20px 20px 20px;
  text-align: center;
}

/* COUPON */
div.vibracart_coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Wrap input and button together */
div.vibracart_coupon > input.vibracart_coupontextbox,
div.vibracart_coupon > button.vibracart_applybutton {
  flex-shrink: 0;
}

/* Optional: size input field */
input.vibracart_coupontextbox {
  background: #2b333f;
  border: 1px solid #4B5563;
  border-radius: 6px;
  padding: 5px;
  color: white;
  font-size: 12px;
  width: 120px;
}

/* Style the Apply button */
button.vibracart_applybutton {
  background: #4B5563;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

button.vibracart_applybutton:hover {
  color: rgba(255, 255, 255, 1);
}

/* Total wrapper pushed right */
div.vibracart_total {
  margin-left: auto;
  color: white;
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}


/* Checkout button container */
div.vibracart_checkoutbuttonsflex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Remove layout interference */
div.vibracart_continuebutton,
div.vibracart_stripecheckoutbutton {
  all: unset;
  display: block;
}

/* CONTINUE SHOPPING button */
button.vibracart_continuebutton {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background-color: #212834;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: normal !important; /* Let the browser auto-handle font metrics */
  cursor: pointer !important;
  text-align: center !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
/* HOVER state */
button.vibracart_continuebutton:hover {
  background-color: #1d232e;
}

/* STRIPE CHECKOUT button */
button.vibracart_stripecheckoutbutton {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background-color: #007AFF;
  color: white !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  cursor: pointer !important;
  text-align: center !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

button.vibracart_stripecheckoutbutton:hover {
  background-color: #218bff;
}


@media (max-width: 639px) {
  div.vibracart {
    width: 100vw !important;
    height: 100vh !important; /* Fallback */
    max-width: none !important;
    max-height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  @supports (height: 100dvh) {
    div.vibracart {
      height: 100dvh !important;
      min-height: 100dvh !important;
      max-height: 100dvh !important;
    }
  }
  
  div.vibracart {
    box-shadow: none !important;
  }
}


@media (max-width: 360px) {
  td.vibracart_itemquantity {
    display: none !important;
  }
}


/* BACKGROUND BLUR ONLY */
#darkenScreenObject {
  position: fixed !important;
  z-index: 999 !important;
  inset: 0 !important;
  backdrop-filter: blur(100px) !important;
  -webkit-backdrop-filter: blur(100px) !important;
  background-color: black) !important;
  opacity: 0.8 !important;
}


