.sizeguide-trigger {
    display: inline-block;
    margin: 0 0 10px 0;
    text-decoration: underline;
    cursor: pointer;
}

/* Magento's default modal CSS is not compiling on this build (same issue documented for
   .product-accordion-modal in _extend.less), so the slide-panel layout, overlay and close
   icon are restored here explicitly, scoped to .sizeguide-modal with !important on the
   structural properties. Mirrors .modal-slide.product-accordion-modal in _extend.less. */
.modal-slide.sizeguide-modal {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 480px;
    max-width: 92vw;
    min-width: 0 !important;
    visibility: hidden;
    opacity: 0;
    z-index: 900 !important;
    transition: visibility 0s .3s, opacity .3s ease;
}
.modal-slide.sizeguide-modal._show {
    visibility: visible;
    opacity: 1;
    transition: opacity .3s ease;
}
.modal-slide.sizeguide-modal .modal-inner-wrap {
    display: flex !important;
    flex-direction: column !important;
    background-color: #fff;
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.35);
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease-in-out;
}
.modal-slide.sizeguide-modal._show .modal-inner-wrap {
    transform: translateX(0);
}
.modal-slide.sizeguide-modal .modal-header,
.modal-slide.sizeguide-modal .modal-content {
    padding: 0 26px 40px;
    flex: 0 0 auto;
    width: auto;
    box-sizing: border-box;
}
.modal-slide.sizeguide-modal .modal-content {
    flex: 1 1 auto !important;
    overflow-y: auto;
}
.modal-slide.sizeguide-modal .modal-header {
    padding-top: 21px;
    padding-bottom: 21px;
    position: relative;
}
.modal-slide.sizeguide-modal .modal-title {
    display: block;
    margin: 0;
    padding-right: 40px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.modal-slide.sizeguide-modal .action-close {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.modal-slide.sizeguide-modal .action-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.modal-slide.sizeguide-modal .action-close:before,
.modal-slide.sizeguide-modal .action-close:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #333;
    transform-origin: center;
}
.modal-slide.sizeguide-modal .action-close:before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-slide.sizeguide-modal .action-close:after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 640px) {
    .modal-slide.sizeguide-modal { width: 100vw; max-width: 100vw; }
}

.sizeguide-step-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.sizeguide-choice {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
    background: #fff;
}

.sizeguide-measurement-input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 8px;
}

.sizeguide-submit {
    margin-right: 10px;
}

.sizeguide-result {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.sizeguide-toggle-table {
    display: block;
    margin: 10px 0;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

.sizeguide-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.sizeguide-table th,
.sizeguide-table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: center;
}

.sizeguide-table-match {
    font-weight: 600;
    background: #f5f5f5;
}
