.am-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 14px 0 20px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  color: #4b5563;
}

.am-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.am-info strong { color: #111827; }
.am-info strong a { color: #111827; text-decoration: none; border-bottom: 1px dashed #9ca3af; }
.am-info strong a:hover { color: #2563eb; border-bottom-color: #2563eb; }
.am-dot { color: #9ca3af; }

.am-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* ---------- Prefer on Google button (text swap animation) ---------- */
.am-wrap .am-google {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 124px;
  height: 30px;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  color: #1f2937 !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.am-wrap .am-google:hover {
  transform: translateY(-2px);
  border-color: #4285f4;
  box-shadow: 0 4px 12px rgba(66, 133, 244, .25);
}

.am-wrap .am-g-one,
.am-wrap .am-g-two {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

/* site ki global img CSS (margin:auto, width:100% etc.) ko override karne ke liye */
.am-wrap .am-google img {
  display: inline-block !important;
  flex: none;
  width: 18px !important;
  height: 18px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  float: none !important;
  vertical-align: middle;
}

.am-wrap .am-g-one img { border-radius: 50% !important; }
.am-wrap .am-g-two img { width: 16px !important; height: 16px !important; }

/* 6s loop: pehle "Select [logo] as", phir "Preferred on [G]" */
.am-wrap .am-g-one { animation: am-swap-one 6s infinite; }
.am-wrap .am-g-two { animation: am-swap-two 6s infinite; }

@keyframes am-swap-one {
  0%, 40%   { opacity: 1; transform: translateY(0); }
  50%, 90%  { opacity: 0; transform: translateY(-100%); }
  100%      { opacity: 1; transform: translateY(0); }
}

@keyframes am-swap-two {
  0%, 40%   { opacity: 0; transform: translateY(100%); }
  50%, 90%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(100%); }
}

/* ---------- Share buttons ---------- */
.am-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.am-share-label {
  font-weight: 600;
  color: #374151;
}

.am-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #6b7280;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.am-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.am-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}

.am-wa   { background: #25d366; }
.am-fb   { background: #1877f2; }
.am-x    { background: #111827; }
.am-tg   { background: #229ed9; }
.am-copy { background: #6b7280; }

.am-copy.am-copied { background: #16a34a; }

.am-copy.am-copied::after {
  content: "Link copied!";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .am-wrap { flex-direction: column; align-items: flex-start; }
  .am-actions { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .am-g-one, .am-wrap .am-g-two { animation: none; }
  .am-g-two { display: none; }
}
