/* ==========================================================================
   Currency toggle — USD / GEL
   Palette: red + white

   Everything is namespaced `sk-cur-` to avoid collisions with theme CSS.
   Custom properties are scoped to the block, not :root, so they cannot leak
   into or be clobbered by the surrounding page.
   ========================================================================== */

.sk-cur-switch {
  --sk-cur-red: #d7141a;
  --sk-cur-red-dark: #a80f14;
  --sk-cur-red-soft: #fdecec;
  --sk-cur-white: #ffffff;
  --sk-cur-ink: #7a1418;
  --sk-cur-radius: 999px;
  --sk-cur-pad: 4px;

  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: var(--sk-cur-pad);
  border: 2px solid var(--sk-cur-red);
  border-radius: var(--sk-cur-radius);
  background: var(--sk-cur-white);
  box-shadow: 0 2px 6px rgba(215, 20, 26, .18);
  font-family: inherit;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sk-cur-switch *,
.sk-cur-switch *::before,
.sk-cur-switch *::after {
  box-sizing: border-box;
}

.sk-cur-switch:focus-within {
  outline: 3px solid var(--sk-cur-red-soft);
  outline-offset: 2px;
}

/* Sliding red pill that sits behind the active label */
.sk-cur-switch__thumb {
  position: absolute;
  top: var(--sk-cur-pad);
  left: var(--sk-cur-pad);
  width: calc(50% - var(--sk-cur-pad));
  height: calc(100% - (var(--sk-cur-pad) * 2));
  margin: 0;
  border-radius: var(--sk-cur-radius);
  background: var(--sk-cur-red);
  /* background: linear-gradient(180deg, var(--sk-cur-red) 0%, var(--sk-cur-red-dark) 100%); */
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.sk-cur-switch[data-sk-cur="GEL"] .sk-cur-switch__thumb {
  transform: translateX(100%);
}

/* Each half is a real button, so keyboard + screen readers work */
.sk-cur-switch__option {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 62px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--sk-cur-radius);
  background: transparent;
  box-shadow: none;
  color: var(--sk-cur-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color .25s ease;
}

.sk-cur-switch__option:focus {
  outline: none;
}

.sk-cur-switch__option[aria-checked="true"] {
  color: var(--sk-cur-white);
  cursor: default;
}

.sk-cur-switch__option:hover[aria-checked="false"] {
  background: transparent;
  color: var(--sk-cur-red);
}

.sk-cur-switch__symbol {
  margin-right: 4px;
  opacity: .85;
  font-weight: 600;
}

/* Compact variant */
.sk-cur-switch--sm .sk-cur-switch__option {
  min-width: 50px;
  padding: 6px 12px;
  font-size: 12px;
}

/* Inverted variant — for use on a red/dark background */
.sk-cur-switch--invert {
  border-color: var(--sk-cur-white);
  background: transparent;
  box-shadow: none;
}

.sk-cur-switch--invert .sk-cur-switch__thumb {
  background: var(--sk-cur-white);
}

.sk-cur-switch--invert .sk-cur-switch__option {
  color: var(--sk-cur-white);
}

.sk-cur-switch--invert .sk-cur-switch__option[aria-checked="true"] {
  color: var(--sk-cur-red);
}

.sk-cur-switch--invert .sk-cur-switch__option:hover[aria-checked="false"] {
  color: var(--sk-cur-red-soft);
}

@media (prefers-reduced-motion: reduce) {
  .sk-cur-switch__thumb,
  .sk-cur-switch__option {
    transition: none;
  }
}

@media(max-width: 960px){
  .sk-cur-switch{
    margin-top: 0px !important;
  }

  .sk-cur-switch__option {
    padding: 9px 10px !important;
  }
}
