/* TranslatePress floating switcher: compact, draggable dock on the right edge. */
.trp-language-switcher.trp-floating-switcher.ow-trp-floating {
  --ow-trp-width: min(280px, calc(100vw - 24px));
  --ow-trp-peek: 56px;
  --ow-trp-radius: 18px;
  position: fixed;
  top: 120px;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 99998;
  width: var(--ow-trp-width);
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--ow-trp-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, width 0.2s ease;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-dragging {
  transition: none;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-switcher-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item__current {
  pointer-events: auto;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #101418, #27313a);
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item__current .trp-language-item-name,
.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item__current .trp-flag-image + .trp-language-item-name,
.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item__current .trp-language-item-name + .trp-flag-image {
  color: #fff;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-switcher-dropdown-list {
  gap: 4px;
  margin-top: 0;
  padding-top: 0;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-expanded .trp-switcher-dropdown-list {
  margin-top: 2px;
  padding-top: 2px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item:hover {
  background: #eef3f7;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-handle {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
  cursor: grab;
  touch-action: none;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-handle:active {
  cursor: grabbing;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-handle::before {
  content: "";
  width: 15px;
  height: 15px;
  background:
    radial-gradient(circle, currentColor 55%, transparent 58%) 0 0 / 6px 6px,
    radial-gradient(circle, currentColor 55%, transparent 58%) 100% 0 / 6px 6px,
    radial-gradient(circle, currentColor 55%, transparent 58%) 0 100% / 6px 6px,
    radial-gradient(circle, currentColor 55%, transparent 58%) 100% 100% / 6px 6px;
  background-repeat: no-repeat;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 44px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4e8;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-badge[hidden] {
  display: none;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked {
  overflow: hidden;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-language-item-name,
.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .ow-trp-badge,
.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-switcher-dropdown-list {
  opacity: 0;
  pointer-events: none;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-language-switcher-inner {
  gap: 0;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-language-item__current {
  min-height: 52px;
  padding-right: 12px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-flag-image {
  margin-left: auto;
  width: 22px !important;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .ow-trp-pill {
  padding-left: 44px;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-docked .trp-switcher-dropdown-list {
  max-height: 0 !important;
}

.trp-language-switcher.trp-floating-switcher.ow-trp-floating.is-expanded .trp-switcher-dropdown-list {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .trp-language-switcher.trp-floating-switcher.ow-trp-floating {
    --ow-trp-width: min(224px, calc(100vw - 18px));
    --ow-trp-peek: 52px;
    padding: 8px;
    border-radius: 16px;
  }

  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-handle {
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
  }

  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-pill {
    gap: 8px;
    padding-left: 40px;
  }

  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item__current,
  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item {
    min-height: 40px;
    padding: 8px 10px;
  }

  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .trp-language-item-name {
    font-size: 13px;
  }

  .trp-language-switcher.trp-floating-switcher.ow-trp-floating .ow-trp-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Cart / coupon input on mobile: keep the action button on one line. */
@media (max-width: 767px) {
  .cart-button-box .apply-coupon .inner {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding-left: 0;
  }

  .cart-button-box .apply-coupon input[type="text"] {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 15px;
    padding: 0 12px;
  }

  .cart-button-box .apply-coupon .apply-coupon-button {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .cart-button-box .apply-coupon .apply-coupon-button button {
    min-width: 46px;
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 420px) {
  .cart-button-box .apply-coupon .apply-coupon-button button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0;
  }

  .cart-button-box .apply-coupon .apply-coupon-button button::before {
    content: "+";
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
  }
}
