#cgSizeGuide .cgsg_size-guide__center-wrapper {
  display: flex;
  align-items: stretch;
  margin: 0;
  flex-direction: initial;
  justify-content: normal;
  width: auto;
}

/*/////
MODAL
/////*/
#cgSizeGuide .cgsg_modal {
  position: fixed;
  background-color: #fff;
  border-radius: 0.75rem;
  max-width: 100rem;
  width: 100%;
  border: none;
  padding: 1rem;
  overflow-x: hidden;
  box-shadow: 0 10px 110px rgba(5, 5, 5, 0.3);
}

#cgSizeGuide .cgsg_modal::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}


/*/////
BUTTONS
/////*/
/* Remove the border from the button */
#cgSizeGuide .cgsg_size-guide__center-wrapper .button:after {
  box-shadow: none;
  padding: 0;
  margin: 0;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--link {
  outline: none;
  box-shadow: none;
  background: none;
  border: none;
  min-width: auto;
  color: var(--cgsg-button-border-color, #000000) !important;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .button {
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .button:focus-visible {
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
  outline: 2px solid var(--cgsg-button-border-color, #000000) !important;

}

#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--cgsg-button-border-color, #000000);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--link:hover {
  text-underline-offset: 4px;
}

/* Specific focus styles for link variant */
#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--link:focus-visible {
  outline: 2px solid var(--cgsg-button-border-color, #000000);
  outline-offset: 2px;
  text-decoration: none;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--bordered {
  background: transparent;
  color: var(--cgsg-button-border-color, #000000);
  border: 1px solid var(--cgsg-button-border-color, #000000);
  padding: 0 17px;
  text-decoration: none;
  line-height: 1;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .cgsg_button--bordered:hover {
  outline: 1px solid var(--cgsg-button-border-color, #000000);
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .button.cgsg_button--filled {
  background: var(--cgsg-button-background, #000000);
  color: var(--cgsg-button-border-color, #000000);
  border: none;
  padding: 0 17px;
  text-decoration: none;
  line-height: 1;
}

#cgSizeGuide .cgsg_size-guide__center-wrapper .button.cgsg_button--filled:hover {
  outline: 1px solid var(--cgsg-button-border-color, #000000);
  border: none
}


/*/////
MODAL CONTENT
/////*/


#cgSizeGuide .cgsg_modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  position: sticky;
  top: -1rem;
  z-index: 2;
  background-color: #fff;
}

#cgSizeGuide .cgsg_modal__header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#cgSizeGuide .cgsg_modal__close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #666;
  border-radius: 3.45rem;
  width: 3.45rem;
  height: 3.45rem;
  position: absolute;
  right: 1rem;
}

#cgSizeGuide .cgsg_modal__close:hover {
  color: #333;
}

#cgSizeGuide .cgsg_modal__close:focus {
  outline: 3px solid rgba(53, 122, 189, 0.5);
  outline-offset: 0px;
}

#cgSizeGuide .cgsg_modal__content {
  padding: 1rem;
}

#cgSizeGuide .cgsg_unit-toggle {
  display: inline-flex;
  align-items: center;
  background: #f6f6f6;
  border-radius: 2.5rem;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  margin-left: auto;
}

#cgSizeGuide .cgsg_unit-toggle__button {
  background: none;
  border: none;
  padding: 0.4rem 1.5rem;
  cursor: pointer;
  border-radius: 2.5rem;
  transition: all 0.2s cubic-bezier(0.29, 0.4, 0.01, 0.96);
  font-size: 1.5rem;
  color: #000;
}

#cgSizeGuide .cgsg_unit-toggle__button--active {
  background: #000;
  color: #fff;
  padding-left: 2rem;
  padding-right: 2rem;
  outline: none;
}

#cgSizeGuide .cgsg_unit-toggle__button:hover:not(.cgsg_unit-toggle__button--active) {
  background: rgba(255, 255, 255, 0.5);
  outline: none;
}

#cgSizeGuide .cgsg_unit-toggle__button:focus {
  outline: 2px solid rgba(53, 122, 189, 0.5);
  outline-offset: 2px;
  outline: none;
}

#cgSizeGuide .size-table {
  overflow-x: auto;
  margin-bottom: 1rem;
  height: 50%;
  border-radius: 0.3rem;
  overflow-y: hidden;
}

#cgSizeGuide .size-table__grid {
  min-width: 500px;
  max-height: 400px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#cgSizeGuide .size-table__header {
  padding: 0.75rem;
  text-align: center;
  white-space: nowrap;
  position: relative;
  background-color: #f6f6f6;
  font-weight: 600;
}

#cgSizeGuide .size-table__header--sticky {
  z-index: 1;
  position: sticky;
  left: 0;
}

#cgSizeGuide .size-table__cell {
  padding: 0.75rem;
  text-align: center;
  white-space: nowrap;
  position: relative;
  border-bottom: 2px solid #f6f6f6;
}

#cgSizeGuide .size-table__cell:hover {
  background-color: #fafafa;
}

#cgSizeGuide .size-table__row:hover .size-table__header--sticky {
  background-color: #F6F6F6;
}

#cgSizeGuide .size-table__row:hover .size-table__cell:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: #F6F6F6;
  z-index: -1;
}

#cgSizeGuide .cgsg_measure-guide__container {
  display: flex;
  gap: 4em;
  align-items: flex-start;
  margin-top: 1rem;
}

#cgSizeGuide .cgsg_measure-guide__label {
  width: 100%;
  margin-bottom: 1rem;
}

#cgSizeGuide .cgsg_measure-guide__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#cgSizeGuide .cgsg_measure-guide__column {
  flex: 1;
  min-width: 300px;
}

#cgSizeGuide .cgsg_measure-guide__column--right {
  margin-right: 2rem;
}

#cgSizeGuide .cgsg_measure-guide__image {
  max-width: 50%;
  height: auto;
}
#cgSizeGuide .cgsg_measure-guide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#cgSizeGuide .cgsg_measure-guide .cgsg_measure-guide__line {
  position: absolute;
  width: 0;
  height: 12px;
  background-color: #000;
  top: 80px;
  left: 20%;
  transform: translateX(-50%);
  transition: opacity 0.1s ease-out;
}

#cgSizeGuide .cgsg_measure-guide .cgsg-image-wrapper {
  width: 90%;
  margin-left: -1.9%;
  background-color: #F6F6F6;
  text-align: center;
  border-radius: 0.66rem;
}

#cgSizeGuide .cgsg_measure-guide .cgsg-image-wrapper svg {
  padding: 3rem;
  width: 80%;
  margin: auto;
}

#cgSizeGuide .cgsg_measure-guide__text {
  font-size: 0.875rem;
}

#cgSizeGuide .cgsg_measure-guide__list {
  padding-inline-start: 1.5rem;
}

#cgSizeGuide .cgsg_measure-guide__item {
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

#cgSizeGuide .cgsg_measure-guide__item b {
  font-weight: 600;
  font-size: inherit;
}

#cgSizeGuide .cgsg_measure-guide {
  margin-top: 2rem;
  padding-top: 2rem;
  margin-bottom: 1rem;
  width: 100%;
}

#cgSizeGuide .cgsg_measure-guide__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

#cgSizeGuide .cgsg_measure-guide__content {
  width: 50%;
  font-size: 1rem;
  line-height: 1.3;
}

#cgSizeGuide .cgsg_measure-guide__content h1,
#cgSizeGuide .cgsg_measure-guide__content h2,
#cgSizeGuide .cgsg_measure-guide__content h3,
#cgSizeGuide .cgsg_measure-guide__content h4,
#cgSizeGuide .cgsg_measure-guide__content h5,
#cgSizeGuide .cgsg_measure-guide__content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}
#cgSizeGuide .cgsg_measure-guide__content h1 {
  font-size: 2.5rem;
}
#cgSizeGuide .cgsg_measure-guide__content h2 {
  font-size: 2rem;
}
#cgSizeGuide .cgsg_measure-guide__content h3 {
  font-size: 1.8rem;
}
#cgSizeGuide .cgsg_measure-guide__content h4 {
  font-size: 1.5rem;
}
#cgSizeGuide .cgsg_measure-guide__content h5 {
  font-size: 1.2rem;
}
#cgSizeGuide .cgsg_measure-guide__content h6 {
  font-size: 1rem;
}

#cgSizeGuide .cgsg_measure-guide__content>h1:first-child,
#cgSizeGuide .cgsg_measure-guide__content>h2:first-child,
#cgSizeGuide .cgsg_measure-guide__content>h3:first-child,
#cgSizeGuide .cgsg_measure-guide__content>h4:first-child,
#cgSizeGuide .cgsg_measure-guide__content>h5:first-child,
#cgSizeGuide .cgsg_measure-guide__content>h6:first-child {
  margin-block-start: 0;
  margin-top: 0;
}

#cgSizeGuide .cgsg_measure-guide__content > p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

body:has(.cgsg_modal[open]) {
  overflow-y: hidden;
}

@media screen and (max-width: 768px) {
  #cgSizeGuide .cgsg_measure-guide__container {
    flex-direction: column;
  }

  #cgSizeGuide .cgsg_measure-guide__image {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}



@media screen and (min-width: 769px) {
  #cgSizeGuide .cgsg_modal {
    padding: 1rem 2rem;
  }
  
  #cgSizeGuide .cgsg_measure-guide__image {
    max-width: 40%;
  }
}
@media screen and (max-width: 769px) {
  #cgSizeGuide .cgsg_measure-guide {
    margin-top: 0;
    padding-top: 1rem;
  }
  #cgSizeGuide .cgsg_measure-guide__container {
    gap: 0;
  }
  #cgSizeGuide .cgsg_measure-guide__content {
    width: 100%;
  } 
}

@media (max-width: 640px) {

  #cgSizeGuide .size-table__header,
  #cgSizeGuide .size-table__cell {
    font-size: 12.5px;
  }

  #cgSizeGuide .cgsg_measure-guide__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  #cgSizeGuide .cgsg_measure-guide__content p {
    font-size: calc(var(--font-heading-scale) * 1.45rem);
    margin-bottom: 1.25rem;
  }
  
  #cgSizeGuide .cgsg_measure-guide__content>h1,
  #cgSizeGuide .cgsg_measure-guide__content>h2,
  #cgSizeGuide .cgsg_measure-guide__content>h3,
  #cgSizeGuide .cgsg_measure-guide__content>h4,
  #cgSizeGuide .cgsg_measure-guide__content>h5,
  #cgSizeGuide .cgsg_measure-guide__content>h6 {
    margin-bottom: 1.25rem;
  }

  .cgsg_measure-guide__content>p:first-child {
    margin-top: 0;
  }
}




td:has(~ td:hover),
table:has(td:nth-of-type(1):hover) tr:has(~ tr:hover) td:nth-of-type(1),
table:has(td:nth-of-type(2):hover) tr:has(~ tr:hover) td:nth-of-type(2),
table:has(td:nth-of-type(3):hover) tr:has(~ tr:hover) td:nth-of-type(3),
table:has(td:nth-of-type(4):hover) tr:has(~ tr:hover) td:nth-of-type(4),
table:has(td:nth-of-type(5):hover) tr:has(~ tr:hover) td:nth-of-type(5),
table:has(td:nth-of-type(6):hover) tr:has(~ tr:hover) td:nth-of-type(6),
table:has(td:nth-of-type(7):hover) tr:has(~ tr:hover) td:nth-of-type(7),
table:has(td:nth-of-type(8):hover) tr:has(~ tr:hover) td:nth-of-type(8),
table:has(td:nth-of-type(9):hover) tr:has(~ tr:hover) td:nth-of-type(9),
table:has(td:nth-of-type(10):hover) tr:has(~ tr:hover) td:nth-of-type(10) {
  background: #fafafa
}


/*/////
RTE
/////*/

.cgsg_modal__close.is-rtl {
  right: auto !important;
  left: 1rem !important;
  position: absolute !important;
}

/* fix the minimum height of the button */
#cgSizeGuide .cgsg_size-guide__center-wrapper .button,
#cgSizeGuide button#cgsgButton {
  min-height: 0 !important; 
  height: auto !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

/* force padding applied to the button */
button#cgsgButton {
  padding-top: attr(data-padding-v px) !important;
  padding-bottom: attr(data-padding-v px) !important;
}