/* UP Excise Letter Template - Frontend v4.3 */
.upelt-wrap,
.upelt-wrap * {
    box-sizing: border-box;
}

.upelt-wrap [hidden] {
    display: none !important;
}

.upelt-wrap {
    max-width: 1080px;
    margin: 20px auto;
    padding: 28px 34px;
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

.upelt-title {
    margin: 0 0 26px 0;
    padding: 0;
    color: #111 !important;
    background: transparent !important;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
}

.upelt-section-list {
    display: block;
    margin: 0 0 26px 0;
}

.upelt-section-btn,
.upelt-main-clear-btn,
.upelt-section-btn:visited,
.upelt-main-clear-btn:visited,
.upelt-section-btn:focus,
.upelt-main-clear-btn:focus,
.upelt-section-btn:hover,
.upelt-main-clear-btn:hover,
.upelt-section-btn.upelt-selected,
.upelt-section-btn[aria-pressed="true"] {
    display: block !important;
    width: 100% !important;
    min-height: 82px;
    margin: 0 0 16px 0 !important;
    padding: 18px 28px !important;
    text-align: left !important;
    border: 1px solid #222 !important;
    border-radius: 6px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    font-size: 27px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    appearance: none;
    -webkit-appearance: none;
}

.upelt-section-btn span,
.upelt-main-clear-btn span {
    display: inline-block;
    min-width: 54px;
    color: #111 !important;
}

.upelt-section-btn:focus-visible,
.upelt-main-clear-btn:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 2px;
}

.upelt-panel,
.upelt-output {
    margin-top: 22px;
    padding: 22px 28px;
    border: 1px solid #e2e2e2;
    background: #fff;
}

.upelt-panel h3,
.upelt-output h3 {
    margin: 0 0 18px 0;
    color: #111 !important;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.upelt-subject-btn,
.upelt-template-btn,
.upelt-subject-btn:hover,
.upelt-template-btn:hover,
.upelt-subject-btn:focus,
.upelt-template-btn:focus,
.upelt-subject-btn.upelt-selected,
.upelt-template-btn.upelt-selected {
    display: block !important;
    width: 100% !important;
    min-height: 58px;
    margin: 0 0 12px 0 !important;
    padding: 14px 20px !important;
    border: 1px solid #222 !important;
    border-radius: 5px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: left !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    appearance: none;
    -webkit-appearance: none;
}

.upelt-empty {
    color: #555;
    font-size: 16px;
    margin: 4px 0 0 0;
}

.upelt-editor {
    min-height: 420px;
    padding: 28px 32px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #111;
    overflow: auto;
    font-family: Mangal, "Nirmala UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
}

.upelt-editor:focus {
    outline: 1px solid #111;
}

.upelt-editor table {
    border-collapse: collapse;
    max-width: 100%;
}

.upelt-editor td,
.upelt-editor th {
    border: 1px solid #222;
    padding: 4px 6px;
}

.upelt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.upelt-copy-btn,
.upelt-copy-btn:hover,
.upelt-copy-btn:focus,
.upelt-clear-btn,
.upelt-clear-btn:hover,
.upelt-clear-btn:focus {
    display: inline-block;
    margin-top: 0;
    padding: 10px 18px;
    border: 1px solid #111 !important;
    border-radius: 4px;
    background: #fff !important;
    color: #111 !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.upelt-copy-note {
    display: inline-block;
    margin-left: 0;
    color: #111;
    font-size: 14px;
}

@media (max-width: 700px) {
    .upelt-wrap {
        padding: 18px;
    }
    .upelt-title {
        font-size: 26px;
    }
    .upelt-section-btn,
    .upelt-main-clear-btn,
    .upelt-section-btn:hover,
    .upelt-main-clear-btn:hover,
    .upelt-section-btn:focus,
    .upelt-main-clear-btn:focus,
    .upelt-section-btn.upelt-selected {
        font-size: 22px !important;
        min-height: 70px;
    }
    .upelt-panel,
    .upelt-output {
        padding: 18px;
    }
    .upelt-editor {
        padding: 16px;
    }
}

.upelt-top-actions {
    margin: -10px 0 18px 0;
    text-align: right;
}

.upelt-top-actions .upelt-clear-btn {
    min-width: 110px;
}


/* Always-visible Clear button v3.9 */
.upelt-clear-zone { display:block !important; visibility:visible !important; opacity:1 !important; margin:4px 0 22px 0 !important; }
.upelt-clear-main,
.upelt-clear-main:hover,
.upelt-clear-main:focus {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    min-height:52px !important;
    padding:12px 18px !important;
    border:1px solid #111 !important;
    background:#fff !important;
    color:#111 !important;
    font-size:18px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
    text-align:center !important;
    cursor:pointer !important;
    box-shadow:none !important;
}

/* Always-visible Clear div fallback v4.0 */
.upelt-reset-top,
.upelt-visible-clear {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #fff !important;
    color: #111 !important;
    border-color: #111 !important;
}
.upelt-reset-top:hover,
.upelt-reset-top:focus,
.upelt-visible-clear:hover,
.upelt-visible-clear:focus {
    background: #fff !important;
    color: #111 !important;
    outline: 2px solid #111 !important;
}


/* Main Clear option v4.1 */
.upelt-wrap .upelt-main-clear-btn {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    min-height:82px !important;
    margin:0 0 16px 0 !important;
    padding:18px 28px !important;
    text-align:left !important;
    border:1px solid #222 !important;
    border-radius:6px !important;
    background:#fff !important;
    color:#111 !important;
    font-size:27px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
    cursor:pointer !important;
    box-shadow:none !important;
}
