/*-------------------------------------------------------------
1. Mixin
--------------------------------------------------------------*/
:root {
  --oscw-primary-color: #172a68;
  --oscw-secondary-color: #f25a87;
  --oscw-border-color: #cccccc;
  --oscw-shadow-color: #36b97e;
}

.oscw_hidden {
  display: none !important;
}

.oscw_disable {
  opacity: 0.5;
  pointer-events: none;
}

.oscw-flex {
  display: flex;
}

.oscw_flex_row_reverse {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.oscw_flex_align_items_center {
  align-items: center;
}

.oscw_flex_align_items_start {
  align-items: flex-start;
}

.oscw_flex_align_items_end {
  align-items: flex-end;
}

.oscw_flex_justify_content_center {
  justify-content: center;
}

.oscw_flex_justify_content_start {
  justify-content: flex-start;
}

.oscw_flex_justify_content_end {
  justify-content: flex-end;
}

.mt {
  margin-top: 30px;
}

.mb {
  margin-bottom: 30px;
}

.oscw_hidden_line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oscw_toggle {
  cursor: pointer;
  display: inline-flex;
  margin: 5px 0;
  align-items: center;
}
.oscw_toggle .oscw_toggle_input {
  position: absolute;
  visibility: hidden;
  box-shadow: none !important;
  outline: none !important;
}
.oscw_toggle .oscw_toggle_input:checked + .oscw_toggle_switch {
  background: var(--oscw-primary-color);
}
.oscw_toggle .oscw_toggle_input:checked + .oscw_toggle_switch::before {
  left: 23px;
}
.oscw_toggle .oscw_toggle_switch {
  display: inline-block;
  background: rgba(10, 9, 89, 0.08);
  border-radius: 16px;
  width: 46px;
  height: 26px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
  margin-right: 15px;
}
.oscw_toggle .oscw_toggle_switch::before {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
  transition: all 0.25s ease;
  content: "";
}

#adminmenu .wp-submenu a[href="edit-tags.php?taxonomy=oscw-collection&post_type=product"] {
  background-color: var(--oscw-primary-color);
}
#adminmenu .wp-submenu a[href="edit-tags.php?taxonomy=oscw-collection&post_type=product"]:hover {
  color: var(--oscw-secondary-color);
}

/* TRIPLE SPINNER */
.triple-spinner {
  display: block;
  position: relative;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid #FF5722;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.triple-spinner::before,
.triple-spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.triple-spinner::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-top-color: #FF9800;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3.5s linear infinite;
}

.triple-spinner::after {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-top-color: #FFC107;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.75s linear infinite;
}

.oscw-btn {
  padding: 5px 20px;
  background-color: var(--oscw-primary-color);
  color: #fff;
  border-radius: 5px;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.oscw-btn svg path {
  fill: #fff;
  transition: all 0.3s ease;
}
.oscw-btn:hover {
  background-color: var(--oscw-shadow-color);
  color: #fff;
  box-shadow: unset;
  outline: unset;
}
.oscw-btn.oscw-btn-style-2 {
  background-color: #fff;
  border: 1px solid var(--oscw-primary-color);
  color: var(--oscw-primary-color);
}
.oscw-btn.oscw-btn-style-2 svg path {
  fill: var(--oscw-primary-color);
}
.oscw-btn.oscw-btn-style-2:hover {
  background-color: var(--oscw-primary-color);
  color: #fff;
}
.oscw-btn.oscw-btn-style-2:hover svg path {
  fill: #fff;
}
.oscw-btn.oscw-btn-style-3 {
  background-color: unset;
  color: var(--oscw-primary-color);
  padding-left: 0;
  padding-right: 0;
}
.oscw-btn.oscw-btn-style-3 svg path {
  fill: var(--oscw-primary-color);
}
.oscw-btn.oscw-btn-style-3:hover {
  color: var(--oscw-shadow-color);
}
.oscw-btn.oscw-btn-style-3:hover svg path {
  fill: var(--oscw-shadow-color);
}
.oscw-btn.is-loading {
  position: relative;
}
.oscw-btn.is-loading::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #172a68e8;
  left: 0;
  top: 0;
}
.oscw-btn.is-loading::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  transform-origin: 0 0;
  transform: translateZ(0) scale(0.5);
  backface-visibility: hidden;
  position: absolute;
  border-radius: 50%;
  border: 0.3em solid #fff;
  border-left-color: #fff;
  border-left-color: #fff;
  border-left-color: transparent;
  transform-origin: 50% 50%;
  animation: ld-cycle 1s infinite linear;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes ld-cycle {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@-webkit-keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/*-------------------------------------------------------------
2. Frontend Render
--------------------------------------------------------------*/
.oscw-size-charts-list {
  margin: 10px 0 20px;
}

.oscw-split-label {
  display: block;
  font-weight: 600;
  color: var(--oscw-primary-color);
  margin-bottom: 5px;
}

.oscw-size-chart-item:not(:last-child) {
  margin-right: 10px;
}
.oscw-size-chart-item:not(:last-child).oscw-btn-style-3 {
  margin-right: 30px;
}

.oscw_popup_content {
  width: var(--oscw-popup-width, 700px);
  max-width: 100%;
  border-radius: 10px;
}
.oscw_popup_content .oscw-sc-item-inner {
  overflow: hidden;
}
.oscw_popup_content img, .oscw_popup_content table {
  max-width: 100%;
}

.oscw-magnific-opened .mfp-container {
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 30px);
  padding-top: 0;
}
.oscw-magnific-opened .mfp-close-btn-in .mfp-close {
  color: #c0001a;
  opacity: 1;
  mix-blend-mode: unset;
  top: -10px !important;
  right: -10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  background-color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-size: 20px;
}
.oscw-magnific-opened .mfp-close-btn-in .mfp-close:hover {
  background-color: #fff !important;
}