/*
 * web-vision GmbH
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to https://www.web-vision.de for more information.
 * @category    Extendware
 * @copyright   Copyright (c) 2001-2025 web-vision GmbH (https://www.web-vision.de)
 * @author      Bushra Asif <bushra@web-vision.de>
 */
.deepl-tabs {
    margin-bottom: 1em;
}

.deepl-tab-header {
    list-style: none;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.5em;
}

/*.deepl-tab-link { padding: 0.5em 1em; cursor: pointer; background: #f7f7f7; margin-right: 2px; border: 1px solid #ccc; border-bottom: none; }*/
.deepl-tab-link.active {
    background: #fff;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}

.deepl-tab-content {
    display: none;
}

.deepl-tab-content .tab-desc {
    margin: 0 0 22px 0;
    color: #8c4601;
    padding: 8px 16px 8px 0;
}
.deepl-tab-header li {
    margin-right: 2px;
}
.deepl-tab-link {
    background: #f7f7f7;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}
.deepl-option-btn:hover {
    background-color: #eb5202;
    color: #fff;
    border: 1px solid #eb5202;
}
.deepl-option-btn {
    padding: 0.5em 1em;
    border: 1px solid #eb5202;
    border-radius: 3px;
    cursor: pointer;
    background: #fafafa;
}
.deepl-tab-content.active {
    display: block;
}
.deepl-option-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5em;
    margin: 0.5em 0;
}

.deepl-option-btn {
    padding: 0.5em 1em;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    background: #fafafa;
}

.deepl-option-btn.active, .deepl-option-btn[data-selected="1"] {
    background: #eb5202;
    color: #fff;
    border: 1px solid #eb5202;
}

.deepl-tab-link {
    background: #f7f7f7;
    border: 1px solid #ccc;
    cursor: pointer;
}

#deepl-rephrase-modal .deepl-modal-heading {
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
    color: #eb5202;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #fff4ed 0, #fff 100%);
}

#deepl-rephrase-modal .deepl-info-row {
    margin: 12px 0 22px 0;
    color: #8c4601;
    padding: 8px 16px 8px 0;
}

#deepl-rephrase-modal label {
    font-weight: bold;
    margin-bottom: 2px;
}

/* Textareas/Fields Row */
#deepl-rephrase-modal .deepl-fields-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
}

#deepl-rephrase-modal .deepl-field-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

#deepl-rephrase-modal textarea {
    width: 100%;
    height: 100%;
    min-height: 350px;
    font-family: inherit;
    padding: 12px;
    box-sizing: border-box;
    resize: none;
    background: #f8fafc;
    border: 1px solid #bfcbd9;
    border-radius: 4px;
    margin-top: 6px;
    color: #212529;
}

.deepl-modal-footer {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 14px 0 10px 0;
    z-index: 10;
    border-top: 1.5px solid #ffd4b7;
    margin-bottom: 0;
}

/* Buttons (Magento Orange) */
#deepl-rephrase-modal .action-primary {
    background: linear-gradient(90deg, #eb5202 60%, #faad7b 100%);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 28px;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(235, 82, 2, 0.09);
    transition: background .18s, box-shadow .18s;
    margin-right: 7px;
}

#deepl-rephrase-modal .action-primary:hover {
    background: linear-gradient(90deg, #bc4000 60%, #fd994c 100%);
    box-shadow: 0 3px 8px 0 rgba(235, 82, 2, 0.15);
}

#deepl-rephrase-modal .action-secondary {
    background: #f7f7f9;
    color: #333 !important;
    border: 1.5px solid #ffd4b7;
    border-radius: 6px;
    font-weight: 600;
    padding: 8px 22px;
    cursor: pointer;
    margin-right: 7px;
    transition: background .16s, border .16s;
}

#deepl-rephrase-modal .action-secondary:hover {
    background: #ffe3c6;
    border-color: #eb5202;
}

.message-warning.deepl {
    background: #fff8e6;
    color: #d48600;
    border: 1.5px solid #ffe2b3;
    padding: 18px 28px;
    border-radius: 8px;
    margin: 25px 0 18px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

#deepl-rephrase-spinner {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.75);
    justify-content: center;
    align-items: center;
}

#deepl-rephrase-spinner .deepl-spinner-icon {
    border: 5px solid #ffd4b7;
    border-top: 5px solid #eb5202;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 900px) {
    #deepl-rephrase-modal .deepl-fields-row {
        flex-direction: column;
        gap: 10px;
    }

    .deepl-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .deepl-option-group {
        grid-template-columns: repeat(2, 1fr);
    }
}
