/*
Theme Name: Annareich Store
Author: ...
Version: 1.0
*/

@import url("styles/base.css?v=20260910-1");
@import url("styles/breadcrumbs.css?v=20260910-1");
@import url("styles/footer.css?v=20260910-1");
@import url("styles/header.css?v=20260910-1");
@import url("styles/pagination.css?v=20260910-1");
@import url("styles/wishlist_button.css?v=20260910-1");

/* Cart toast */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(23, 23, 23, 0.96);
  color: #fff;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 99999;
}

.cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cart-toast__text {
  display: block;
}

@media (max-width: 480px) {
  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: auto;
    max-width: none;
    padding: 12px 14px;
    transform: translateY(16px);
    border-radius: 12px;
    font-size: 13px;
  }

  .cart-toast.is-visible {
    transform: translateY(0);
  }
}


/* === GTranslate в Dropdown === */
.gtranslate-dropdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtranslate-dropdown-wrapper .goog-te-gadget {
  font-family: "SegoeUIWeb", sans-serif !important;
}

.gtranslate-dropdown-wrapper .goog-te-gadget-simple {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.gtranslate-dropdown-wrapper .goog-te-combo {
  background: transparent !important;
  border: none !important;
  color: #060606 !important;
  font-size: 16px !important;
  font-family: "SegoeUIWeb", sans-serif !important;
  font-weight: 400 !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
  outline: none !important;
}

.gtranslate-dropdown-wrapper .goog-te-combo:hover {
  color: #000 !important;
}

/* Скрыть текст и логотип в dropdown */
.gtranslate-dropdown-wrapper .goog-te-gadget-simple > span,
.gtranslate-dropdown-wrapper .goog-te-gadget-simple img,
.gtranslate-dropdown-wrapper .goog-te-gadget-icon,
.gtranslate-dropdown-wrapper .VIpgJd-ZVi9od-l4eHX-hSRGPd {
  display: none !important;
}

a.glink.gt-current-lang {
  display: none;
}

html.ars-lightbox-open,
body.ars-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.ars-media-zoomable {
  cursor: zoom-in;
}

.ars-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ars-media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ars-media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.86);
}

.ars-media-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  touch-action: none;
}

.ars-media-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.ars-media-lightbox__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ars-media-lightbox__control:disabled {
  opacity: 0.45;
  cursor: default;
}

.ars-media-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 12px;
  touch-action: none;
}

.ars-media-lightbox__stage.is-draggable {
  cursor: grab;
}

.ars-media-lightbox__stage.is-dragging {
  cursor: grabbing;
}

/* Video sound button (couture / fashion week) */
.ars-video-sound-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(40px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}
.ars-video-sound-btn:hover {
  background: rgba(255,255,255,0.5);
}
.ars-video-sound-btn .hidden {
  display: none;
}

.ars-media-lightbox__media {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  touch-action: none;
  cursor: inherit;
  will-change: transform;
}

@media (max-width: 767px) {
  .ars-media-lightbox__dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }

  .ars-media-lightbox__toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .ars-media-lightbox__control {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
  }
}

/* === Cookie consent banner === */
.ars-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ars-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ars-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  font-family: "SegoeUIWeb", sans-serif;
  color: #060606;
}

.ars-cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}

.ars-cookie-banner__link {
  color: #060606;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.ars-cookie-banner__link:hover {
  opacity: 0.7;
}

.ars-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ars-cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.ars-cookie-banner__btn--accept {
  background: #171717;
  color: #fff;
}

.ars-cookie-banner__btn--accept:hover {
  background: #000;
}

@media (max-width: 640px) {
  .ars-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ars-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .ars-cookie-banner__text {
    font-size: 12px;
    text-align: left;
  }

  .ars-cookie-banner__actions {
    justify-content: flex-end;
  }

  .ars-cookie-banner__btn {
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
  }
}


/* GLOBAL CF7 TOAST + CONSENT 2026-07-27 */
.ars-form-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(23, 23, 23, .96);
  color: #fff;
  font-family: "SegoeUIWeb", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(18px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.ars-form-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ars-form-toast__icon {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
}

.ars-form-toast.is-success .ars-form-toast__icon {
  background: #79d68b;
  box-shadow: 0 0 0 4px rgba(121, 214, 139, .16);
}

.ars-form-toast.is-error .ars-form-toast__icon {
  background: #ff8b8b;
  box-shadow: 0 0 0 4px rgba(255, 139, 139, .16);
}

/* CF7 already reports through the global toast; keep the inline node for accessibility. */
.wpcf7 form > .wpcf7-response-output {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Stable acceptance layout for Atelier, Contacts, Couture and future CF7 forms. */
.wpcf7 .contacts__consent,
.wpcf7 .wpcf7-acceptance {
  width: 100%;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: #171717;
  cursor: pointer;
}

.wpcf7 .wpcf7-list-item-label {
  display: block;
  min-width: 0;
  color: rgba(23, 23, 23, .72);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 480px) {
  .ars-form-toast {
    left: 16px;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: auto;
    max-width: none;
    padding: 13px 15px;
    font-size: 13px;
    transform: translateY(18px);
  }

  .ars-form-toast.is-visible {
    transform: translateY(0);
  }
}
