/*
Theme Name: Viking Cloud Payment Portal
Theme URI: https://vikingcloud.com
Author: Viking Cloud
Author URI: https://vikingcloud.com
Description: Combined stylesheet — Viking Cloud Payment Portal WordPress theme +
             One-Time Payment Portal invoice form. Built on the Viking Cloud component
             design system. Includes WooCommerce support for order confirmation pages.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 7.4
License: Proprietary
License URI: https://vikingcloud.com/license
Text Domain: vc-payment-theme
WC tested up to: 10.7.0
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES — Viking Cloud Design Tokens
   ========================================================================== */

:root {
    /* Text */
    --vc-text-primary:   #171B2B;
    --vc-text-secondary: #4F525F;
    --vc-text-accent:    #0C72B0;
    --vc-text-error:     #B52117;

    /* Background */
    --vc-bg-white:     #FFFFFF;
    --vc-bg-grey:      #F7F8FC;
    --vc-bg-dark-grey: #0C72B0;

    /* Buttons */
/*     --vc-btn-primary-fill:      linear-gradient(90deg, #23569A, #037DB8); */
	--vc-btn-primary-fill:      #A6145E;
    --vc-btn-primary-label:     #FFFFFF;
    --vc-btn-secondary-stroke:  #A6145E;
    --vc-btn-secondary-label:   #A6145E;

    /* Icons */
    --vc-icon-primary:         #0C72B0;
    --vc-icon-neutral:         #171B2B;
    --vc-icon-neutral-reverse: #FFFFFF;
    --vc-icon-warning:         #B77F10;
    --vc-icon-success:         #01692C;
    --vc-icon-error:           #B52117;

    /* Alerts */
    --vc-alert-success-surface: #E6FEF4;
    --vc-alert-success-stroke:  #01692C;
    --vc-alert-warning-surface: #FEFACB;
    --vc-alert-warning-stroke:  #B77F10;
    --vc-alert-error-surface:   #FFEBED;

    /* Badge */
    --vc-badge-success-surface: #E6FEF4;
    --vc-badge-success-stroke:  #01692C;
    --vc-badge-neutral-surface: #F2F3F7;
    --vc-badge-neutral-stroke:  #9092AD;

    /* Borders */
    --vc-border-low:    #E4E6F0;
    --vc-border-medium: #9092AD;
    --vc-border-accent: #0C72B0;

    /* Spacing */
    --vc-space-4:  4px;
    --vc-space-8:  8px;
    --vc-space-12: 12px;
    --vc-space-16: 16px;
    --vc-space-24: 24px;
    --vc-space-32: 32px;
    --vc-space-40: 40px;

    /* Radii */
    --vc-radius-8:  8px;
    --vc-radius-12: 12px;
    --vc-radius-16: 16px;
    --vc-radius-30: 30px;

    /* Typography */
    --vc-font-family: Arial, Helvetica, sans-serif;

    /* ── Invoice portal shorthand aliases (used in the standalone HTML form) ── */
    --text-primary:   var(--vc-text-primary);
    --text-secondary: var(--vc-text-secondary);
    --text-accent:    var(--vc-text-accent);
    --text-error:     var(--vc-text-error);

    --bg-white: var(--vc-bg-white);
    --bg-grey:  var(--vc-bg-grey);

    --btn-primary-bg:    var(--vc-btn-primary-fill);
    --btn-primary-label: var(--vc-btn-primary-label);

    --border-low:    var(--vc-border-low);
    --border-mid:    var(--vc-border-medium);
    --border-accent: var(--vc-border-accent);

    --radius-sm:   var(--vc-radius-8);
    --radius-md:   var(--vc-radius-12);
    --radius-pill: var(--vc-radius-30);

    --font: var(--vc-font-family);
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--vc-font-family);
    font-size: 14px;
    line-height: 20px;
    color: var(--vc-text-primary);
    background-color: var(--vc-bg-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--vc-text-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.vc-display-large {
    font-family: var(--vc-font-family);
    font-size: 34px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.34px;
    color: var(--vc-text-primary);
}

h1, .vc-h1 {
    font-family: var(--vc-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0;
    color: var(--vc-text-primary);
}

h2, .vc-h2 {
    font-family: var(--vc-font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0;
    color: var(--vc-text-primary);
}

.vc-label-large {
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
}

.vc-body-medium {
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
}

.vc-body-small {
    font-family: var(--vc-font-family);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
}


/* ==========================================================================
   LAYOUT — Page wrapper
   ========================================================================== */

.vc-site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--vc-bg-grey);
}

.vc-site-header {
    text-align: center;
    padding: var(--vc-space-24) var(--vc-space-16);
    background-color: var(--vc-bg-grey);
}

.vc-site-header img {
    margin: 0 auto;
    max-height: 44px;
}

.vc-site-main {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--vc-space-16) var(--vc-space-40);
}

.vc-site-footer {
    background-color: var(--vc-bg-white);
    border-top: 1px solid var(--vc-border-low);
    padding: var(--vc-space-24) var(--vc-space-16);
}

.vc-footer-inner {
    max-width: 100%;
    margin: 0 auto;
}

.vc-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-12);
}

.vc-footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    font-size: 14px;
    color: var(--vc-text-secondary);
}

.vc-footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--vc-space-8);
}

.vc-footer-contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--vc-icon-primary);
}


/* ==========================================================================
   MAIN CONTAINER (white card for forms / content)
   ========================================================================== */

.vc-main-container {
    background-color: var(--vc-bg-white);
    border-radius: var(--vc-radius-12);
    padding: var(--vc-space-24);
}

.vc-small-container {
    background-color: var(--vc-bg-grey);
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vc-space-8);
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
/*     border-radius: var(--vc-radius-30); */
	border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
}

.vc-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.vc-btn:active {
    transform: scale(0.98);
}

/* Primary — 40px height */
.vc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
/*     padding: var(--vc-space-8) var(--vc-space-24); */
	padding: 16px 24px;
    background: var(--vc-btn-primary-fill);
    color: var(--vc-btn-primary-label);
    border: none;
/*     border-radius: var(--vc-radius-30); */
	border-radius:3px;
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
    margin-bottom: var(--vc-space-16);
}

.vc-btn-primary:hover {
	background: #7B0642;
/*     opacity: 0.9; */
    text-decoration: none;
}

.vc-btn-primary:active {
    transform: scale(0.98);
}

/* Primary — 32px height */
.vc-btn-primary-sm {
    height: 32px;
    padding: 3px var(--vc-space-16);
    background: var(--vc-btn-primary-fill);
    color: var(--vc-btn-primary-label);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.vc-btn-secondary:hover{
	background:#7B0642;
	color:#FFFFFF;
}

/* Secondary — 40px */
.vc-btn-secondary {
    height: 40px;
    padding: var(--vc-space-8) var(--vc-space-16);
    background: transparent;
    border: 1px solid var(--vc-btn-secondary-stroke);
    color: var(--vc-btn-secondary-label);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Secondary — 32px */
.vc-btn-secondary-sm {
    height: 32px;
    padding: 3px var(--vc-space-16);
    background: transparent;
    border: 1px solid var(--vc-btn-secondary-stroke);
    color: var(--vc-btn-secondary-label);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Outline button (invoice portal) */
.vc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 var(--vc-space-16);
    background: transparent;
    border: 1.5px solid var(--vc-border-accent);
    border-radius: var(--vc-radius-30);
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-accent);
    cursor: pointer;
    margin-top: var(--vc-space-8);
    transition: background 0.15s ease;
}

.vc-btn-outline:hover {
    background: rgba(12, 114, 176, 0.05);
}

/* Loading state */
.vc-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.vc-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    right: 16px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vc-spin 0.6s linear infinite;
}

@keyframes vc-spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

/* ── Standard (non-floating) label ──────────────────────────────────────── */
.vc-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-4);
}

/* ── Floating label field wrapper ───────────────────────────────────────── */
/*
 * The invoice portal uses a floating-label pattern where .vc-label sits
 * INSIDE .vc-field as an absolutely-positioned element. The WP theme uses
 * .vc-label as a normal block label. Both patterns coexist safely because
 * the floating behaviour only activates when .vc-label is a sibling of
 * .vc-input inside a .vc-field wrapper.
 */
.vc-field {
    position: relative;
    width: 100%;
}

/* When used as a floating label (input + label inside .vc-field) */
.vc-field .vc-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;               /* lighter weight while floating */
    font-size: 14px;
    color: var(--vc-text-secondary);
    pointer-events: none;
    transition: top 0.18s ease, transform 0.18s ease, font-size 0.18s ease;
    line-height: 1;
    background: transparent;
    margin-bottom: 0;               /* reset block margin */
    display: block;                 /* keep display:block but behave as absolute */
}

/* Label floats up when the paired input is active or has a value */
.vc-field .vc-input:focus + .vc-label,
.vc-field .vc-input:not(:placeholder-shown) + .vc-label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: var(--vc-text-secondary);
}

/* ── Input ──────────────────────────────────────────────────────────────── */
.vc-input {
    width: 100%;
    height: 50px;
    padding: 0 var(--vc-space-16);
    font-family: var(--vc-font-family);
    font-size: 14px;
    line-height: 20px;
    color: var(--vc-text-primary);
    background-color: var(--vc-bg-white);
    border: 1px solid var(--vc-border-medium);  /* mid-weight border matches form */
    border-radius: var(--vc-radius-8);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease, padding 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.vc-input::placeholder {
    color: var(--vc-text-secondary);
}

/* Shift text down to make room for floating label when active/filled */
.vc-field .vc-input:focus,
.vc-field .vc-input:not(:placeholder-shown) {
    padding-top: 18px;
    padding-bottom: 4px;
}

.vc-input:focus {
    outline: none;
    border: 2px solid var(--vc-border-accent);
    padding-left: 15px;
    padding-right: 15px;
    background-color: var(--vc-bg-grey);
    box-shadow: 0 0 0 2px rgba(12, 114, 176, 0.12);
}

.vc-input.is-error {
    border-color: var(--vc-text-error);
}

/* Textarea overrides */
textarea.vc-input {
    width: 100%;
    height: auto;
    min-height: 90px;
    padding: var(--vc-space-16);
    resize: vertical;
}

textarea.vc-input:focus,
textarea.vc-input:not(:placeholder-shown) {
    padding-top: var(--vc-space-16); /* keep top padding consistent for textareas */
}

/* ── Standalone textarea (note textarea in invoice rows) ─────────────────── */
.vc-note-textarea {
    width: 100%;
    height: 80px;
    padding: var(--vc-space-12) var(--vc-space-16);
    font-family: var(--vc-font-family);
    font-size: 14px;
    color: var(--vc-text-primary);
    background-color: var(--vc-bg-white);
    border: 1px solid var(--vc-border-medium);
    border-radius: var(--vc-radius-8);
    outline: none;
    resize: vertical;
    transition: border 0.18s ease;
}

.vc-note-textarea:focus {
    border: 2px solid var(--vc-border-accent);
    background-color: var(--vc-bg-grey);
}

/* ── Form group ─────────────────────────────────────────────────────────── */
.vc-form-group {
    margin-bottom: var(--vc-space-16);
}

/* ── Field error text ───────────────────────────────────────────────────── */
.vc-field-error {
    display: block;
    font-size: 12px;
    color: var(--vc-text-error);
    margin-top: var(--vc-space-4);
    min-height: 0;
}


/* ==========================================================================
   ALERTS
   ========================================================================== */

.vc-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--vc-space-16);
    padding: var(--vc-space-16);
    border-radius: var(--vc-radius-8);
    font-size: 14px;
    line-height: 20px;
}

.vc-alert-success {
    background-color: var(--vc-alert-success-surface);
    color: var(--vc-alert-success-stroke);
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    font-size: 14px;
    margin-top: var(--vc-space-12);
}

.vc-alert-warning {
    background-color: var(--vc-alert-warning-surface);
    color: var(--vc-alert-warning-stroke);
}

.vc-alert-error {
    background-color: var(--vc-alert-error-surface);
    color: var(--vc-text-error);
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    font-size: 14px;
    margin-top: var(--vc-space-12);
}

.vc-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.vc-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1;
}


/* ==========================================================================
   BADGE
   ========================================================================== */

.vc-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--vc-space-12);
    border-radius: var(--vc-radius-16);
    font-size: 12px;
    font-weight: 700;
}

.vc-badge-success {
    background-color: var(--vc-badge-success-surface);
    color: var(--vc-badge-success-stroke);
}

.vc-badge-neutral {
    background-color: var(--vc-badge-neutral-surface);
    color: var(--vc-badge-neutral-stroke);
}


/* ==========================================================================
   CHECKBOX
   ========================================================================== */

.vc-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--vc-space-8);
}

.vc-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--vc-text-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.vc-checkbox-group label {
    font-size: 14px;
    line-height: 20px;
    color: var(--vc-text-primary);
    cursor: pointer;
}

/* ── Terms checkbox (invoice portal variant) ─────────────────────────────── */
.vc-terms-group {
    margin-bottom: 20px;
}

.vc-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--vc-space-8);
    cursor: pointer;
}

.vc-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vc-text-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.vc-checkbox-text {
    font-size: 14px;
    color: var(--vc-text-primary);
}

.vc-link {
    color: var(--vc-text-accent);
    text-decoration: none;
}

.vc-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   INVOICE PORTAL — Sections & grid
   ========================================================================== */

/* Hero */
.vc-portal-hero {
    text-align: center;
    margin-bottom: var(--vc-space-24);
}

.vc-portal-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-8);
}

.vc-portal-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--vc-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--vc-space-24);
}

/* Section */
.vc-portal-section {
    margin-bottom: var(--vc-space-24);
}

.vc-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-12);
}

.vc-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-12);
}

/* Contact 2×2 grid */
.vc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vc-space-12);
}

/* Invoice row */
.vc-invoice-row {
    margin-bottom: var(--vc-space-16);
    background-color: var(--vc-bg-white);
    border-radius: var(--vc-radius-8);
}

.vc-invoice-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--vc-space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-text-error);
    transition: opacity 0.2s ease;
}

.vc-invoice-delete svg {
    width: 20px;
    height: 20px;
}

.vc-invoice-delete:hover {
    opacity: 0.7;
}

.vc-invoice-delete:hover svg path {
    fill: #0C72B0;
}

.vc-invoice-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--vc-space-12);
    align-items: flex-end;
}

.vc-invoice-row:first-child .vc-invoice-fields {
    grid-template-columns: 1fr 1fr;
}

/* Note section */
.vc-note-section {
    display: flex;
    flex-direction: column;
    gap: var(--vc-space-8);
    margin-top: var(--vc-space-12);
}

.vc-note-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-accent);
    padding: 0;
    text-align: left;
    width: fit-content;
}

.vc-note-toggle:hover {
    opacity: 0.8;
}

/* Total section */
.vc-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--vc-bg-grey);
    padding: var(--vc-space-24);
    margin-bottom: 20px;
	margin-top: 20px;
    border-radius: var(--vc-radius-12);
}

.vc-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: 2px;
}

.vc-total-count {
    font-size: 14px;
    color: var(--vc-text-secondary);
}

.vc-total-amount {
    font-size: 34px;
    font-weight: 700;
    color: var(--vc-text-primary);
    letter-spacing: -0.34px;
}


/* ==========================================================================
   VC PORTAL FORM — WordPress plugin override styles
   ========================================================================== */

#vc-portal-container.vc-portal-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#vc-portal-container .vc-portal-form {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

#vc-portal-container .vc-portal-title {
    font-family: var(--vc-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    color: var(--vc-text-primary);
    margin: 0 0 var(--vc-space-4) 0;
    text-align: center;
}

#vc-portal-container .vc-portal-subtitle {
    font-size: 14px;
    color: var(--vc-text-secondary);
    line-height: 1.6;
    margin: 0;
}

#vc-portal-container .vc-portal-section-title,
.vc-portal-section-label {
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-8);
}

#vc-portal-container .vc-portal-form-group {
    margin-bottom: var(--vc-space-16);
}

#vc-portal-container .vc-portal-form-group label {
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-4);
}

#vc-portal-container .vc-portal-input {
    height: 50px;
    padding: 0 var(--vc-space-16);
    border: 1px solid var(--vc-border-low);
    border-radius: var(--vc-radius-8);
    font-family: var(--vc-font-family);
    font-size: 14px;
    background-color: var(--vc-bg-white);
    color: var(--vc-text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#vc-portal-container .vc-portal-input::placeholder {
    color: var(--vc-text-secondary);
}

#vc-portal-container .vc-portal-input:focus {
    border-color: var(--vc-border-accent);
    background-color: var(--vc-bg-white);
    box-shadow: 0 0 0 2px rgba(12, 114, 176, 0.12);
}

#vc-portal-container .vc-portal-input.error {
    border-color: var(--vc-text-error);
    background-color: var(--vc-bg-white);
}

#vc-portal-container .vc-error-message {
    font-size: 12px;
    color: var(--vc-text-error);
    margin-top: var(--vc-space-4);
}

#vc-portal-container .vc-portal-hero {
    text-align: center;
    margin-bottom: var(--vc-space-24);
}

#vc-portal-container .vc-portal-hero .vc-portal-title {
    margin-bottom: var(--vc-space-8);
}

#vc-portal-container .vc-portal-section {
    margin: var(--vc-space-24) 0 0;
    padding-top: 0;
    border-top: none;
}

#vc-portal-container .vc-portal-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-16);
}

#vc-portal-container .vc-portal-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--vc-text-primary);
    margin-bottom: var(--vc-space-16);
}

#vc-portal-container .vc-portal-section-header {
    margin-bottom: var(--vc-space-16);
}

#vc-portal-container .vc-portal-section-buttons {
    margin-bottom: var(--vc-space-16);
}

/* Two-column contact row */
.vc-portal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vc-space-16);
    margin-bottom: var(--vc-space-16);
}

/* Invoice rows (WP plugin variant) */
#vc-portal-container .invoice-row {
    background-color: var(--vc-bg-white);
    border: 1px solid var(--vc-border-low);
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    margin-bottom: var(--vc-space-16);
}

#vc-portal-container .invoice-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--vc-space-12);
}

#vc-portal-container .invoice-row-title {
    font-weight: 500;
    color: var(--vc-text-primary);
}

#vc-portal-container .invoice-row-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--vc-text-error);
    line-height: 1;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vc-portal-container .invoice-row-remove:hover {
    opacity: 0.7;
}

#vc-portal-container .invoice-row-remove svg {
    width: 18px;
    height: 18px;
}

#vc-portal-container .invoice-row-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--vc-space-16);
}

#vc-portal-container .invoice-row-field label {
    font-size: 12px;
    font-weight: 400;
    color: var(--vc-text-secondary);
    margin-bottom: var(--vc-space-4);
}

#vc-portal-container .invoice-row-field input {
    height: 50px;
    padding: 0 var(--vc-space-16);
    border: 1px solid var(--vc-border-low);
    border-radius: var(--vc-radius-8);
    font-family: var(--vc-font-family);
    font-size: 14px;
    background-color: var(--vc-bg-white);
    color: var(--vc-text-primary);
}

#vc-portal-container .invoice-row-field input:focus {
    border-color: var(--vc-border-accent);
    box-shadow: 0 0 0 2px rgba(12, 114, 176, 0.12);
}

#vc-portal-container .invoice-row-note-btn {
    color: var(--vc-text-accent);
    font-size: 14px;
    font-weight: 700;
}

#vc-portal-container .invoice-row-note textarea {
    padding: var(--vc-space-16);
    border: 1px solid var(--vc-border-low);
    border-radius: var(--vc-radius-8);
    font-family: var(--vc-font-family);
    font-size: 14px;
    background-color: var(--vc-bg-white);
    color: var(--vc-text-primary);
    max-height: 120px;
}

#vc-portal-container .invoice-row-note textarea:focus {
    border-color: var(--vc-border-accent);
    box-shadow: 0 0 0 2px rgba(12, 114, 176, 0.12);
}

/* Add invoice / secondary button (WP plugin) */
#vc-portal-container .vc-portal-btn-secondary,
#vc-portal-container #add-invoices-btn {
    height: 32px;
    padding: 3px var(--vc-space-16);
    background: var(--vc-btn-primary-fill);
    color: var(--vc-btn-primary-label);
    border: none;
    border-radius: var(--vc-radius-30);
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#vc-portal-container .vc-portal-btn-secondary:hover,
#vc-portal-container #add-invoices-btn:hover {
    background: var(--vc-btn-primary-fill);
    opacity: 0.9;
}

/* Total section (WP plugin) */
#vc-portal-container .vc-portal-total-section {
    background-color: transparent;
    border-radius: 0;
    padding: var(--vc-space-16) 0;
    margin: var(--vc-space-8) 0;
}

#vc-portal-container .vc-portal-total-row {
    padding: var(--vc-space-4) 0;
}

#vc-portal-container .vc-portal-total-label {
    color: var(--vc-text-secondary);
    font-size: 14px;
}

#vc-portal-container .vc-portal-total-amount {
    font-size: 34px;
    font-weight: 700;
    color: var(--vc-text-primary);
    letter-spacing: -0.34px;
}

#vc-portal-container .vc-portal-total-count {
    font-weight: 400;
    color: var(--vc-text-secondary);
    font-size: 14px;
}

#vc-portal-container .vc-portal-total-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#vc-portal-container .vc-portal-total-right {
    text-align: right;
}

/* Terms checkbox (WP plugin) */
#vc-portal-container .vc-portal-terms-group {
    margin: var(--vc-space-16) 0;
}

#vc-portal-container .vc-portal-checkbox-label {
    gap: var(--vc-space-8);
}

#vc-portal-container .vc-portal-checkbox {
    accent-color: var(--vc-text-accent);
}

#vc-portal-container .vc-checkbox-text {
    font-size: 14px;
    color: var(--vc-text-primary);
}

#vc-portal-container .vc-tc-link {
    color: var(--vc-text-accent);
}

/* Submit button (WP plugin) */
#vc-portal-container .vc-portal-btn-primary,
#vc-portal-container #submit-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vc-space-8);
    height: 40px;
    padding: var(--vc-space-8) var(--vc-space-16);
    background: var(--vc-btn-primary-fill);
    color: var(--vc-btn-primary-label);
    border: none;
    border-radius: 3px;
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 0;
}

#submit-btn:hover{
	background: #7B0642;
}

#vc-portal-container .vc-portal-btn-primary:hover {
    opacity: 0.9;
    background: #7B0642;
}

#vc-portal-container .vc-portal-btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

#vc-portal-container .vc-portal-btn-primary.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

/* Alert messages (WP plugin) */
#vc-portal-container .vc-portal-message-success {
    background-color: var(--vc-alert-success-surface);
    color: var(--vc-alert-success-stroke);
    border: none;
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    font-size: 14px;
}

#vc-portal-container .vc-portal-message-error {
    background-color: var(--vc-alert-error-surface);
    color: var(--vc-text-error);
    border: none;
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    font-size: 14px;
}

/* Required asterisk */
#vc-portal-container .vc-required {
    color: var(--vc-text-error);
}


/* ==========================================================================
   WOOCOMMERCE — Order Pay / Checkout Overrides
   ========================================================================== */

body.woocommerce-order-pay,
body.woocommerce-checkout {
    background-color: var(--vc-bg-grey);
}

.woocommerce-order-pay .vc-main-container,
.woocommerce-checkout .vc-main-container {
    max-width: 800px;
    margin: 0 auto;
}

.woocommerce-order-pay h2,
.woocommerce-checkout h2 {
    font-family: var(--vc-font-family);
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    color: var(--vc-text-primary);
    text-align: center;
    margin-bottom: var(--vc-space-4);
}

.vc-order-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--vc-text-secondary);
    margin-bottom: var(--vc-space-24);
}

/* WC table */
.woocommerce table.shop_table {
    border: 1px solid var(--vc-border-low);
    border-radius: var(--vc-radius-8);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: var(--vc-font-family);
    font-size: 14px;
    overflow: hidden;
}

.woocommerce table.shop_table thead th {
    background-color: var(--vc-bg-white);
    font-weight: 700;
    color: var(--vc-text-primary);
    padding: var(--vc-space-16);
/* 	border-bottom: 1px solid #f8f9fa; */
    text-align: left;
}

.woocommerce table.shop_table thead th:last-child {
    text-align: right;
}

.woocommerce table.shop_table tbody td {
    padding: var(--vc-space-16);
    border-bottom: 1px solid #f8f9fa;
    vertical-align: top;
    color: var(--vc-text-primary);
}

.woocommerce table.shop_table tbody td:last-child {
    text-align: right;
    white-space: nowrap;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table .wc-item-meta {
    list-style: none;
    padding: 0;
    margin: var(--vc-space-8) 0 0;
}

.woocommerce table.shop_table .wc-item-meta li {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: var(--vc-space-4);
}

.woocommerce table.shop_table .wc-item-meta li strong,
.woocommerce table.shop_table .wc-item-meta li .wc-item-meta-label {
    font-weight: 700;
    color: var(--vc-text-primary);
}

.woocommerce table.shop_table tfoot th {
    text-align: right;
    padding: var(--vc-space-12) var(--vc-space-16);
    font-weight: 400;
    color: var(--vc-text-secondary);
    border-top: 1px solid var(--vc-border-low);
}

.woocommerce table.shop_table tfoot td {
    text-align: right;
    padding: var(--vc-space-12) var(--vc-space-16);
    border-top: 1px solid var(--vc-border-low);
}

.woocommerce table.shop_table tfoot tr.order-total th,
.woocommerce table.shop_table tfoot tr.order-total td {
    font-weight: 700;
    font-size: 16px;
    color: var(--vc-text-primary);
}

.woocommerce .order-total-card {
    background-color: var(--vc-bg-grey);
    border-radius: var(--vc-radius-8);
    padding: var(--vc-space-16);
    margin-top: var(--vc-space-16);
}

.woocommerce #payment {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: var(--vc-space-16);
}


.woocommerce #payment img{
	width:20%;
}

.woocommerce #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--vc-space-16);
    border: none !important;
}

.woocommerce #payment .payment_methods li {
    padding: var(--vc-space-8) 0;
}

.woocommerce #payment .payment_methods li label {
    font-size: 14px;
    color: var(--vc-text-secondary);
    display: flex;
	justify-content:space-between;
    align-items: center;
}

.woocommerce #payment .payment_box {
    background: none !important;
    padding: 0;
    color: var(--vc-text-secondary);
    font-size: 14px;
}

.woocommerce #payment .payment_box::before {
    display: none;
}

.woocommerce #payment #place_order,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce #order_review input[type="submit"],
.woocommerce #order_review button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vc-space-8);
    height: 40px;
    padding: var(--vc-space-8) var(--vc-space-16);
    background: var(--vc-btn-primary-fill) !important;
    color: var(--vc-btn-primary-label) !important;
    border: none !important;
    border-radius: 3px !important;
    font-family: var(--vc-font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.woocommerce #payment #place_order:hover,
.woocommerce #order_review input[type="submit"]:hover,
.woocommerce #order_review button[type="submit"]:hover {
    opacity: 0.9;
	background: #7B0642;
}

/* WC Notices */
.woocommerce-message {
    background-color: var(--vc-alert-success-surface) !important;
    color: var(--vc-alert-success-stroke) !important;
    border: none !important;
    border-radius: var(--vc-radius-8) !important;
    padding: var(--vc-space-16) !important;
    border-top: none !important;
}

.woocommerce-error {
    background-color: var(--vc-alert-error-surface) !important;
    color: var(--vc-text-error) !important;
    border: none !important;
    border-radius: var(--vc-radius-8) !important;
    padding: var(--vc-space-16) !important;
}

.woocommerce-info {
    background-color: var(--vc-alert-warning-surface) !important;
    color: var(--vc-alert-warning-stroke) !important;
    border: none !important;
    border-radius: var(--vc-radius-8) !important;
    padding: var(--vc-space-16) !important;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    color: inherit !important;
}

.woocommerce-order-pay .woocommerce-breadcrumb,
.woocommerce-order-pay .entry-title {
    display: none;
}

.woocommerce-thankyou-order-received {
    font-family: var(--vc-font-family);
    font-size: 14px;
    color: var(--vc-text-primary);
    text-align: center;
    padding: var(--vc-space-24);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
    .vc-portal-row {
        grid-template-columns: 1fr;
    }

    .vc-footer-contacts {
        flex-direction: column;
        gap: var(--vc-space-12);
    }

    .vc-site-main {
        padding: 0 var(--vc-space-8) var(--vc-space-24);
    }

    #vc-portal-container .vc-portal-total-amount {
        font-size: 28px;
    }

    #vc-portal-container .invoice-row-content {
        grid-template-columns: 1fr;
    }

    #vc-portal-container .vc-portal-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--vc-space-12);
    }
}

@media (max-width: 600px) {
    .vc-contact-grid {
        grid-template-columns: 1fr;
    }

    .vc-invoice-fields {
        grid-template-columns: 1fr 1fr;
    }

    .vc-total-amount {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .vc-main-container {
        border-radius: var(--vc-radius-8);
        padding: var(--vc-space-16);
    }

    #vc-portal-container .vc-portal-title {
        font-size: 20px;
    }
}