/* ── WooCommerce Prescription Upload v2.0 — Styles ── */

/* ── Product Page Notice ── */
.wcp-product-notice {
    background: #fff8e1;
    border-left: 4px solid #e6a817;
    padding: 12px 16px;
    margin: 0 0 18px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #5c4a00;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wcp-rx-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22A39F;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: Georgia, serif;
    margin-top: 1px;
}

/* ── Cart Page: Prescription Box ── */
.wcp-prescription-box {
    background: #f7fbff;
    border: 1.5px solid #2471a3;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 32px 0 24px;
}

.wcp-box-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d4e6f1;
}

.wcp-box-header .wcp-icon {
    font-size: 28px;
    line-height: 1;
    margin-top: 2px;
}

.wcp-box-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    color: #1a4a6e;
}

.wcp-box-header p {
    margin: 0;
    font-size: 13px;
    color: #4a6b82;
    line-height: 1.5;
}

/* Each product row */
.wcp-product-row {
    background: #fff;
    border: 1px solid #d6eaf8;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.wcp-product-row:last-of-type {
    margin-bottom: 0;
}

.wcp-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcp-rx-badge {
    display: inline-block;
    background: #1a5276;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Uploaded state */
.wcp-uploaded-state { display: flex; flex-direction: column; gap: 8px; }

.wcp-success-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wcp-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.wcp-ok {
    background: #d5f5e3;
    color: #1a6b3c;
    border: 1px solid #a9dfbf;
}

.wcp-pending {
    background: #fef9e7;
    color: #9a7d0a;
    border: 1px solid #f9e79f;
}

.wcp-filename {
    font-size: 12px;
    color: #7f8c8d;
    font-family: monospace;
    background: #f4f6f7;
    padding: 3px 8px;
    border-radius: 4px;
    word-break: break-all;
}

.wcp-remove-btn {
    background: none;
    border: 1px solid #e74c3c;
    color: #c0392b;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.15s;
    font-weight: 500;
}

.wcp-remove-btn:hover {
    background: #fde8e8;
    border-color: #c0392b;
}

/* Upload area */
.wcp-upload-area { display: flex; flex-direction: column; gap: 10px; }

.wcp-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wcp-file-btn {
    background: #eaf4fb;
    border: 1px solid #aed6f1;
    color: #1a5276;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
}

.wcp-file-label:hover .wcp-file-btn { background: #d4e6f1; }

input[type="file"].wcp-file-input { display: none; }

.wcp-file-name-display {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
}

.wcp-file-name-display.has-file {
    color: #1a5276;
    font-style: normal;
    font-weight: 500;
}

.wcp-upload-btn {
    align-self: flex-start;
    background: #1a5276 !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 22px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
    letter-spacing: 0.2px;
}

.wcp-upload-btn:hover { background: #154360 !important; }
.wcp-upload-btn:disabled { background: #aab7c4 !important; cursor: not-allowed !important; }

.wcp-hint {
    font-size: 12px;
    color: #95a5a6;
    margin: 0;
    line-height: 1.4;
}

/* Progress bar */
.wcp-progress {
    width: 100%;
    height: 5px;
    background: #d6eaf8;
    border-radius: 4px;
    overflow: hidden;
}

.wcp-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a5276, #2980b9);
    border-radius: 4px;
    transition: width 0.25s ease;
}

/* Inline messages */
.wcp-msg-area { margin-top: 8px; }

.wcp-msg {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.wcp-msg-success { background: #d5f5e3; color: #1a6b3c; border: 1px solid #a9dfbf; }
.wcp-msg-error   { background: #fde8e8; color: #922b21; border: 1px solid #f5b7b1; }

/* ── Checkout Page: Prescription Summary Box ── */
.wcp-checkout-box {
    background: #f7fbff;
    border: 1.5px solid #2471a3;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 0 0 20px;
}

.wcp-checkout-header {
    font-size: 14px;
    font-weight: 700;
    color: #1a4a6e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4e6f1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12px;
}

.wcp-checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eaf2f8;
    font-size: 13px;
}

.wcp-checkout-item:last-of-type { border-bottom: none; }

.wcp-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a6b3c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.wcp-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.wcp-checkout-item strong { font-size: 14px; color: #1a252f; }
.wcp-checkout-item small  { color: #7f8c8d; line-height: 1.4; }
.wcp-checkout-item a      { color: #2980b9; }

/* Confirmation checkbox */
.wcp-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d4e6f1;
    cursor: pointer;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.5;
}

.wcp-confirm-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #1a5276;
    cursor: pointer;
}

/* ── Admin Order Page ── */
.wcp-admin-prescription {
    margin-top: 8px;
    padding: 8px 12px;
    background: #eaf4fb;
    border-left: 3px solid #2471a3;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
}

.wcp-admin-prescription a.button { margin-left: 8px; font-size: 12px; }

/* ── Shop / Archive / Home — Rx Badge ── */
.wcp-shop-badge-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9;
}

.wcp-shop-rx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22A39F;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    font-family: Georgia, serif;
}
