/*
Theme Name: MBS
Author: Atanas
Description: CSS for outside of default theme.
Version: 1.0
*/

@media (max-width: 398px) {
  .margin-buttons-top .wppb-button-addon-content .repeater-1 {
    margin-top: 20px;
  }
}


.mb-0 p {
	margin-bottom: 0px !important;
}

.custom-flip-box .wppb-flipbox-panel .wppb-flipbox-front {
	padding: 0px 20px 20px 20px !important;
}


.custom-flip-box .wppb-flipbox-panel .wppb-flipbox-back {
	padding: 0px 20px 20px 20px !important;
}

.custom-check .feature-icontitle-left {
  display: flex;
  align-items: center;
}


.w-33 {
	width: 33% !important;
}

.w-33.p-10 {
	padding-right: 10px !important;
	padding-left: 10px !important;
}

/* Mobile: make these columns 50% width */
@media (max-width: 767px) {
    .w-m-50 {
        width: 50% !important;
    }
	
	.tire-card-info .tire-card-description {
		display: none !important;
	}
	
	.wppb-flipbox-panel .wppb-flipbox-front
		 {
			padding: 0px !important;
			 padding-left: 10px !important;
			 padding-top: 15px !important;
			 padding-right: 10px !important;
		}
	
	.custom-products .image-after-text.wppb-column-parent-view {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}


.tire-card-info {
    color: #fff;
    font-size: 16px;
}

.tire-card-label {
    margin: 0 0 10px;
    font-weight: 400;
}

.tire-size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.tire-size-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4160cf;
    color: #ffd21a;
    font-size: 15px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    line-height: 1;
}

.tire-card-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
}





/* Front and back panels */
.image-after-text .wppb-flipbox-panel .wppb-flipbox-front,
.image-after-text .wppb-flipbox-panel .wppb-flipbox-back {
    padding-bottom: 0 !important;
}



/* Inner content fills card */
.image-after-text .wppb-flipbox-front .flip-box-inner,
.image-after-text .wppb-flipbox-back .flip-box-inner {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}


/* Center back button */
.image-after-text .wppb-flipbox-back .flip-box-inner {
    align-items: center !important;
    justify-content: center !important;
}



.image-after-text .wppb-flipbox-front .wppb-flip-front-img {
    order: 3 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    align-self: center !important;
    text-align: center !important;
    width: 100% !important;
}






/* ------------------------ Form Start ------------------------ */
.ttw-form-wrap {
  width: 100%;
}

.ttw-form-row {
  display: flex;
  gap: 22px;
}

.ttw-form-col {
  flex: 1;
}

.ttw-form-col-full {
  width: 100%;
}

.ttw-form-input,
.ttw-form-textarea {
  width: 100%;
  background-color: #D9D9D9;
  border: none;
  border-radius: 0;
  padding: 12px 18px;
  font-size: 17px;
  color: #676767;
  box-shadow: none;
  outline: none;
}

.ttw-form-input::placeholder,
.ttw-form-textarea::placeholder {
  color: #676767;
  opacity: 1;
}

.ttw-form-textarea {
  min-height: 100px;
  max-height: 150px;
  resize: vertical;
}

.ttw-form-submit-wrap {
  margin-top: 12px;
}

.ttw-form-submit {
  background: linear-gradient(90deg, #ffc738 5%, #ffb700 80%);
  border: none;
  border-radius: 4px;
  padding: 15px 40px 15px 40px;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
}

.ttw-form-submit:hover {
  background: linear-gradient(90deg, #ffc738 5%, #ffb700 80%);
  color: #000;
}

.ttw-form-wrap .wpcf7-spinner {
  display: block;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .ttw-form-row {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
  }

  .ttw-form-submit {
    width: 100%;
  }
}

/* ------------------------ Form End ------------------------ */

/* ------------------------ Blue Overlay Start ------------------------ */

.blue-overlay {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blue-overlay::before {
    content: none;
}

.blue-overlay .wppb-video-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blue-overlay .wppb-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blue-overlay > .wppb-container {
    position: relative;
    z-index: 2;
}

.blue-overlay .wppb-builder-addons > .wppb-inner-row-parent:nth-of-type(1) {
    position: relative;
    z-index: 2;
}

.blue-overlay .wppb-builder-addons > .wppb-inner-row-parent:nth-of-type(2) {
    position: relative;
    z-index: 3;
    padding-top: 45px;
    border-top: none;
}

.blue-overlay .wppb-builder-addons > .wppb-inner-row-parent:nth-of-type(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1000px;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 58, 205, 0.75) 0%,
            rgba(0, 58, 205, 0.45) 35%,
            rgba(0, 0, 0, 0.35) 100%
        );
}

.blue-overlay .wppb-builder-addons > .wppb-inner-row-parent:nth-of-type(2)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    z-index: 5;
    pointer-events: none;
}

.blue-overlay .wppb-builder-addons > .wppb-inner-row-parent:nth-of-type(n + 3) {
    position: relative;
    z-index: 3;
}

/* ------------------------ Blue Overlay End ------------------------ */


.tire-background-video {
    position: relative;
    overflow: hidden;
    background: #000;
}

.tire-background-video .wppb-video-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.tire-background-video .wppb-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
    transform: translateX(-30%);
	opacity: 0.30;
}

@media (max-width: 1850px) {
	.tire-background-video .wppb-video-bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 200%;
		height: 100%;
		object-fit: cover;
		object-position: left top;
		transform: translateX(-30%);
	}
}

.tire-background-video .wppb-container {
    position: relative;
    z-index: 2;
}

.custom-flip-box .wppb-flipbox-front.flip-box:before,
.custom-flip-box .threeD-flip-front:before {
    background-position: center center !important;
}




