/* EdgeTX Installer Modal Styles */
.edgetx-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.edgetx-modal-content {
	background: #fff;
	padding: 2em;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.edgetx-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	line-height: 1;
}

.edgetx-modal-close:hover {
	color: #000;
}

.edgetx-modal-header h2 {
	margin-top: 0;
	margin-bottom: 0.25em;
	font-size: 1.5em;
}

.edgetx-package-name {
	font-weight: 600;
	color: #444;
	margin-bottom: 1.5em;
	font-size: 1.1em;
}

.edgetx-step {
	margin-bottom: 1.5em;
}

.edgetx-progress-container {
	background: #eee;
	border-radius: 4px;
	height: 20px;
	width: 100%;
	overflow: hidden;
	margin-bottom: 0.5em;
}

.edgetx-progress-bar {
	background: #007cba;
	height: 100%;
	width: 0%;
	transition: width 0.2s ease;
}

.edgetx-current-file {
	font-size: 0.85em;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 0.5em;
}

.edgetx-validation-status {
	margin-bottom: 1em;
	padding: 10px;
	border-radius: 4px;
}

.edgetx-validation-status.error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	color: #d63638;
}

.edgetx-validation-status.warning {
	background: #fbf5e6;
	border-left: 4px solid #f0b849;
	color: #8a6d3b;
}

.edgetx-validation-status.success {
	background: #edf7ed;
	border-left: 4px solid #46b450;
	color: #2b542c;
}

.edgetx-fallback-link {
	font-size: 0.9em;
	color: #666;
	text-decoration: underline;
}

.edgetx-fallback-link:hover {
	color: #007cba;
}

.edgetx-action-buttons a.button,
.edgetx-action-buttons button.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007cba;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    line-height: normal;
}
.edgetx-action-buttons a.button:hover,
.edgetx-action-buttons button.button:hover {
    background-color: #005a87;
    color: #fff !important;
}
.edgetx-action-buttons .edgetx-install-trigger {
    background-color: #d63638;
}
.edgetx-action-buttons .edgetx-install-trigger:hover {
    background-color: #b32d2e;
}


.edgetx-modal-body { max-height: 60vh; overflow-y: auto; padding-right: 5px; }
.edgetx-modal-body::-webkit-scrollbar { width: 8px; }
.edgetx-modal-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.edgetx-trash-text { display: none; }

@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-downloads tbody tr { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px; margin-bottom: 15px; border: 1px solid #eee; border-radius: 8px; }
    .woocommerce-MyAccount-downloads td { display: block; width: 100%; text-align: center !important; border: none !important; padding: 10px 0 !important; }
    .woocommerce-MyAccount-downloads td::before, .woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { display: none !important; content: none !important; }
    .woocommerce-MyAccount-downloads .download-product > div { flex-direction: column !important; justify-content: center; }
    .woocommerce-MyAccount-downloads .download-product img { margin: 0 auto 10px auto !important; width: 100px !important; height: auto; }
    .edgetx-action-buttons { flex-direction: column !important; width: 100%; gap: 8px !important; }
    .edgetx-action-buttons > div { width: 100%; }
    .edgetx-action-buttons button, .edgetx-action-buttons a.button { width: 100%; box-sizing: border-box; margin: 0 !important; }
    
    .edgetx-action-buttons .edgetx-delete-download { 
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-color: #000 !important; 
        color: #fff !important; 
        border-radius: 4px;
        padding: 10px 15px !important;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 14px;
        text-align: center;
        margin: 0 !important;
    }
    .edgetx-trash-icon { display: none !important; }
    .edgetx-trash-text { display: inline !important; }
}
