/* Deakee Codes — WooCommerce Admin Styles */

.deakee-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 -20px;
    min-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.deakee-header {
    background: #1a7a5e;
    color: white;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.deakee-logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deakee-badge {
    background: rgba(255,255,255,.2);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Body layout ─────────────────────────────────────────────────────────── */
.deakee-body {
    display: flex;
    flex: 1;
    min-height: 600px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.deakee-sidebar {
    flex: 0 0 320px;
    background: #1a1a2e;
    color: white;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.deakee-sidebar h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: white;
    border: none;
}

.deakee-sidebar p {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin: 0 0 28px;
}

.deakee-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.deakee-stat {
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 14px 10px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deakee-stat .num {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
}

.deakee-stat .label {
    font-size: 10px;
    color: rgba(255,255,255,.5);
}

.deakee-how h3 {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 14px;
    border: none;
}

.deakee-how ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deakee-how li {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
}

/* ── Main card area ──────────────────────────────────────────────────────── */
.deakee-main {
    flex: 1;
    padding: 40px 48px;
    display: flex;
    align-items: flex-start;
    background: #f6f6f7;
}

.deakee-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    width: 100%;
    max-width: 620px;
}

.deakee-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1a1a2e;
    border: none;
    padding: 0;
}

.deakee-subtitle {
    color: #6d7175;
    font-size: 13px;
    margin: 0 0 28px;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.deakee-field {
    margin-bottom: 20px;
}

.deakee-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #202223;
    margin-bottom: 6px;
}

.deakee-hint-inline {
    font-weight: 400;
    color: #6d7175;
}

.deakee-field input[type="text"],
.deakee-field input[type="url"],
.deakee-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}

.deakee-field input:focus,
.deakee-field textarea:focus {
    border-color: #008060;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,128,96,.15);
}

.deakee-field textarea {
    min-height: 80px;
    resize: vertical;
}

.deakee-hint {
    font-size: 12px;
    color: #8c9196;
    margin: 4px 0 0;
}

/* ── Two-column / three-column field rows ────────────────────────────────── */
.deakee-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

.deakee-field-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.deakee-field-row .deakee-field,
.deakee-field-row3 .deakee-field {
    margin-bottom: 0;
}

/* ── Coupon cards (Step 2) ───────────────────────────────────────────────── */
.deakee-coupon-card {
    border: 1px solid #e1e3e5;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.deakee-coupon-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.deakee-coupon-card-head strong {
    font-size: 14px;
    color: #202223;
}

.deakee-btn-remove {
    background: none;
    border: none;
    color: #d72c0d;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    padding: 0;
}

.deakee-btn-remove:hover {
    text-decoration: underline;
}

/* ── Approved badge ──────────────────────────────────────────────────────── */
.deakee-approved-badge {
    display: inline-block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    margin-bottom: 18px;
}

/* ── Category select ─────────────────────────────────────────────────────── */
.deakee-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9cccf;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}

.deakee-field select:focus {
    border-color: #008060;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,128,96,.15);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.deakee-btn-primary {
    display: inline-block;
    background: #008060;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.deakee-btn-primary:hover {
    background: #006e52;
    color: white !important;
}

.deakee-btn-full {
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.deakee-btn-add {
    background: none;
    border: 1.5px dashed #c9cccf;
    border-radius: 8px;
    padding: 9px;
    width: 100%;
    cursor: pointer;
    color: #2c6ecb;
    font-size: 13px;
    margin-top: 4px;
    font-family: inherit;
    transition: border-color .15s;
}

.deakee-btn-add:hover {
    border-color: #2c6ecb;
    background: #f0f6ff;
}

/* ── Message ─────────────────────────────────────────────────────────────── */
.deakee-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}

.deakee-message.error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.deakee-message.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* ── Pending state ───────────────────────────────────────────────────────── */
.deakee-pending {
    text-align: center;
}

.deakee-pending h2 {
    color: #92400e !important;
    font-size: 22px;
    margin-bottom: 8px;
}

.deakee-pending p {
    color: #6d7175;
    margin-bottom: 20px;
}

.deakee-pending-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 20px;
}

.deakee-pending-box strong {
    display: block;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 10px;
}

.deakee-pending-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deakee-pending-box li {
    font-size: 13px;
    color: #78350f;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.deakee-success {
    text-align: center;
}

.deakee-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.deakee-success h2 {
    color: #008060 !important;
    font-size: 22px;
    margin-bottom: 8px;
}

.deakee-success p {
    color: #6d7175;
    margin-bottom: 20px;
}

.deakee-url-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

.deakee-url-box a {
    color: #166534;
    text-decoration: none;
    word-break: break-all;
}

.deakee-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    font-size: 12px;
    color: #8c9196;
    flex-wrap: wrap;
}

.deakee-success hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.deakee-remove-note {
    font-size: 13px;
    color: #6d7175;
    margin: 0;
}

.deakee-remove-note a {
    color: #2c6ecb;
}

/* ── Partner bundle promo box ──────────────────────────────────────────────── */
.deakee-bundle-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0f7ff;
    border: 1px solid #b3d4f5;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0 20px;
    font-size: 13px;
    color: #1a3a5c;
    line-height: 1.5;
}
.deakee-bundle-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
