/* ============================================================
   GLOZIN CUSTOM MEASUREMENTS
   INLINE PRODUCT FORM
============================================================ */

#gcm-custom-size-panel {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 0;
    box-sizing: border-box;
    clear: both;
}

#gcm-custom-size-panel.gcm-is-visible {
    display: block;
}

#gcm-custom-size-panel *,
#gcm-custom-size-panel *::before,
#gcm-custom-size-panel *::after {
    box-sizing: border-box;
}


/* ============================================================
   HEADER
============================================================ */

.gcm-custom-size-header {
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.gcm-custom-size-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    margin-bottom: 9px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.gcm-custom-size-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.gcm-custom-size-description {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.65;
}


/* ============================================================
   INSTRUCTIONS BOX
============================================================ */

.gcm-custom-size-instructions {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 15px 0 0;
    padding: 18px 20px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.gcm-instructions-title {
    display: block !important;
    width: 100%;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


/* ============================================================
   INSTRUCTIONS CONTENT
============================================================ */

.gcm-instructions-content {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.55;
}


/* ============================================================
   NOTE HEADING
============================================================ */

.gcm-instructions-content h4 {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}


/* ============================================================
   INSTRUCTION LIST
============================================================ */

.gcm-instructions-content ul {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.gcm-instructions-content li {
    display: list-item;
    width: auto;
    max-width: none;

    margin: 0;
    padding: 0 0 7px 3px;

    line-height: 1.55;

    /*
     * Normal sentence wrapping.
     * Do NOT use nowrap on the whole li.
     */
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.gcm-instructions-content li:last-child {
    padding-bottom: 0;
}


/* ============================================================
   BOLD PHRASES
   Keep each bold phrase together.
============================================================ */

.gcm-instructions-content li strong,
.gcm-instructions-content strong {
    display: inline !important;

    margin: 0 !important;
    padding: 0 !important;

    font-weight: 700 !important;

    /*
     * Prevent:
     *
     * final stitching
     * measurements
     *
     * from splitting.
     */
    white-space: nowrap !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
}


/* ============================================================
   NORMAL PARAGRAPHS
============================================================ */

.gcm-instructions-content p {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    line-height: 1.55;
}

.gcm-instructions-content p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   MEASUREMENT SECTIONS
============================================================ */

.gcm-measurement-section {
    width: 100%;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.gcm-section-heading {
    margin-bottom: 16px;
}

.gcm-section-heading h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.gcm-section-description {
    margin-top: 5px;
    font-size: 12px;
    opacity: .7;
}


/* ============================================================
   DIAGRAM + FIELDS
============================================================ */

.gcm-section-content {
    display: grid;
    grid-template-columns:
        minmax(180px, .9fr)
        minmax(200px, 1.1fr);
    gap: 20px;
    align-items: start;
}

.gcm-measurement-diagram {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    background: #fafafa;
    border-radius: 8px;
}

.gcm-measurement-diagram img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* ============================================================
   FIELDS
============================================================ */

.gcm-measurement-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.gcm-measurement-field {
    min-width: 0;
}

.gcm-measurement-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
}

.gcm-required {
    margin-left: 3px;
}

.gcm-input-wrap {
    position: relative;
}

.gcm-measurement-input {
    width: 100% !important;
    min-height: 43px;
    padding: 9px 60px 9px 11px !important;

    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 6px !important;

    background: #fff !important;
    box-shadow: none !important;

    font-size: 13px;
}

.gcm-measurement-input:focus {
    outline: none !important;
}

.gcm-input-unit {
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-50%);

    font-size: 11px;
    opacity: .55;

    pointer-events: none;
}


/* ============================================================
   NOTES
============================================================ */

.gcm-custom-size-notes {
    width: 100%;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.gcm-custom-size-notes label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 600;
}

.gcm-custom-size-notes label small {
    font-size: 10px;
    font-weight: 400;
    opacity: .6;
}

.gcm-custom-size-notes textarea {
    display: block;
    width: 100% !important;
    min-height: 90px;

    padding: 11px !important;

    border: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 6px !important;

    box-shadow: none !important;

    resize: vertical;
    font-size: 13px;
}


/* ============================================================
   FOOTER
============================================================ */

.gcm-custom-size-footer {
    width: 100%;
    margin-top: 15px;
}

.gcm-footer-message {
    font-size: 11px;
    line-height: 1.5;
    opacity: .6;
}


/* ============================================================
   KEEP CUSTOM SIZE BELOW COMPLETE SIZE SELECTOR
============================================================ */

#gcm-custom-size-panel {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    float: none !important;
    clear: both !important;

    flex: 0 0 100% !important;

    grid-column: 1 / -1 !important;

    order: 999 !important;
}


/* ============================================================
   LARGE DESKTOP
============================================================ */

@media (min-width: 1200px) {

    .gcm-section-content {
        grid-template-columns:
            minmax(220px, .9fr)
            minmax(240px, 1.1fr);

        gap: 25px;
    }

    .gcm-custom-size-instructions {
        padding: 18px 20px 20px;
    }

    .gcm-instructions-content {
        font-size: 13px;
    }

    .gcm-instructions-content li {
        line-height: 1.5;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991px) {

    .gcm-custom-size-instructions {
        width: 100%;
    }

    .gcm-instructions-content {
        width: 100%;
    }

    .gcm-instructions-content ul {
        width: 100%;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    #gcm-custom-size-panel {
        margin-top: 20px;
    }

    .gcm-custom-size-header {
        padding-top: 18px;
    }

    .gcm-custom-size-title {
        font-size: 18px;
    }

    .gcm-custom-size-instructions {
        margin-top: 14px;
        padding: 16px;
        font-size: 13px;
    }

    .gcm-instructions-title {
        margin-bottom: 10px !important;
        font-size: 13px;
    }

    .gcm-instructions-content {
        font-size: 13px;
        line-height: 1.55;
    }

    .gcm-instructions-content h4 {
        margin-bottom: 11px;
        font-size: 20px;
        line-height: 1.2;
    }

    .gcm-instructions-content ul {
        padding-left: 19px;
    }

    .gcm-instructions-content li {
        padding-left: 2px;
        padding-bottom: 7px;
        line-height: 1.55;
    }

    .gcm-section-content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gcm-measurement-diagram {
        max-width: 100%;
    }

    .gcm-measurement-fields {
        grid-template-columns: 1fr;
    }

    .gcm-measurement-input {
        min-height: 48px;
        font-size: 16px;
    }

    .gcm-custom-size-notes textarea {
        font-size: 16px;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .gcm-custom-size-instructions {
        padding: 14px;
    }

    .gcm-instructions-content {
        font-size: 13px;
    }

    .gcm-instructions-content h4 {
        font-size: 18px;
    }

    .gcm-instructions-content ul {
        padding-left: 18px;
    }

    .gcm-instructions-content li {
        padding-left: 2px;
    }
}