.phone {
  --bg: #ffffff;
  --bg-bottom: #ffffff;
  --text-color: #0a66d1;
  --border-color: #d8e8fb;
  --border-width: 2px;
  --border-style: solid;
  --hover-primary: #0a66d1;
  --hover-primary-dark: #084fb0;
  --hover-text-color: #ffffff;
  --effect-color: #0a66d1;
  --effect-color-rgb: 10, 102, 209;
  --radius: 6px;
  --pad: 12px 18px;
  --minw: 220px;
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --glass-alpha: 0.15;
  --animation-intensity: medium;
  --animation-factor: 1;
}

@keyframes ripple {
  to {
    transform: scale(calc(4 * var(--animation-factor)));
    opacity: 0;
  }
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-low {
  0%, 100% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 0 rgba(var(--effect-color-rgb),0); }
  50% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 8px rgba(var(--effect-color-rgb),.28); }
}

@keyframes glow-medium {
  0%, 100% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 0 rgba(var(--effect-color-rgb),0); }
  50% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 14px rgba(var(--effect-color-rgb),.38); }
}

@keyframes glow-high {
  0%, 100% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 0 rgba(var(--effect-color-rgb),0); }
  50% { box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 0 22px rgba(var(--effect-color-rgb),.5); }
}

@keyframes pulse-low {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes pulse-medium {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes pulse-high {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

.phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: var(--minw);
  padding: var(--pad);
  border-radius: var(--radius);
  border: var(--border-width) var(--border-style) var(--border-color);
  background: linear-gradient(180deg, var(--bg), var(--bg-bottom));
  color: var(--text-color);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(15,23,42,.06);
  font-family: var(--font-family);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.phone *,
.phone *::before,
.phone *::after {
  box-sizing: border-box;
}


.phone:focus-visible {
  outline: 2px solid var(--effect-color);
  outline-offset: 2px;
}

.phone[data-effect="scale"]:not(:active):hover,
.phone.scale:not(:active):hover {
  transform: scale(1.05);
}

.phone[data-effect="glow"],
.phone.glow {
  transition: box-shadow 0.3s ease;
}

.phone[data-effect="glow"][data-animation-intensity="low"]:hover,
.phone.glow[data-animation-intensity="low"]:hover {
  animation: glow-low 2s infinite;
}

.phone[data-effect="glow"][data-animation-intensity="medium"]:hover,
.phone.glow[data-animation-intensity="medium"]:hover {
  animation: glow-medium 2s infinite;
}

.phone[data-effect="glow"][data-animation-intensity="high"]:hover,
.phone.glow[data-animation-intensity="high"]:hover {
  animation: glow-high 2s infinite;
}

.phone[data-effect="pulse"],
.phone.pulse {
  transition: transform 0.3s ease;
}

.phone[data-effect="pulse"][data-animation-intensity="low"]:hover,
.phone.pulse[data-animation-intensity="low"]:hover {
  animation: pulse-low 2s infinite;
}

.phone[data-effect="pulse"][data-animation-intensity="medium"]:hover,
.phone.pulse[data-animation-intensity="medium"]:hover {
  animation: pulse-medium 2s infinite;
}

.phone[data-effect="pulse"][data-animation-intensity="high"]:hover,
.phone.pulse[data-animation-intensity="high"]:hover {
  animation: pulse-high 2s infinite;
}

.phone[data-effect="gradient"],
.phone.gradient {
  background-size: 200% auto;
  transition: all 0.5s ease;
}

.phone[data-effect="gradient"][data-animation-intensity="low"]:hover,
.phone.gradient[data-animation-intensity="low"]:hover {
  animation: gradient-move 3s ease infinite;
}

.phone[data-effect="gradient"][data-animation-intensity="medium"]:hover,
.phone.gradient[data-animation-intensity="medium"]:hover {
  animation: gradient-move 2s ease infinite;
}

.phone[data-effect="gradient"][data-animation-intensity="high"]:hover,
.phone.gradient[data-animation-intensity="high"]:hover {
  animation: gradient-move 1s ease infinite;
}

.phone[data-effect="gradient"]:hover,
.phone.gradient:hover {
  background-position: 100% 50%;
}

.phone[data-effect="glass"],
.phone.glass {
  background: linear-gradient(180deg, var(--bg), var(--bg-bottom));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(var(--effect-color-rgb), var(--glass-alpha));
}

.phone[data-effect="glass"]:hover,
.phone.glass:hover {
  background: linear-gradient(180deg, var(--hover-primary), var(--hover-primary-dark));
}

.phone:active {
  transform: translateY(1px);
}


.phone .left {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.phone:hover svg,
.phone:focus-within svg {
  opacity: 0;
  transform: scale(0.85);
}

.phone .mask {
  position: relative;
  z-index: 1;
}

.phone .revealed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--hover-primary), var(--hover-primary-dark));
  color: var(--hover-text-color);
  text-decoration: none;
  opacity: 0;
  visibility: visible;
  z-index: 2;
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone:hover .revealed,
.phone:focus-within .revealed {
  opacity: 1;
}

.phone .revealed:focus-visible {
  outline: 2px solid var(--hover-text-color);
  outline-offset: -4px;
}


/* Responsive styles */
@media (max-width: 520px) {
  .phone,
  .wp-phone-button-preview .phone {
    min-width: 160px;
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .phone svg,
  .wp-phone-button-preview .phone svg {
    width: 18px;
    height: 18px;
  }
}
