.solioplus-measurement-button {
    position: relative;
    margin-left: 10px;
    padding: 10px 20px;
    padding-left: 40px;
}

.solioplus-measurement-button svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Modal Base Styles */
.solioplus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.solioplus-modal-content {
    position: relative;
    background-color: #fff;
    width: 95%;
    max-width: 900px;
    min-width: 800px;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal Header */
.solioplus-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.solioplus-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Modal Close Button */
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #fecaca;
    border-color: #fee2e2;
    color: #b91c1c;
}

.solioplus-modal .modal-content {
    max-height: 85vh;
    overflow: auto;
}

/* Tab Navigation */
.size-chart-tabs {
    width: 100%;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 0;
    display: flex;
    gap: 4px;
    padding: 0px 30px;
}

.tab-button {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0;
    margin-left: 0;
}

.tab-button:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-button.active {
    color: #333;
    font-weight: 500;
    background-color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    background-color: #fff;
}

.tab-content[data-tab-content].active {
    display: block;
}

/* Size Chart Table */
.size-chart-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    background: #fff;
    min-width: 600px;
    max-width: 100%;
}

.size-chart-table th,
.size-chart-table td {
    padding: 14px 16px;
    border: 1px solid #eee;
    text-align: center;
}

/* Header Cells */
.measurement-header,
.measurement-label {
    width: 200px;
    min-width: 200px;
    text-align: left;
    background: #f8f8f8;
    font-weight: 500;
    color: #333;
}

.size-header {
    background: #f8f8f8;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

/* Table Body */
.measurement-value {
    color: #666;
    font-family: monospace;
    font-size: 14px;
}

.measurement-label .unit {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    margin-left: 4px;
}

/* Modal Footer */
.solioplus-modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Inner Container Structure */
.size-chart-container {
    width: 100%;
}

.size-chart-inner {
    width: 100%;
}

/* Size Chart Header */
.size-chart-container .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.size-chart-container .modal-header-left-side {
    flex: 0 0 auto;
}

.size-chart-container .modal-header-right-side {
    display: flex;
    align-items: center;
}

.size-chart-container .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Updated Close Button Style */
.size-chart-container .modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-chart-container .modal-close:hover {
    background-color: #fecaca;
    border-color: #fee2e2;
    color: #b91c1c;
}

/* Adjust Tab Navigation Position */
.size-chart-tabs {
    width: 100%;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 0;
    display: flex;
    gap: 4px;
    margin-top: 0;
}

/* Content Area Adjustments */
.size-chart-content {
    padding: 30px;
}

/* Floating Size Chart Button */
.solioplus-size-chart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.solioplus-size-chart-button:hover {
    background-color: #333;
}

.solioplus-size-chart-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive Adjustments */
@media (max-width: 880px) {
    .solioplus-modal-content {
        min-width: 320px;
        width: calc(100% - 32px);
        margin: 16px;
    }

    .size-chart-container .modal-header {
        padding: 15px 20px;
    }

    .size-chart-content {
        padding: 20px;
    }

    .size-chart-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
        flex: 0 0 auto;
    }

    .solioplus-size-chart-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
}

/* Add smooth scrollbar for webkit browsers */
.solioplus-modal-content::-webkit-scrollbar {
    width: 8px;
}

.solioplus-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.solioplus-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
}

.solioplus-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Print Styles */
@media print {
    .solioplus-modal {
        position: relative;
        display: block;
        background: none;
        height: auto;
        overflow: visible;
    }

    .solioplus-modal-content {
        max-height: none;
        box-shadow: none;
        overflow: visible;
    }

    .modal-close,
    .size-chart-tabs {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* Measurement Modal Styles */
.solioplus-measurement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9993;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.solioplus-measurement-modal .modal-content {
    position: relative;
    background-color: #fff;
    width: 95%;
    max-width: 900px;
    min-width: 800px;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

/* Modal Header and Title */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.modal-header-left-side {
    flex: 0 0 auto;
}

.modal-header-right-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.guide-buttons {
    display: flex;
    gap: 8px;
}

.view-guide-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    height: 36px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-guide-button:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.view-guide-button svg {
    width: 16px;
    height: 16px;
}

/* Measurement Guide Section */
.measurement-guide-section {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

/* Login Notice */
.login-notice {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.login-notice a {
    color: #333;
    text-decoration: underline;
}

/* Measurement Tabs */
.measurement-tabs {
    display: flex;
    gap: 0;
    padding: 0 30px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #333;
    border-bottom-color: #333;
    background-color: #fff;
}

/* Standard Sizes Tab Content */
.all-measurements-container {
    padding: 30px;
}

.size-type-section {
    margin-bottom: 30px;
}

.size-type-section h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.size-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

.size-option input[type="radio"]:checked+.size-label {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

/* Combined Measurements Display */
.measurements-table-container {
    margin-top: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.measurements-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.measurements-table th,
.measurements-table td {
    padding: 12px 15px !important;
    border: 1px solid #eee;
    text-align: center;
    min-width: 100px;
}

.measurements-table th:first-child,
.measurements-table td:first-child {
    position: sticky;
    left: 0;
    background: #f8f8f8;
    z-index: 1;
    text-align: left;
    font-weight: 500;
}

.measurements-table th {
    background-color: #f8f8f8;
    font-weight: 500;
}

/* Custom Measurements Tab Content */
.measurement-form-container {
    padding: 30px;
}

.profile-name-container {
    margin-bottom: 30px;
}

.profile-name-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.profile-name-container input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    width: 100%;
}

.measurement-section {
    margin-bottom: 30px;
}

.measurement-section h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.measurement-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.measurement-field {
    display: flex;
    flex-direction: column;
}

.measurement-field label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.measurement-field label span.field-number {
    color: #999;
}

.measurement-field label .description-icon {
    cursor: pointer;
}

.measurement-field label .description-icon:hover {
    opacity: 0.9;
}

.measurement-field .unit {
    color: #999;
    font-size: 12px;
}

.measurement-field input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    width: 100%;
}

/* Form Actions */
.measurement-form .save-options {
    margin-bottom: 20px;
}

.measurement-form .save-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.measurement-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.measurement-form .button {
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.measurement-form .button-primary {
    background-color: #333;
    color: #fff;
}

.measurement-form .button-primary:hover {
    background-color: #444;
}

.measurement-form.size-actions {
    display: flex;
    gap: 10px;
}

.use-measurements {
    background-color: #333;
    color: #fff;
}

.customize-measurements {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

/* Responsive Adjustments */
@media (max-width: 880px) {
    .solioplus-measurement-modal .modal-content {
        min-width: 320px;
        width: calc(100% - 32px);
        margin: 16px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header-right-side {
        flex-wrap: wrap;
        gap: 8px;
    }

    .guide-buttons {
        order: 2;
        width: 100%;
    }

    .view-guide-button {
        flex: 1;
        padding: 8px;
        justify-content: center;
    }

    .view-guide-button svg {
        width: 14px;
        height: 14px;
    }

    .modal-close {
        order: 1;
    }

    .measurement-tabs {
        padding: 0 20px;
        overflow-x: auto;
    }

    .all-measurements-container,
    .measurement-form {
        padding: 20px;
    }

    .measurement-fields {
        grid-template-columns: 1fr;
    }

    .size-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .measurement-guide-overlay .overlay-content {
        max-width: calc(100% - 40px);
        padding: 15px;
    }

    .measurement-guide-overlay img {
        max-height: calc(85vh - 30px);
    }
}

/* Profile saving switch styling */
.measurement-form .save-profile-switch {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.measurement-form .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.measurement-form .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.measurement-form .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.measurement-form .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.measurement-form input:checked+.slider {
    background-color: #2196F3;
}

.measurement-form input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

.measurement-form input:checked+.slider:before {
    transform: translateX(26px);
}

.measurement-form .slider.round {
    border-radius: 24px;
}

.measurement-form .slider.round:before {
    border-radius: 50%;
}

.measurement-form .switch-label {
    font-size: 14px;
    color: #666;
}

/* Profile name input styling */
.profile-name-container {
    margin-bottom: 20px;
}

.profile-name-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-name-container input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Selected Measurements Summary */
.selected-measurements-summary {
    margin: 15px 0;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f8f8f8;
    clear: both;
}

.measurements-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.measurements-title span {
    font-weight: 500;
    color: #333;
}

.view-details-button {
    padding: 4px 8px;
    font-size: 12px;
    color: #666;
    background: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.view-details-button:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Measurements Details Modal */
.measurements-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9990;
    display: none;
}

.measurements-details-overlay.active {
    display: block;
}

.measurements-details-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 9991;
    max-width: 90%;
    width: 800px;
    max-height: 90vh;
    display: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.measurements-details-modal.active {
    display: block;
    overflow: auto;
}

.measurements-details-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 4px 4px 0 0;
}

.measurements-details-modal .modal-content {
    padding: 20px 30px;
}

/* Update the styles for the measurement details modal */
.measurements-details-modal .measurements-details-table-wrapper {
    margin: 0;
    padding: 0 0 10px 0;
    overflow-x: auto;
    max-width: 100%;
    max-height: calc(90vh - 140px);
    /* Account for header and padding */
    overflow-y: auto;
}

.measurements-details-modal .measurements-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.measurements-details-modal .measurements-table th,
.measurements-details-modal .measurements-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.measurements-details-modal .measurements-table th {
    background-color: #f4f4f4;
    font-weight: 600;
}

.measurements-details-modal .section-header td {
    background-color: #e9e9e9;
    font-weight: bold;
    padding: 10px 12px;
}

.measurements-details-modal .type-header td {
    background-color: #f4f4f4;
    font-weight: 600;
    font-style: italic;
    padding: 8px 12px;
}

.measurements-details-modal h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Saved Profiles Tab Content */
.tab-content[data-tab-content="saved-profiles"] {
    padding: 30px;
}

.saved-profiles-section {
    margin: 0;
    padding: 0;
}

.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-profile {
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.profile-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-actions .button {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    cursor: pointer;
}

.profile-actions .use-profile {
    background: #333;
    color: #fff;
    border-color: #222;
}

.profile-actions .customize-profile {
    background: #f7f7f7;
    color: #333;
    border-color: #ddd;
}

.profile-actions .delete-profile {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.profile-actions .button:hover {
    opacity: 0.9;
}

/* My Account Measurements Page */
.solioplus-measurements-page {
    padding: 20px 0;
}

.solioplus-measurements-page h2 {
    margin-bottom: 30px;
}

.no-profiles-message {
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 4px;
    text-align: center;
}

.no-profiles-message p {
    margin: 0 0 10px;
    color: #666;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-card {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-header {
    margin-bottom: 15px;
}

.profile-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 500;
}

.profile-date {
    font-size: 13px;
    color: #666;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-actions .button {
    flex: 1;
    text-align: center;
}

.view-measurements {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
}

.delete-profile {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Loading and Error States */
.profiles-list .loading,
.profiles-list .no-profiles,
.profiles-list .error-message {
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
}

.profiles-list .error-message {
    background: #fee2e2;
    color: #dc2626;
}

.profiles-list .no-profiles {
    background: #f8f8f8;
    color: #666;
}

/* Measurement Description Drawer */
.measurement-description-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9993;
    display: none;
}

.measurement-description-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 9994;
    display: flex;
    flex-direction: column;
}

.measurement-description-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.drawer-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.drawer-close:hover {
    color: #000;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.description-text {
    font-size: 16px;
    line-height: 1.5;
}

/* Measurement Type Tabs */
.measurement-type-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin: 20px 0 15px;
}

.measurement-tab-button {
    color: #666;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.measurement-tab-button.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: 500;
    color: #666;
    box-shadow: none;
}

.measurement-type-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.measurement-type-description p {
    margin-bottom: 0px;
}

/* Navigation between measurement types */
.measurement-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.next-measurement,
.prev-measurement {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.next-measurement:hover,
.prev-measurement:hover {
    background: #e8e8e8;
}

/* Media query for mobile */
@media (max-width: 880px) {
    .measurement-type-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .measurement-tab-button {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 4px;
        border-bottom: 1px solid #ddd;
    }

    .measurement-tab-button.active {
        border-bottom: 1px solid #ddd;
        margin-bottom: 5px;
    }
}

/* Add these styles for the separate tables */
.measurements-details-modal .garment-table,
.measurements-details-modal .body-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.measurements-details-modal .type-header td {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: left;
    padding: 8px 12px;
}

.measurements-details-modal h5 {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Body Type Selection Styles */
.body-type-section {
    margin-bottom: 30px;
}

.body-type-section h4 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.body-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.type-option {
    text-align: center;
}

.type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-image {
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.type-option input[type="radio"]:checked+.type-image {
    border-color: #333;
    box-shadow: 0 0 0 2px #333;
}

.type-option span {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 880px) {
    .body-type-options {
        gap: 10px;
    }

    .type-image {
        width: 80px;
        height: 80px;
    }
}

/* Add error styling for body type validation */
.type-option.error .type-image {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px #dc2626;
}

/* Cart measurement styles */
.measurement-data-cart {
    margin-top: 10px;
    font-size: 0.9em;
}

.measurement-profile {
    margin-bottom: 5px;
}

.standard-sizes {
    margin-bottom: 5px;
    font-style: italic;
}

.view-measurements {
    display: inline-block;
    font-size: 0.85em;
    text-decoration: none;
    margin-top: 3px;
}

.cart-measurement-details {
    background: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 3px;
}

.cart-measurement-details h5 {
    margin: 0 0 5px;
    font-size: 0.95em;
    font-weight: bold;
}

.measurement-section {
    margin-bottom: 10px;
}

.measurement-section:last-child {
    margin-bottom: 0;
}

.measurement-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.measurement-list li {
    margin-bottom: 3px;
    padding: 0;
    font-size: 0.85em;
}

.measurement-list span {
    font-weight: bold;
}

/* Body Type Image Zoom */
.type-option .type-image {
    position: relative;
    display: inline-block;
    cursor: default;
    overflow: hidden;
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 5px;
    background-color: #fff;
    text-align: center;
    transition: border-color 0.3s ease;
}

.type-option input[type="radio"]:checked + .type-image {
    border-color: #007cba;
}

.type-option .type-image img {
     max-width: 100px;
     height: auto;
     display: block;
     margin: 0 auto;
     cursor: pointer;
}

.type-option .zoom-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.type-option label:hover .type-image .zoom-icon,
.type-option .type-image:hover .zoom-icon {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    cursor: pointer;
}

#image-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 10000;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    max-height: none;
    overflow: hidden;
}

#image-lightbox-modal .modal-content {
    position: relative;
    background: none;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    overflow: visible; 
    display: flex;
    align-items: center;
    justify-content: center;
        z-index: 9999;
}

#image-lightbox-modal .lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#image-lightbox-modal img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#image-lightbox-modal .modal-header-minimal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
}

#image-lightbox-modal .image-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#image-lightbox-modal .image-lightbox-close svg {
    width: 18px; 
    height: 18px;
    stroke-width: 2px;
}

#image-lightbox-modal .image-lightbox-close:hover {
    background-color: #fff;
    color: #000;
}

