/* =========================================================
   WC License Manager – Müşteri Tarafı
   ========================================================= */

.wclm-section-wrap {
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.wclm-section {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    font-family: inherit;
}

.wclm-section-title {
    margin: 0;
    padding: 16px 22px;
    background: #1a1a2e;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* ── Info banners ── */
.wclm-info {
    margin: 16px 22px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}
.wclm-info--success { background: #eafaf1; border-left: 4px solid #28a745; color: #1a5c2e; }
.wclm-info--pending { background: #fff8e1; border-left: 4px solid #f0ad4e; color: #7a5000; }
.wclm-info--error   { background: #fdecea; border-left: 4px solid #e53935; color: #7a1010; }

/* ── İndir ── */
.wclm-download-wrap { padding: 4px 22px 18px; }

/* ── Butonlar ── */
.wclm-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, opacity .2s;
    line-height: 1;
}
.wclm-btn--download {
    background: #1a1a2e;
    color: #fff !important;
}
.wclm-btn--download:hover { background: #2d2d4e; }

.wclm-section .wclm-btn--submit,
.wclm-section button.wclm-btn--submit,
button.wclm-btn--submit {
    background: #111111 !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 14px;
    padding: 13px 32px;
    font-size: 15px;
    letter-spacing: .3px;
    opacity: 1 !important;
    filter: none !important;
}
.wclm-section .wclm-btn--submit:hover,
button.wclm-btn--submit:hover {
    background: #333333 !important;
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* ── Divider ── */
.wclm-divider { margin: 4px 0; border: none; border-top: 1px solid #e8e8e8; }

/* ── Form wrap ── */
.wclm-hw-form-wrap {
    padding: 20px 22px 26px;
}
.wclm-hw-form-wrap h3 { margin: 0 0 6px; font-size: 16px; color: #1a1a2e; }
.wclm-desc { font-size: 13px; color: #666; margin: 0 0 18px; }

/* ── Alanlar ── */
.wclm-field {
    margin-bottom: 18px;
}
.wclm-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.wclm-required { color: #e53935; }

/* ── Radio grupları ── */
.wclm-section .wclm-radio-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.wclm-section .wclm-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: #333 !important;
    background: #fff !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    user-select: none;
}
.wclm-section .wclm-radio-label:hover {
    border-color: #1a1a2e !important;
    background: #f9f9ff !important;
}
.wclm-section .wclm-radio-label input[type="radio"] {
    accent-color: #1a1a2e !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}
.wclm-section .wclm-radio-label:has(input:checked) {
    border-color: #1a1a2e !important;
    background: #f0f0ff !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
}

/* ── Textarea ── */
.wclm-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    background: #fafafa;
    transition: border-color .15s;
}
.wclm-textarea:focus {
    outline: none;
    border-color: #1a1a2e;
    background: #fff;
}

/* ── History ── */
.wclm-history {
    background: #f9f9f9;
    border-top: 1px solid #e8e8e8;
    padding: 18px 22px 22px;
}
.wclm-history h3 { margin: 0 0 14px; font-size: 15px; color: #222; }

.wclm-history-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.wclm-history-meta {
    background: #f0f0f0;
    padding: 8px 12px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.wclm-history-tag {
    background: #1a1a2e;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.wclm-history-code {
    margin: 0;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    color: #333;
    background: #fff;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 160px;
    overflow-y: auto;
}

/* ── Sipariş listesi – Lisansı İndir butonu ── */
.woocommerce-orders-table .wclm_download a,
.woocommerce a.button.wclm_download {
    background-color: #1a1a2e !important;
    color: #fff !important;
    border-color: #1a1a2e !important;
    font-size: 12px;
    padding: 6px 12px;
}
.woocommerce-orders-table .wclm_download a:hover,
.woocommerce a.button.wclm_download:hover {
    background-color: #2d2d4e !important;
    color: #fff !important;
}
