/* Contact Popup Styles */
.contact-popup {
  --contact-popup-z-index: 999;
  --contact-popup-animation-duration: 0.3s;
  --contact-popup-animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --contact-popup-border-radius: 12px;
  --contact-popup-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  --contact-popup-background: #ffffff;
  --contact-popup-overlay-bg: rgba(0, 0, 0, 0.3);
  --scrollbar-width: 0px; }

/* Toggle Button */
.contact-popup__toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  margin-right: var(--scrollbar-width, 0);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--shop-color-main);
  color: #ffffff;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--contact-popup-animation-duration) var(--contact-popup-animation-easing);
  z-index: calc(var(--contact-popup-z-index) - 1);
  font-size: 0;
  line-height: 1; }
  .contact-popup__toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform var(--contact-popup-animation-duration) var(--contact-popup-animation-easing); }
  .contact-popup__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
    .contact-popup__toggle:hover svg {
      transform: rotate(-10deg) scale(1.1); }
  .contact-popup__toggle:active {
    transform: scale(0.95); }
  .contact-popup__toggle[aria-expanded="true"] {
    transform: rotate(180deg); }
    .contact-popup__toggle[aria-expanded="true"] svg {
      transform: rotate(-180deg); }

.contact-popup__label {
  position: absolute;
  bottom: -32px;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--contact-popup-animation-duration);
  line-height: 1.4; }

.contact-popup__toggle:hover .contact-popup__label {
  opacity: 1; }

/* Popup Content */
.contact-popup__content {
  position: fixed;
  bottom: 104px;
  right: 24px;
  margin-right: var(--scrollbar-width, 0);
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--contact-popup-background);
  border-radius: var(--contact-popup-border-radius);
  box-shadow: var(--contact-popup-shadow);
  z-index: var(--contact-popup-z-index);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transform-origin: bottom right;
  transition: all var(--contact-popup-animation-duration) var(--contact-popup-animation-easing);
  pointer-events: none; }
  .contact-popup__content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto; }
  @media (max-width: 992px) {
    .contact-popup__content {
      width: 320px;
      bottom: 104px;
      right: 24px;
      transform: translateY(12px) scale(0.95);
      max-height: 70vh; }
      .contact-popup__content.active {
        transform: translateY(0) scale(1); } }

/* Popup Header */
.contact-popup__header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between; }

.contact-popup__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--shop-color-title);
  line-height: 1.4; }

.contact-popup__close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--shop-color-text);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--contact-popup-animation-duration);
  flex-shrink: 0; }
  .contact-popup__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor; }
  .contact-popup__close:hover {
    background: #f3f4f6;
    color: var(--shop-color-main); }

/* Popup Body */
.contact-popup__body {
  padding: 0;
  overflow-y: auto;
  flex: 1; }

.contact-popup__items {
  display: flex;
  flex-direction: column;
  gap: 0; }

.contact-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--shop-color-main);
  border-bottom: 1px solid #f3f4f6;
  transition: all var(--contact-popup-animation-duration);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  text-align: left; }
  .contact-popup__item:last-child {
    border-bottom: none; }
  .contact-popup__item:hover {
    background: #f9fafb;
    gap: 16px; }
    .contact-popup__item:hover .contact-popup__item-icon {
      transform: scale(1.1); }
    .contact-popup__item:hover .contact-popup__item-arrow {
      transform: translateX(4px); }
  .contact-popup__item:active {
    background: #f3f4f6; }

.contact-popup__item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: all var(--contact-popup-animation-duration); }
  .contact-popup__item-icon img,
  .contact-popup__item-icon svg {
    width: 28px;
    height: 28px;
    display: block; }
  .contact-popup__item-icon svg {
    fill: currentColor; }

.contact-popup__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0; }

.contact-popup__item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-color-title);
  line-height: 1.4; }

.contact-popup__item-subtitle {
  display: block;
  font-size: 12px;
  color: var(--shop-color-text);
  opacity: 0.8;
  line-height: 1.4; }

.contact-popup__item-arrow {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--shop-color-main);
  opacity: 0.6;
  transition: all var(--contact-popup-animation-duration);
  margin-left: auto; }

/* Overlay */
.contact-popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-right: var(--scrollbar-width, 0);
  background: var(--contact-popup-overlay-bg);
  z-index: calc(var(--contact-popup-z-index) - 2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--contact-popup-animation-duration) var(--contact-popup-animation-easing);
  pointer-events: none; }
  .contact-popup__overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; }

/* Overlay */
@media (prefers-reduced-motion: reduce) {
  .contact-popup__toggle,
  .contact-popup__content,
  .contact-popup__item,
  .contact-popup__close,
  .contact-popup__item-icon,
  .contact-popup__overlay {
    transition: none; } }

/* Branch Selector Styles */
.branch-selector__content {
  position: fixed;
  bottom: 104px;
  right: 24px;
  margin-right: var(--scrollbar-width, 0);
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--contact-popup-background);
  border-radius: var(--contact-popup-border-radius);
  box-shadow: var(--contact-popup-shadow);
  z-index: var(--contact-popup-z-index);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transform-origin: bottom right;
  transition: all var(--contact-popup-animation-duration) var(--contact-popup-animation-easing);
  pointer-events: none; }
  .branch-selector__content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto; }
  @media (max-width: 992px) {
    .branch-selector__content {
      width: 320px;
      bottom: 104px;
      right: 24px;
      transform: translateY(12px) scale(0.95); }
      .branch-selector__content.active {
        transform: translateY(0) scale(1); } }

.branch-selector__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; }

.branch-selector__back {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--shop-color-text);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--contact-popup-animation-duration);
  flex-shrink: 0; }
  .branch-selector__back svg {
    width: 20px;
    height: 20px;
    fill: currentColor; }
  .branch-selector__back:hover {
    background: #f3f4f6;
    color: var(--shop-color-main); }

.branch-selector__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--shop-color-title);
  line-height: 1.4;
  flex: 1;
  text-align: center; }

.branch-selector__body {
  padding: 0;
  overflow-y: auto;
  flex: 1; }

.branch-selector__items {
  display: flex;
  flex-direction: column;
  gap: 0; }

.branch-selector__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--shop-color-text);
  border-bottom: 1px solid #f3f4f6;
  transition: all var(--contact-popup-animation-duration);
  cursor: pointer; }
  .branch-selector__item:last-child {
    border-bottom: none; }
  .branch-selector__item:hover {
    background: #f9fafb;
    color: var(--shop-color-main); }
  .branch-selector__item:active {
    background: #f3f4f6; }

.branch-selector__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px; }

.branch-selector__item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-color-title);
  line-height: 1.4;
  flex: 1; }
  .branch-selector__item:hover .branch-selector__item-name {
    color: var(--shop-color-main); }

.branch-selector__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--shop-color-main);
  opacity: 0;
  transition: opacity var(--contact-popup-animation-duration); }
  .branch-selector__item:hover .branch-selector__item svg {
    opacity: 1; }

.branch-selector__item-info {
  display: flex;
  flex-direction: column;
  gap: 4px; }

.branch-selector__item-address,
.branch-selector__item-phone {
  margin: 0;
  font-size: 12px;
  color: var(--shop-color-text);
  opacity: 0.8;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px; }
  .branch-selector__item-address svg,
  .branch-selector__item-phone svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    fill: currentColor; }
