:root {
    --md-circular-progress-size: 48px;
    --md-circular-progress-active-indicator-width: 12;
    --md-sys-color-primary: rgba(101, 85, 143, 1);
    font-family: 'Inter', sans-serif;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    cursor: wait;
}

#mida-screenshot-button[disabled] {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
    opacity: 0.6;
}

#mida-iframe {
    border: none;
    inset: 0 !important;
    display: block !important;
    margin-left: 0 !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow:
            rgba(85, 85, 85, 0.03) 0 54px 55px,
            rgba(0, 0, 0, 0.03) 0 -12px 30px,
            rgba(0, 0, 0, 0.03) 0 4px 6px,
            rgba(0, 0, 0, 0.04) 0 12px 13px,
            rgba(0, 0, 0, 0.03) 0
            -3px 4px;
}

.mdc-circular-progress {
    --mdc-circular-progress-size: 48px;
}

#mida-card-wrapper-iframe {
    padding: 0 20px;
    background: rgba(247, 248, 250, 1);
}

#mida-body-wrapper-iframe {
    position: relative;
    overflow: hidden;
    margin: auto;
    box-shadow: rgba(85, 85, 85, 0.03) 0 54px 55px, rgba(0, 0, 0, 0.03) 0 -12px 30px, rgba(0, 0, 0, 0.03) 0 4px 6px, rgba(0, 0, 0, 0.04) 0 12px 13px, rgba(0, 0, 0, 0.03) 0 -3px 4px;
}

#mida-group-action-container {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(247, 248, 250, 1);
    position: relative;
}

#mida-device-button {
    height: 34px;
    padding-right: 0.75rem;
    background-color: rgba(255, 255, 255, 1);
    border: none;
    min-width: 6rem;
    min-height: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 -0.0625rem 0 0 #b5b5b5 inset, 0 0 0 0.0625rem rgba(0, 0, 0, 0.1) inset, 0 0.03125rem 0 0.09375rem #FFF inset;
    font-size: 13px;
    font-stretch: 100%;
    font-weight: 550;
    cursor: pointer;
}

#mida-device-button:hover {
    background-color: rgba(250, 250, 250, 1);
}

#mida-screenshot-button {
    font-family: 'Inter', sans-serif;
    padding: 6px 12px 6px 12px;
    font-size: 12px;
    background-color: rgba(146, 254, 194, 1);
    color: rgba(48, 48, 48, 1);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#mida-screenshot-button i {
    margin-right: 8px;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mida-device-popover ,
#mida-popover-main {
    box-shadow: rgba(85, 85, 85, 0.03) 0 54px 55px, rgba(0, 0, 0, 0.03) 0 -12px 30px, rgba(0, 0, 0, 0.03) 0 4px 6px, rgba(0, 0, 0, 0.04) 0 12px 13px, rgba(0, 0, 0, 0.03) 0 -3px 4px;
    border-radius: 1.25rem;
}

#mida-device-popover {
    font-family: 'Inter', sans-serif;
    position: absolute;
    top: 58px;
    margin: 4px 0 0 24px;
    z-index: 4;
}

#mida-popover-main {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 329px;
    width: 329px;
    max-height: 31.25rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 1);
    isolation: isolate;
    padding: 8px 16px;
    margin: -3px;
}

#mida-device-type,
#mida-custom-size-label,
#mida-custom-size-separate {
    font-size: 13px;
    font-weight: 550;
    line-height: 20px;
    color: rgb(48, 48, 48);
}

#mida-device-type,
#mida-custom-size-label {
    padding-bottom: 4px;
}

.mida-input-custom-size {
    border: 1px solid #8A8A8A;
    width: 8rem;
    font-size: 13px;
    font-stretch: 100%;
    font-weight: 550;
    padding: 8px 10px;
    background-color: rgb(255, 255, 255);
    cursor: pointer;
    border-radius: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.mida-input-custom-size:focus-visible {
    outline-offset: unset;
    box-shadow: unset;
    outline: .125rem solid rgba(var(--color-foreground), .5);
}

#mida-device-help-text {
    font-size: 12px;
    font-weight: 450;
    line-height: 20px;
    color: #616161;
    padding-top: 4px;
}

#mida-custom-device-title {
    padding: 0 0 4px 0;
}

#mida-device-type-group {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 0;
    margin-left: 0;
}

#mida-device-type-group button {
    border: none;
    min-width: 7rem;
    min-height: 2rem;
    font-size: 13px;
    font-stretch: 100%;
    font-weight: 550;
    padding: 9px 18px;
    box-shadow: 0 -.125rem 0 0 #b5b5b5 inset, 0 0 0 .125rem rgba(0, 0, 0, .1) inset, 0 .0625rem 0 .09375rem #FFF inset;
    background-color: rgb(255, 255, 255);
    cursor: pointer;
}

#desktop-button {
    border-radius: 0.8rem 0 0 0.8rem;
}

#tablet-button {
    border-radius: 0;
}

#mobile-button {
    border-radius: 0 0.8rem 0.8rem 0;
}

#mida-device-type-group button.pressed {
    background-color: rgba(204, 204, 204, 1);
    color: rgba(48, 48, 48, 1);
    box-shadow: -.125rem 0 .125rem 0 rgba(26, 26, 26, .122) inset, .125rem 0 .0625rem 0 rgba(26, 26, 26, .122) inset, 0 .25rem .125rem 0 rgba(26, 26, 26, .2) inset;
}

#mida-custom-device-type {
    display: flex;
    justify-content: flex-start;
    align-items: end;
}

#mida-custom-size-separate {
    padding: 8px 12px;
}

#modal {
    font-family: 'Inter', sans-serif;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

#modal-content {
    width: 400px;
    height: 137px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-text {
    margin: 5px 0;
}

#modal-content .close-button {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    position: absolute; 
    right: 20px; 
    top: 20px;
}

#modal-content .close-button:hover {
    color: #ddd;
}


#modal-title {
    font-size: 14px;
    color: rgba(48, 48, 48, 1);
    font-weight: 650;
}

#modal-subtitle {
    font-size: 14px;
    color: rgba(97, 97, 97, 1);
    font-weight: 650;
}

#fixedDiv {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(247, 248, 250, 1);
    font-family: 'Inter', sans-serif;
    z-index: 9999999999; 
}

#fixedDivContent {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 450;
}

.body-md-default {
    font-size: 13px;
    font-weight: 450;
    line-height: 20px;
}

.heatmap-button {
    font-size: 12px;
    font-weight: 550;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast {
    background: rgba(229, 28, 0, 1);
    border-radius: 8px;
    visibility: hidden;
    min-width: 214px; 
    height: 44px;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    position: fixed;
    z-index: 1;
    left: 50%; 
    transform: translateX(-50%);
    bottom: 60px;
    font-size: 17px;
    transition: visibility 0.3s ease-in, opacity 0.3s ease-in;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.toast .toast-content {
    flex: 1; 
}

.toast .close-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px; 
}

.toast .close-button:hover {
    color: #ddd;
}

@keyframes scaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
