/* Dialog Overlay Mask - Full page transparent layer */
.dialog-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dialog-mask.dialog-mask--active {
    opacity: 1;
    visibility: visible;
}

/* Dialog Container - Centered box */
.dialog-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 480px;
    max-width: 90%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dialog-container.dialog-container--active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Dialog Header */
.dialog-header {
    position: relative;
    height: 91px;
    text-align: center;
    border-bottom: 1px solid #f3f3f3;
    background: #fafafa;
    border-radius: 6px 6px 0 0;
}

.dialog-header__img {
    width: 272px;
    height: 91px;
    margin: 0 auto;
}

.dialog-header__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Close Button (X) */
.dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.dialog-close:hover {
    color: #333;
}

/* Dialog Body */
.dialog-body {
    padding: 40px 44px;
    text-align: center;
}

.dialog-body__title {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
    line-height: 30px;
}

.dialog-body__description {
    font-size: 14px;
    color: #666;
    line-height: 22px;
    margin-bottom: 32px;
}

/* Download Button */
.dialog-download-btn {
    display: inline-block;
    width: 270px;
    height: 50px;
    line-height: 50px;
    background-color: #3166E6;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dialog-download-btn:hover {
    background-color: #4C80FF;
}

.dialog-download-btn:active {
    background-color: #2551BB;
}

/* Alternative Outline Button Style */
.dialog-download-btn--outline {
    background-color: #fff;
    border: 1px solid #3166E6;
    color: #3166E6;
}

.dialog-download-btn--outline:hover {
    background-color: #F5F7FE;
}

/* Platform Icons Section */
.dialog-platforms {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dialog-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dialog-platform:hover {
    background-color: #f5f5f5;
}

.dialog-platform__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.dialog-platform__label {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .dialog-container {
        width: 90%;
        padding: 20px;
    }
    
    .dialog-body {
        padding: 24px 20px;
    }
    
    .dialog-download-btn {
        width: 100%;
    }
}

/* Platform Selection Styles */
.dialog-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 2px solid transparent; /* Prepare for selection border */
}

.dialog-platform:hover {
    background-color: #f5f5f5;
}

/* Selected Platform - Thin Border Highlight */
.dialog-platform.dialog-platform--selected {
    border-color: #3166E6;
    background-color: #F5F7FE;
    cursor: default;
}

.dialog-platform.dialog-platform--selected:hover {
    background-color: #F5F7FE;
}

/* Disabled/Greyed Out Platforms */
.dialog-platform.dialog-platform--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.dialog-platform.dialog-platform--disabled:hover {
    background-color: transparent;
}

.dialog-platform--disabled .dialog-platform__icon {
    filter: grayscale(100%);
}

.dialog-platform--disabled .dialog-platform__label {
    color: #999;
}

/* Platform Icon Styling */
.dialog-platform__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    transition: filter 0.2s ease;
}

.dialog-platform__label {
    font-size: 12px;
    color: #666;
    transition: color 0.2s ease;
}
