/**
 * BHCar Custom Share Menu Styles
 */

/* Overlay */
.bhcar-share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 24px;
}

.bhcar-share-overlay.active {
  display: flex;
  opacity: 1;
}

/* Menu Container */
.bhcar-share-menu {
  background: #000;
  border-radius: 16px;
  max-width: 635px;
  width: 100%;
  /* max-height: 435px; */
  /* overflow-y: auto; */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}
.bhcar-share-menu-body {
  padding: 84px 30px 43px;
  position: relative;
  overflow: hidden;
}
.bhcar-share-menu-ellipse {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  border-radius: 16px;
}
.bhcar-share-menu-icon {
  position: absolute;
  left: 0;
  right: 0;
  top: -60px;
  margin: auto;
}

.bhcar-share-overlay.active .bhcar-share-menu {
  transform: scale(1) translateY(0);
}

/* Header */
.bhcar-share-menu-header {
  /* display: flex; */
  /* justify-content: space-between; */
  /* align-items: center; */
  margin-bottom: 27px;
  /* padding-bottom: 16px; */
  /* border-bottom: 1px solid #e5e7eb; */
}

.bhcar-share-menu-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 112%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin: 0;
}

.bhcar-share-menu-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.bhcar-share-menu-close:hover {
  background: #f3f4f6;
}

.bhcar-share-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: #6b7280;
}

/* Services Grid */
.bhcar-share-menu-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  /* grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); */
  gap: 21px;
  padding-bottom: 32px;
}

.bhcar-share-menu-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: #374151;
  background: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
  border: 1px solid transparent;
}

.bhcar-share-menu-service:hover {
  border: 1px solid #e22415;
}

.bhcar-share-menu-service:hover .bhcar-share-menu-service-name {
  color: #e22415;
}

.bhcar-share-menu-service.hidden {
  display: none;
}

.bhcar-share-menu-service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
}

/* --------  BACKGROUND FOR ICONS --------------- */

.bhcar-share-menu-service-icon.whatsapp {
  background-color: #65d072;
}
.bhcar-share-menu-service-icon.email {
  background-color: #4867ff;
}
.bhcar-share-menu-service-icon.facebook {
  background-color: #425893;
}
.bhcar-share-menu-service-icon.x {
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.bhcar-share-menu-service-icon.instagram {
  background: #000
    radial-gradient(
      92.18% 99.11% at 26.56% 107.7%,
      rgb(255, 221, 85) 0%,
      rgb(255, 221, 85) 10.000000149011612%,
      rgb(255, 84, 62) 50%,
      rgb(200, 55, 171) 100%
    );
}

.bhcar-share-menu-service-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.bhcar-share-menu-service-name {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-align: center;
  color: #fff;
}

/* Copy Link Success */
.bhcar-share-copy-success {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 100000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.bhcar-share-copy-success.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.bhcar-share-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0.03em;
  color: #fff;
  gap: 12px;
}
.bhcar-share-footer-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  width: 100%;
  background: #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bhcar-share-footer-input {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #050505;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  display: block;
}

.bhcar-share-footer-input:focus {
  border: 1px solid #e22415;
  box-shadow: none !important;
}
.bhcarShareCopyButton {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  background: #e22415;
  gap: 4px;
  width: 96px;
}

/* Responsive */

@media (max-width: 768px) {
  .bhcar-share-footer {
    flex-direction: column;
    font-weight: 600;
    font-size: 16px;
  }
  .bhcar-share-footer > br {
    display: none;
  }
  .bhcar-share-footer-box {
    flex-direction: column;
    padding: 4px;
    gap: 4px;
  }
  .bhcarShareCopyButton {
    width: 100%;
    justify-content: center;
  }
  .bhcar-share-menu-services {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .bhcar-share-menu-service {
    width: 85px;
  }
  .bhcar-share-menu-service-icon {
    width: 41px;
    height: 41px;
  }
  .bhcar-share-menu-service-icon img {
    width: 25px;
    height: 25px;
  }
  .bhcar-share-menu-service-name {
    font-size: 14px;
  }
  .bhcar-share-menu-body {
    padding: 54px 16px 16px;
    position: relative;
    overflow: hidden;
  }
  .bhcar-share-menu-icon{
    width: 64px;
    height: 64px;
    top: -32px;
  }
}
@media (max-width: 640px) {
  .bhcar-share-menu-title {
    font-size: 18px;
  }
}
