/* pdp page */
section#pdp-prodtop.custom .promo_name_badge {
  left: auto;
  right: 10px;
  top: 10px;
}
section#pdp-prodtop.custom .promo_name_badge .badge-pdp {
  height: 29px;
  margin-top: 0;
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #E31010;
}
section#pdp-prodtop.custom .promo_name_badge .badge-pdp .icon {
  width: 19px;
  height: 19px;
}
section#pdp-prodtop.custom .h4 {
  margin-top: 10px;
  line-height: 27px;
  font-size: 18px;
  letter-spacing: 0.05em;
}
section#pdp-prodtop.custom .shortdesc {
  margin-top: 5px;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.08em;
}
section#pdp-prodtop.custom .pcolor-container {
  margin-top: 22px;
}
section#pdp-prodtop.custom .custom-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #E31010;
}
section#pdp-prodtop.custom .custom-prices .price {
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
}
section#pdp-prodtop.custom .custom-prices .price + .price:before {
  content: "-";
  margin: 0 5px;
}
section#pdp-prodtop.custom .custom-prices .icon {
  margin-left: 10px;
  font-size: 18px;
  cursor: pointer;
}
section#pdp-prodtop.custom div#prdgalldesk .promo_name_badge.custom {
  left: auto;
}

section#pdp-prodtop .btn.secondary.secondary.customize-button,
.btn.secondary.customize-button {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
section#pdp-prodtop .btn.secondary.secondary.customize-button img,
.btn.secondary.customize-button img {
  width: 21px;
  height: 21px;
  margin-right: 10px;
}

/* modal info prices */
.info-prices {
  color: #FFFFFF;
}
.info-prices-modal {
  padding: 10px;
  background: rgba(0, 0, 0, 0.8) url("https://www.castelli-cycling.com/_ui/responsive/theme-castelli/custom/images/info-prices-mobile.png") center center;
  background-size: cover;
}
.info-prices-modal .custom-modal-close:after, .info-prices-modal .custom-modal-close:before {
  background-color: #FFFFFF;
}
.info-prices-modal .custom-modal-content-box {
  background-color: transparent;
}
.info-prices-modal .custom-modal-details {
  padding-left: 10px;
  padding-right: 10px;
}
.info-prices-titles {
  padding: 32px 60px 0;
  font-weight: 600;
  font-size: 22px;
  line-height: 33px;
  text-align: center;
  letter-spacing: 0.2em;
}
.info-prices-title {
  color: #E31010;
}
.info-prices-text {
  margin-top: 15px;
  font-weight: 300;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.1em;
  text-align: center;
}
.info-prices-boxes {
  margin-top: 35px;
}
.info-prices-boxes-single-box {
  margin-bottom: 30px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  background-color: rgba(206, 212, 218, 0.3);
}
.info-prices-boxes-single-box:last-child {
  margin-bottom: 0;
}
.info-prices-boxes-single-box span {
  display: inline-block;
  font-weight: 600;
  font-size: 26px;
  line-height: 39px;
  color: #FFFFFF;
}
.info-prices-boxes-single-box span + span {
  padding-top: 8px;
  margin-top: 7px;
  border-top: 2px solid #E31010;
}

/* product-designs */
.product-designs {
  margin-top: 43px;
  margin-bottom: 35px;
}
.product-designs-menu-tabs {
  display: flex;
  position: relative;
  z-index: 1;
}
.product-designs-menu-tabs:after {
  display: block;
  content: "";
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0;
  bottom: 1px;
  z-index: 2;
  background-color: #DBDBDB;
}
.product-designs-menu-tab {
  flex: 1 1 50%;
  text-align: center;
  position: relative;
  z-index: 3;
}
.product-designs-menu-tab .title {
  padding: 0;
  margin: 0 auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  border: 0;
  background: none;
  color: #585858;
}
.product-designs-menu-tab .title.active span {
  color: #E31010;
  position: relative;
  z-index: 4;
}
.product-designs-menu-tab .title.active span:after {
  display: block;
  content: "";
  width: 140%;
  height: 3px;
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  transform: translateX(-50%);
  background-color: #585858;
}
.product-designs-menu-tab .title span {
  display: inline-block;
  padding: 10px 0;
}
.product-designs-menu-tab + .product-designs-menu-tab:before {
  display: block;
  content: "";
  width: 1px;
  position: absolute;
  top: 9px;
  left: 0;
  bottom: 9px;
  background-color: #DBDBDB;
}
.product-designs-tabs {
  margin-top: 43px;
}
.product-designs-tabs-single-tab-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 17px;
}
.product-designs-tabs-single-tab-content .single-design {
  max-width: 21.4%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
.product-designs-tabs-single-tab-content .single-design.active {
  border: 1px solid #E31010;
}
.product-designs-tabs-single-tab-content .single-design a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-designs-tabs-single-tab-content .single-design a img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ATC modal */
.addtocart-modal .custom-modal-details {
  padding: 0;
}
.addtocart-modal .custom-modal-details .info-prices {
  padding: 10px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.8) url("https://www.castelli-cycling.com/_ui/responsive/theme-castelli/custom/images/info-prices-mobile.png") center center;
  background-size: cover;
}
.addtocart-modal .custom-modal-details .info-prices:after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* not fully supported */
  -webkit-backdrop-filter: blur(4px); /* not fully supported */
}

.atc-modal-wrapper {
  padding: 50px 10px;
}
.atc-modal-box-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0.1em;
}
.atc-modal-box-table {
  margin-top: 40px;
}
.atc-modal-box-table .block {
  flex: 1 1 0;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 1px solid #DBDBDB;
}
.atc-modal-box-table .block.heading {
  border-bottom: none;
}
.atc-modal-box-table .block .cell {
  flex: 0 1 50%;
  padding: 24px 0;
}
.atc-modal-box-table .block .cell .label {
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.atc-modal-box-table .block .cell + .cell {
  border-left: 1px solid #DBDBDB;
}
.atc-modal-box-total {
  margin-top: 47px;
  margin-bottom: 42px;
}
.atc-modal-box-total-line {
  display: flex;
  flex-wrap: wrap;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.1em;
}
.atc-modal-box-total-line .total {
  margin-left: 5px;
  font-weight: 500;
  color: #E31010;
}

.quantity-selector {
  width: 100px;
  height: 32px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0.1em;
  border-radius: 40px;
  border: 1px solid #DBDBDB;
}
.quantity-selector.selected {
  background-color: #F0F0F0;
}
.quantity-selector .plus,
.quantity-selector .minus {
  width: 30%;
  position: relative;
  z-index: 1;
  text-indent: -999px;
  overflow: hidden;
  cursor: pointer;
}
.quantity-selector .plus:after, .quantity-selector .plus:before,
.quantity-selector .minus:after,
.quantity-selector .minus:before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 2;
  background-color: #585858;
}
.quantity-selector .plus:before,
.quantity-selector .minus:before {
  width: 11px;
  height: 1px;
}
.quantity-selector .plus:after {
  width: 1px;
  height: 11px;
}
.quantity-selector .quantity {
  width: 40%;
}

/* add to project modal */
.addtoproject-modal .custom-modal-header {
  height: 122px;
  position: relative;
  z-index: 1;
  background: none;
}
.addtoproject-ribbon {
  width: 70px;
  position: absolute;
  top: -18px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}
.addtoproject-title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.1em;
}
.addtoproject-text {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1em;
}
.addtoproject-cta {
  margin-top: 37px;
}

/* modal error */
.addtocarterror-modal .custom-modal-header {
  height: 135px;
  background: none;
}
.addtocarterror-logo {
  width: 117px;
  height: 100px;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  border-radius: 0px 0px 5px 5px;
  background-color: #E31010;
}
.addtocarterror-title {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 33px;
  letter-spacing: 0.1em;
}
.addtocarterror-text {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
}

/* unmade modal */
.unmade-modal .modal-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
}
.unmade-modal .modal-dialog .modal-content {
  height: 100vh;
  min-height: 100%;
}
.unmade-modal .modal-dialog .modal-content .btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 9;
}
.unmade-modal .modal-dialog .modal-content .modal-header {
  text-align: left;
  padding: 10px;
  border: none;
}
.unmade-modal .modal-dialog .modal-content .modal-logo {
  max-width: 150px;
}
.unmade-modal .modal-dialog .modal-content .modal-body {
  padding: 0;
}

.customize-modal .custom-modal-content-box {
  max-width: 100%;
  width: 100%;
  height: 100%;
}
.customize-modal .custom-modal-header {
  height: 40px;
  background: none;
}
.customize-modal .custom-modal-header img {
  max-width: 150px;
  margin-right: auto;
}
.customize-modal .custom-modal-details {
  height: 100%;
  padding: 5px 10px 10px;
}
.customize-modal .custom-modal-iframe {
  height: calc(100% - 45px);
}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 769px) {
  section#pdp-prodtop.custom {
    margin-top: 28px;
  }
  section#pdp-prodtop.custom .h4 {
    font-size: 30px;
    line-height: 44px;
  }
  section#pdp-prodtop.custom .shortdesc {
    font-size: 16px;
    line-height: 24px;
  }
  section#pdp-prodtop.custom .pcolor-container {
    margin-top: 19px;
  }
  section#pdp-prodtop.custom div.size {
    margin-bottom: 8px;
  }
  section#pdp-prodtop.custom div#colRight .product-details-box {
    margin: 0 auto;
    max-width: 70%;
  }
  section#pdp-prodtop div#prdgalldesk .promo_name_badge.custom {
    left: auto;
    right: 45px;
  }
  .info-prices {
    color: #FFFFFF;
  }
  .info-prices-modal {
    background: none;
  }
  .info-prices-modal .custom-modal-content-box {
    max-width: 678px;
    padding-left: 85px;
    padding-right: 85px;
    background: transparent url("https://www.castelli-cycling.com/_ui/responsive/theme-castelli/custom/images/info-prices.png") center center;
    background-size: cover;
  }
  .info-prices-modal .custom-modal-content-box:after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
  }
  .info-prices-modal .custom-modal-background {
    backdrop-filter: none;
  }
  .info-prices-modal .custom-modal-details {
    padding: 54px 0;
  }
  .info-prices-titles {
    padding: 0;
  }
  .info-prices-title, .info-prices-subtitle {
    display: inline;
    font-size: 30px;
    line-height: 44px;
    letter-spacing: 0.2em;
  }
  .info-prices-text {
    font-size: 16px;
    line-height: 24px;
  }
  .info-prices-boxes-single-box {
    flex-direction: row;
  }
  .info-prices-boxes-single-box:last-child {
    margin-bottom: 0;
  }
  .info-prices-boxes-single-box span {
    flex: 1 1 50%;
  }
  .info-prices-boxes-single-box span + span {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    padding-left: 8px;
    margin-left: 7px;
    border-left: 2px solid #E31010;
  }
  .product-designs {
    margin-top: 20px;
    margin-bottom: 29px;
  }
  .product-designs-menu-tabs li.nav-item {
    padding-left: 53px;
    padding-right: 53px;
  }
  .product-designs-menu-tabs li.nav-item:first-child {
    padding-left: 0;
  }
  .product-designs-menu-tabs li.nav-item:last-child {
    padding-right: 0;
  }
  .product-designs-menu-tab {
    flex: unset;
  }
  .product-designs-menu-tab .title.active span:after {
    width: 100%;
  }
  .product-designs-tabs {
    margin-top: 20px;
  }
  .product-designs-tabs-single-tab-content {
    justify-content: start;
    gap: 10px;
  }
  .product-designs-tabs-single-tab-content .single-design {
    max-width: 68px;
  }
  .addtocart-modal .custom-modal-content-box {
    max-width: 1024px;
  }
  .addtocart-modal .custom-modal-details .info-prices {
    padding: 38px 33px 21px;
  }
  .addtocart-modal .custom-modal-details .info-prices-title, .addtocart-modal .custom-modal-details .info-prices-subtitle {
    font-size: 24px;
    line-height: 36px;
  }
  .addtocart-modal .custom-modal-details .info-prices-text {
    font-size: 14px;
    line-height: 21px;
  }
  .addtocart-modal .custom-modal-details .info-prices-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
  }
  .addtocart-modal .custom-modal-details .info-prices-boxes-single-box {
    margin-bottom: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }
  .addtocart-modal .custom-modal-details .info-prices-boxes-single-box span + span {
    padding-top: 8px;
    padding-left: 0;
    margin-top: 7px;
    margin-left: 0;
    border-top: 2px solid #E31010;
    border-left: none;
  }
  .atc-modal-wrapper {
    padding: 40px 30px 50px;
  }
  .atc-modal-box {
    color: #585858;
  }
  .atc-modal-box-title {
    text-align: left;
  }
  .atc-modal-box-table {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .atc-modal-box-table .block {
    border-bottom: none;
    border-left: 1px solid #DBDBDB;
  }
  .atc-modal-box-table .block.heading {
    display: none;
  }
  .atc-modal-box-table .block:nth-child(2) {
    border-left: none;
  }
  .atc-modal-box-table .block .cell {
    flex: 0 1 100%;
    height: 80px;
    padding: 29px 0 20px;
  }
  .atc-modal-box-table .block .cell + .cell {
    border-left: none;
    border-top: 1px solid #DBDBDB;
  }
  .atc-modal-box-recap {
    margin-top: 55px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .atc-modal-box-total {
    margin-top: 0;
    margin-bottom: 0;
    flex: 1 1 50%;
  }
  .atc-modal-box-total-line + .atc-modal-box-total-line {
    margin-top: 8px;
  }
  .atc-modal-box-buttons {
    flex: 1 1 50%;
  }
  .quantity-selector {
    width: 60px;
  }
  .product-shippinginfo {
    display: flex;
    justify-content: space-between;
  }
  .addtoproject-modal .custom-modal-content {
    align-items: flex-start;
  }
  .addtoproject-modal .custom-modal-content-box {
    min-width: 692px;
    max-width: 692px;
    top: 113px;
  }
  .addtoproject-modal .custom-modal-header {
    height: 146px;
  }
  .addtoproject-text {
    padding: 0 40px;
  }
  .addtoproject-cta {
    max-width: 240px;
    margin-bottom: 47px;
    margin-left: auto;
    margin-right: auto;
  }
  .addtocarterror-modal .custom-modal-content {
    align-items: flex-start;
  }
  .addtocarterror-modal .custom-modal-content-box {
    min-width: 692px;
    max-width: 692px;
    top: 113px;
  }
  .addtocarterror-modal .custom-modal-header {
    height: 157px;
  }
  .addtocarterror-logo {
    width: 160px;
    height: 120px;
    padding: 20px;
  }
  .addtocarterror-title {
    font-size: 26px;
    line-height: 39px;
  }
  .addtocarterror-text {
    margin-bottom: 115px;
  }
  .customize-modal .custom-modal-header {
    padding: 10px;
    height: 55px;
  }
  .customize-modal .custom-modal-details {
    padding: 0;
    overflow: hidden;
  }
  .customize-modal .custom-modal-iframe {
    height: calc(100% - 50px);
  }
}
/* // Medium devices (tablets, 1024px and up) and small heights */
@media (min-width: 769px) and (max-height: 740px) {
  .atc-modal-wrapper {
    padding-top: 30px;
    padding-bottom: 20px;
  }
  .atc-modal-box-table {
    margin-top: 16px;
  }
  .atc-modal-box-recap {
    margin-top: 30px;
  }
  .addtocart-modal .custom-modal-details .info-prices {
    padding-top: 20px;
  }
}
/* // Medium devices (desktop, 1024px and up) */
@media (min-width: 1024px) {
  section#pdp-prodtop.custom .h4 {
    margin-top: -11px;
  }
  .quantity-selector {
    width: 80px;
  }
}
@media (min-width: 1200px) {
  section#pdp-prodtop.custom div#colRight .product-details-box {
    max-width: 65%;
  }
  .addtocart-modal .custom-modal-content-box {
    max-width: 1180px;
  }
  .addtocart-modal .custom-modal-details .info-prices {
    padding-left: 104px;
    padding-right: 104px;
  }
  .atc-modal-wrapper {
    padding-left: 58px;
    padding-right: 58px;
  }
}