/**
 * SuitUp Tailors Child Theme - suitup-cart.css
 * Replicates the exact CSS from the original theme's customdesign.css
 * for the measurement modal and cart functionality.
 */

/* ===================================================
   CUSTOM MODAL (No Bootstrap - pure CSS/JS)
   =================================================== */

.suitup-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99998;
}
.suitup-modal-overlay.active {
    display: block;
}

#sizePopup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    overflow-y: auto;
    background: #fff;
}
#sizePopup.active {
    display: block;
}

/* Close Button */
.cart-close,
.suitup-modal-close {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100000;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.cart-close:hover,
.suitup-modal-close:hover {
    background: #000;
}

/* ===================================================
   MEASUREMENT OPTION CONTAINERS
   =================================================== */

.MeasurementsOption {
    display: none;
}
.MeasurementsOption:first-of-type {
    display: block;
}

/* Tabs hidden by default, shown by JS */
.mytabs {
    display: none;
}

/* ===================================================
   CART HEADER / HEADING
   =================================================== */

.cart-header {
    position: relative;
}

.cart-heading {
    padding: 20px 0 10px;
}

.cart-heading h2 {
    font-family: "Lucida Sans", "Lucida Grande", Arial, sans-serif;
    font-weight: 400;
    font-size: 36px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    letter-spacing: 0.05em;
}

/* ===================================================
   FIRST VIDEO (INTRO PAGE)
   Full-width video area with YouTube player
   =================================================== */

.first_video {
    position: relative;
    width: 100%;
    background: #000;
    /* 16:9 ratio */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.first_video > div,
.first_video iframe {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ===================================================
   STEP VIDEO WRAPPER
   =================================================== */

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper > div,
.video-wrapper .videoIDclassing,
.video-wrapper iframe {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ===================================================
   BACK / NEXT BUTTONS overlaid on video
   Positioned absolutely inside .video-wrapper
   =================================================== */

.NextPreButtons {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* allow clicks to pass through to video */
}

.NextPreButtons .actions {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
}

.btn-prev.AngleLeft,
.btn-next.AngleRight {
    pointer-events: all;
    background: transparent !important;
    border: none !important;
    color: #ffc814 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    padding: 10px 15px !important;
    transition: color 0.2s;
}

.btn-prev.AngleLeft:hover,
.btn-next.AngleRight:hover {
    color: #fff !important;
}

/* ===================================================
   INPUT FIELDS
   =================================================== */

.InputFieldText {
    padding: 20px 0;
}

.measurement-field {
    text-align: center;
}

.measurement-input-field {
    display: inline-block;
    text-align: center;
}

.measurement-input-field input[type="number"] {
    width: 140px;
    font-size: 26px;
    text-align: center;
    padding: 8px 10px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    -moz-appearance: textfield;
}
.measurement-input-field input[type="number"]::-webkit-outer-spin-button,
.measurement-input-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.measurement-input-field .unit {
    font-size: 20px;
    margin-left: 8px;
    color: #333;
}

/* ===================================================
   HELP TIP (? tooltip) - exact from original
   =================================================== */

.help-tip {
    position: relative;
    top: 0;
    right: auto;
    text-align: center;
    background-color: #ffc814;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 25px;
    line-height: 25px;
    cursor: default;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}
.help-tip:before {
    content: '?';
    font-weight: bold;
    color: #fff;
}
.help-tip:hover p {
    display: block;
    transform-origin: 100% 0%;
    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}
.help-tip p {
    display: none;
    text-align: left;
    background-color: #1E2021;
    padding: 20px;
    width: 295px;
    position: absolute;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    right: -4px;
    bottom: 40px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    z-index: 100;
}
.help-tip p:before {
    position: absolute;
    content: '';
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top-color: #1E2021;
    right: 10px;
    bottom: -12px;
}
.help-tip p:after {
    width: 100%;
    height: 40px;
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===================================================
   MODAL BODY / CART BODY
   =================================================== */

.cart_body {
    padding: 20px 0;
}

/* ===================================================
   INTRO PAGE BUTTONS
   =================================================== */

.FirstPageTabeButton {
    text-align: center;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid transparent;
    margin: 5px;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}
.btn-primary:hover {
    background: #ffc814;
    color: #000;
    border-color: #ffc814;
}
.btn-default {
    background: #e0e0e0;
    color: #000;
    border-color: #ccc;
}
.btn-default:hover {
    background: #ffc814;
    color: #000;
    border-color: #ffc814;
}

/* ===================================================
   UNIT SELECTORS
   =================================================== */

.flot_btn {
    text-align: center;
    margin-bottom: 12px;
}
.flot_btn label {
    font-size: 15px;
    font-weight: 600;
    margin-right: 8px;
}
.flot_btn select {
    padding: 6px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.HeightFeet, .HeightInch {
    display: inline-block;
    margin: 0 4px;
}

/* ===================================================
   SUMMARY PAGE
   =================================================== */

.SummaryTextLast .cart-heading h2 {
    font-size: 30px;
}
.SummaryTextLast .cart-heading p {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.step-pane.summary {
    padding: 20px;
}

.form-group.measurement-field.col-md-4 {
    margin-bottom: 15px;
}

.last-pane-value {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    border-radius: 2px;
}

.position_relative {
    position: relative;
}

.SummaryTextLastButton h2 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.measurement-name input {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 8px 12px;
    font-size: 16px;
    border: 2px solid #000;
    border-radius: 3px;
}

.save-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}
.save-button:hover {
    background: #ffc814;
    color: #000;
}

/* ===================================================
   CART PAGE: Measurements / Size column
   =================================================== */

.product-size select,
select.sizeDropDown {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 2px;
}

.product-size .button,
.DropDownHideMage input[type="button"],
.add-measurement-btn {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 4px;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.product-size .button:hover,
.DropDownHideMage input[type="button"]:hover,
.add-measurement-btn:hover {
    background: #ffc814;
    color: #000;
}
.DropDownHide {
    display: none;
}

/* ===================================================
   FALLBACK FORM (when no measurement_options)
   =================================================== */

.suitup-fallback-measurement {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #ddd;
    background: #fff;
}
.suitup-fallback-measurement label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.suitup-fallback-measurement .form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    border-radius: 2px;
}
.suitup-fallback-measurement .button {
    background: #000;
    color: #fff;
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
.suitup-fallback-measurement .button:hover {
    background: #ffc814;
    color: #000;
}

/* ===================================================
   MEASUREMENT MODAL REFRESH (2026-07)
   Clean paper background, constrained wizard width,
   responsive video and form layout on all devices.
   =================================================== */

body #sizePopup {
    background: #FBF9F4 !important;
}
body #sizePopup .modal-content-step-all {
    background: none !important;
}
body #sizePopup .modal-dialog-step-all {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 24px 90px;
    box-sizing: border-box;
}
body #sizePopup .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* The legacy design overlaid heading and form on a fullscreen video.
   Restore normal document flow inside the wizard. */
body #sizePopup .cart-heading,
body #sizePopup .FirstPageTabe,
body #sizePopup .cart_body,
body #sizePopup .cart-header {
    position: static !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
}

/* Headings: Additional CSS painted these white for the old photo background */
body #sizePopup .cart-heading h2 {
    color: #171717 !important;
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 34px !important;
    letter-spacing: .01em;
    margin: 0 0 22px !important;
}

/* Video: fixed 16:9, centered, never oversized */
body #sizePopup .first_video,
body #sizePopup .video-wrapper {
    max-width: 820px;
    margin: 0 auto 26px;
    padding-bottom: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #101010;
}
body #sizePopup .first_video > div,
body #sizePopup .first_video iframe,
body #sizePopup .video-wrapper > div:not(.NextPreButtons):not(.InputFieldText),
body #sizePopup .video-wrapper .videoIDclassing,
body #sizePopup .video-wrapper iframe {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Bottom scrim behind the step controls */
body #sizePopup .video-wrapper::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 170px;
    background: linear-gradient(180deg, rgba(16,16,16,0) 0%, rgba(16,16,16,.82) 58%);
    pointer-events: none;
    z-index: 9;
}

/* Form area */
body #sizePopup .cart_body {
    max-width: 820px;
    margin: 0 auto;
    padding: 6px 0 0;
}
body #sizePopup .flot_btn label {
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}
body #sizePopup select,
body #sizePopup input[type="text"],
body #sizePopup input[type="number"] {
    border: 1px solid #e6dfd0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #171717 !important;
}

/* Close control */
body #sizePopup .cart-close,
body .suitup-modal-close {
    background: #171717 !important;
    border-radius: 999px !important;
    padding: 8px 20px !important;
    top: 16px !important;
    right: 16px !important;
}
body #sizePopup .cart-close:hover,
body .suitup-modal-close:hover {
    background: #D4AF37 !important;
    color: #171717 !important;
}

/* Step controls: back and next pills at the video foot */
body #sizePopup .NextPreButtons {
    top: auto !important;
    bottom: 12px !important;
    height: auto !important;
    left: 0;
    width: 100%;
    padding: 0 18px;
    background: none;
    pointer-events: none;
    z-index: 11 !important;
}
body #sizePopup .InputFieldText {
    top: auto !important;
    bottom: 112px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 12 !important;
}
body #sizePopup .NextPreButtons .actions {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    pointer-events: auto;
}
body #sizePopup .NextPreButtons a,
body #sizePopup .NextPreButtons button {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .16) !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 999px !important;
    color: #D4AF37 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: .1em;
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 22px !important;
    cursor: pointer;
    transition: background .2s ease;
}
body #sizePopup .NextPreButtons a:hover,
body #sizePopup .NextPreButtons button:hover {
    background: #D4AF37 !important;
    color: #171717 !important;
}
body #sizePopup .NextPreButtons input {
    max-width: 130px;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    body #sizePopup .modal-dialog-step-all {
        padding: 56px 20px 70px;
    }
    body #sizePopup .cart-heading h2 {
        font-size: 28px !important;
    }
}

/* Phone */
@media (max-width: 640px) {
    body #sizePopup .modal-dialog-step-all {
        padding: 54px 12px 60px;
    }
    body #sizePopup .cart-heading h2 {
        font-size: 22px !important;
    }
    body #sizePopup .first_video,
    body #sizePopup .video-wrapper {
        border-radius: 8px;
        margin-bottom: 18px;
    }
    body #sizePopup .flot_btn {
        float: none !important;
        margin: 0 0 12px !important;
        width: 100%;
    }
    body #sizePopup select,
    body #sizePopup input[type="text"],
    body #sizePopup input[type="number"] {
        width: 100% !important;
    }
    body #sizePopup .cart-close,
    body .suitup-modal-close {
        top: 8px !important;
        right: 8px !important;
        padding: 7px 16px !important;
        font-size: 12px !important;
    }
}
