/* ============================================
   DESIGNER CSS - OPTIMIZED
   CSS Variables & Modern Styling
   ============================================ */

:root {
    /* Colors */
    --orange-primary: #fcb040;
    --orange-dark: #DE9200;
    --orange-light: #FACD1E;
    
    --gray-dark: #343434;
    --gray-medium: #898989;
    --gray-light: #f9f9f9;
    --gray-border: #f2f2f3;
    --gray-input: #ddd;
    
    --white: #ffffff;
    --success: #28a745;
    --success-bg: #d4edda;
    --danger: #d9534f;
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 30px;
    
    /* Borders */
    --radius: 3px;
    --radius-md: 5px;
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

input[type="submit"] {
    padding: 14px 40px;
    background: var(--orange-primary);
    border: none;
    color: var(--white);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Form Submit Container */
div[style*="text-align: center"] {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 2px solid var(--gray-border);
}

/* Table Submit Button Row */
table tr:last-child {
    border-top: 2px solid var(--gray-border);
}

table tr:last-child td {
    padding-top: var(--space-lg);
}

/* ============================================
   DESIGNER MENU
   ============================================ */

p.designermenu {
    font-family: 'BebasNeueRegular', Arial, sans-serif;
    font-size: 18px;
    color: var(--gray-medium);
    text-transform: uppercase;
    border-bottom: 3px solid var(--gray-border);
    margin: 0;
    line-height: 1.3;
    text-align: left;
    padding: 8px 0;
}

p.designermenu a {
    text-decoration: none;
    color: var(--gray-medium);
    padding: 4px 8px;
    transition: all var(--transition);
    border-radius: var(--radius);
    display: inline-block;
}

p.designermenu a:hover {
    color: var(--orange-primary);
    background: rgba(252, 176, 64, 0.1);
    text-decoration: none;
}

p.designermenu a.active-menu {
    color: var(--orange-primary);
    background: var(--gray-light);
}

/* Coming Soon Badge */
.coming-soon-badge {
    background: var(--gray-medium);
    color: var(--white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 6px;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.5px;
    font-weight: 200;
}

/* ============================================
   DESIGNER STATS CONTAINERS
   ============================================ */

.designer-stats-container {
    background: var(--white);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.designer-stats-container:hover {
    box-shadow: var(--shadow-hover);
}

.designer-stats-container h2,
.designer-stats-container h3 {
    margin: 0 0 var(--space-xl) 0;
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--orange-primary);
    font-family: 'BebasNeueRegular', Arial, sans-serif;
    font-size: 28px;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
	clear:both;

}
.designer-stats-container h2 { padding-top:30px; }
.designer-stats-header {
    font-size: 18px;
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-border);
}

/* ============================================
   SALES TABLES
   ============================================ */

.designer-sales-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: var(--space-lg);
}

.sales-by-pattern,
.latest-sales {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.sales-by-pattern b,
.latest-sales b {
    font-size: 20px;
    color: var(--gray-dark);
    display: block;
    margin-bottom: var(--space-md);
    font-family: 'BebasNeueRegular', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Styling */
.designer-sales-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.designer-sales-wrapper table tr:first-child td {
    font-style: italic;
    color: var(--gray-medium);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-border);
    font-weight: 600;
}

.designer-sales-wrapper table tr td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--gray-light);
    transition: background var(--transition);
}

.designer-sales-wrapper table tr:hover {
    background: var(--gray-light);
}

.designer-sales-wrapper table tr td:nth-child(2),
.designer-sales-wrapper table tr td:nth-child(3) {
    text-align: right;
    font-weight: 500;
}

/* ============================================
   FORM LABELS
   ============================================ */

.labels {
    font-family: Arial, sans-serif;
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    margin-top: var(--space-lg);
    clear: both;
    float: none;
    width: 100%;
}

.labels:first-of-type {
    margin-top: 0;
}

.labels span[style*="color"] {
    font-weight: normal;
    font-size: 13px;
    color: var(--gray-medium);
}

/* ============================================
   PROFILE FORM STYLING
   ============================================ */

.designer-stats-container form {
    clear: both;
    width: 100%;
}

.designer-stats-container form label.labels,
.designer-stats-container form p,
.designer-stats-container form div {
    float: none !important;
    clear: both !important;
}

.designer-stats-container form input[type="text"],
.designer-stats-container form input[type="email"],
.designer-stats-container form textarea,
.designer-stats-container form select {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-input);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: Arial, sans-serif;
    margin-bottom: var(--space-xl);
    margin-top: 8px;
    display: block;
    transition: all var(--transition);
    background: var(--white);
    clear: both;
    float: none;
}

.designer-stats-container form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
    font-size: 15px;
}

/* ============================================
   FORM INPUTS INSIDE TABLES
   ============================================ */

table input[type="text"],
table input[type="email"],
table input[type="date"],
table textarea,
table select {
    margin-bottom: 0;
    margin-top: 0;
}

.designer-stats-container form input[type="text"]:focus,
.designer-stats-container form input[type="email"]:focus,
.designer-stats-container form textarea:focus,
.designer-stats-container form select:focus {
    border-color: var(--orange-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 176, 64, 0.1);
}

.designer-stats-container form input[readonly] {
    background: var(--gray-light);
    cursor: not-allowed;
    color: var(--gray-medium);
    border-color: var(--gray-border);
}

.designer-stats-container form input[type="file"] {
    margin: 12px 0 var(--space-lg) 0;
    padding: 14px;
    display: block;
    border: 2px dashed var(--gray-input);
    border-radius: var(--radius);
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--gray-light);
    font-size: 14px;
    clear: both;
    float: none;
}

.designer-stats-container form input[type="file"]:hover {
    border-color: var(--orange-primary);
    background: rgba(252, 176, 64, 0.08);
    border-style: solid;
}

.designer-stats-container form input[type="radio"],
.designer-stats-container form input[type="checkbox"] {
    margin-right: var(--space-sm);
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--orange-primary);
}

.designer-stats-container form label {
    cursor: pointer;
    display: inline-block;
    line-height: 1.6;
}

/* Radio/Checkbox Options */
.designer-stats-container form label[style*="display: block"] {
    display: block;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.designer-stats-container form label[style*="display: block"]:hover {
    background: var(--gray-light);
}

/* Helper Text */
.designer-stats-container form p {
    color: var(--gray-medium);
    font-size: 13px;
    line-height: 1.5;
    margin: -8px 0 12px 0;
    font-style: italic;
    display: block;
    clear: both;
    float: none;
    width: 100%;
}

.designer-stats-container form p:not([style]) {
    margin-top: -8px;
}

/* Image Previews */
.designer-stats-container form img {
    display: block;
    max-width: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin: var(--space-md) 0 var(--space-lg) 0;
    border: 1px solid var(--gray-border);
}

.designer-stats-container form > div[style*="margin"] {
    display: block;
    clear: both;
    float: none;
    width: 100%;
}

.designer-stats-container form > div[style*="margin"] img {
    max-width: 100%;
}

/* ============================================
   SUCCESS/WARNING MESSAGES
   ============================================ */

.success-message {
    background: var(--success-bg);
    border-left: 4px solid var(--success);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius);
    animation: slideIn 0.3s ease;
}

.success-message p {
    margin: 0;
    color: var(--success-text);
    font-size: 15px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.warning-box {
    background: var(--orange-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-lg);
}

.warning-box a {
    color: var(--gray-dark);
    font-weight: bold;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.designer-section {
    background: var(--white);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.designer-metric {
    display: inline-block;
    margin-right: var(--space-lg);
    padding: var(--space-sm);
    background: var(--gray-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-border);
    transition: all var(--transition);
}

.designer-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.designer-metric-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--orange-primary);
    display: block;
    font-family: 'BebasNeueRegular', Arial, sans-serif;
}

.designer-metric-label {
    font-size: 12px;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.designer-stats-container table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

.designer-stats-container table td {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

/* Specific column widths for sales table */
/* Specific column widths for sales table */
.designer-stats-container table td:nth-child(1) { 
    width: 95px; 
    font-size: 12px;
    line-height: 1.3;
} /* Date */

.designer-stats-container table td:nth-child(2) { 
    width: auto; 
    font-size: 14px;
} /* Pattern */

.designer-stats-container table td:nth-child(3) { 
    width: 65px; 
    font-size: 14px;
} /* Price */

.designer-stats-container table td:nth-child(4) { 
    width: 110px; 
    font-size: 13px;
} /* Buyer */

.designer-stats-container table td:nth-child(5) { 
    width: 50px; 
    font-size: 13px;
    text-align: center;
} /* Country */

.designer-stats-container table td:nth-child(6) { 
    width: 165px; 
    font-size: 12px;
    font-family: monospace;
} /* Transaction ID */
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
    .designer-stats-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .designer-sales-wrapper {
        grid-template-columns: 1fr;
    }
    
    p.designermenu {
        font-size: 16px;
        padding: 12px 0;
    }
    
    p.designermenu a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .designer-stats-container form input[type="text"],
    .designer-stats-container form input[type="email"],
    .designer-stats-container form textarea,
    .designer-stats-container form select,
    .designer-stats-container form input[type="file"] {
        max-width: 100%;
    }
    
    .designer-stats-container h2 {
        font-size: 24px;
    }
    
    /* Pattern Grid Mobile */
    .items {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }
    
    /* Discount Table Mobile */
    table {
        font-size: 14px;
    }
    
    table td {
        padding: 10px 4px;
        display: block;
        width: 100%;
    }
    
    table tr td:first-child {
        padding-bottom: 4px;
    }
}

@media screen and (max-width: 480px) {
    .designer-sales-wrapper table {
        font-size: 12px;
    }
    
    .designer-sales-wrapper table tr td {
        padding: 8px 4px;
    }
    
    .designer-stats-container {
        padding: var(--space-md);
    }
    
    .designer-stats-container h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    input[type="submit"] {
        width: 100%;
        padding: 16px;
    }
    
    .items {
        grid-template-columns: 1fr;
    }
    
    .item {
        height: auto !important;
    }
    
    h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }
}

/* ============================================
   FORM PATTERN STYLES
   ============================================ */

#form_pattern select,
#form_pattern textarea,
#form_pattern input {
    padding: 10px 12px;
    border: 2px solid var(--gray-input);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all var(--transition);
	margin-bottom:12px;
}

#form_pattern input[type="text"] {
    width: 95%;
    max-width: 600px;
}

#form_pattern textarea {
    width: 95%;
    min-height: 120px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

#form_pattern select:focus,
#form_pattern textarea:focus,
#form_pattern input:focus {
    border-color: var(--orange-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 176, 64, 0.1);
}

#form_pattern img.q {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    cursor: help;
    opacity: 0.7;
    transition: opacity var(--transition);
}

#form_pattern img.q:hover {
    opacity: 1;
}

/* ============================================
   CHECKOUT BUTTON
   ============================================ */

.checkout-button {
    background-color: var(--gray-dark);
    color: #DDD;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.checkout-button:hover {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   DISCOUNT PAGE STYLING
   ============================================ */

.designermenugray {
    background: var(--gray-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--orange-primary);
    margin-bottom: var(--space-xl);
    font-style: italic;
    color: var(--gray-medium);
    line-height: 1.6;
}

.designermenugray a {
    color: var(--orange-primary);
    font-weight: 600;
}

/* Discount Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}

table td {
    padding: 12px 8px;
    vertical-align: top;
}

table tr td:first-child {
    font-weight: 400;
    color: var(--gray-dark);
    padding-right: var(--space-lg);
}

/* Radio and Checkbox Styling */
input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--orange-primary);
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    cursor: pointer;
    color: var(--gray-dark);
    font-size: 15px;
}

/* Date Input Styling */
input[type="date"] {
    padding: 10px 12px;
    border: 1px solid var(--gray-input);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border var(--transition);
}

input[type="date"]:focus {
    border-color: var(--orange-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 176, 64, 0.1);
}

/* Select Dropdown */
select {
    padding: 10px 12px;
    border: 1px solid var(--gray-input);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border var(--transition);
}

select:focus {
    border-color: var(--orange-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 176, 64, 0.1);
}

/* Pattern Selection List */
#pattern_indiv {
    background: var(--gray-light);
    padding: var(--space-md);
    border-radius: var(--radius);
    max-height: 300px;
    overflow-y: auto;
    margin-top: var(--space-sm);
}

#pattern_indiv label {
    display: block;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
    margin-bottom: 4px;
}

#pattern_indiv label:hover {
    background: var(--white);
}

#pattern_indiv a {
    color: var(--orange-primary);
    font-size: 12px;
    margin-left: 8px;
}

/* Discount Form Specific Styling */
form[method="POST"] {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin: var(--space-lg) 0;
}

form[method="POST"] table {
    margin: 0;
    background: transparent;
}

form[method="POST"] b {
    display: block;
    font-size: 18px;
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* Current Promotions Section */
p.designermenu + b,
div + b {
    font-size: 20px;
    color: var(--gray-dark);
    display: block;
    margin: var(--space-xl) 0 var(--space-md) 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--orange-primary);
}

/* Discount Promotion List */
div[style*="margin-bottom"] {
    line-height: 1.8;
}

div[style*="margin-bottom"] b {
    font-size: 18px;
    margin-bottom: var(--space-md);
    display: block;
}

/* Small Font Styling */
font[size="-1"] {
    font-size: 13px !important;
    color: var(--gray-medium);
}

/* ============================================
   GENERAL PAGE IMPROVEMENTS
   ============================================ */

/* Better Link Styling in Content */
a.patternlink {
    color: var(--gray-dark);
    font-weight: 600;
}

a.patternlink:hover {
    color: var(--orange-primary);
}

.delete_pattern {
    color: var(--danger);
    font-size: 13px;
}

.delete_pattern:hover {
    text-decoration: underline;
}

/* Italic Text Blocks */
i {
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Better Spacing for BR Elements */
br + br {
    display: block;
    margin-top: var(--space-md);
}

/* Image Tooltips */
img[data-toggle="tooltip"] {
    opacity: 0.7;
    transition: opacity var(--transition);
}

img[data-toggle="tooltip"]:hover {
    opacity: 1;
}

/* Content Wrapper */
body {
    padding: var(--space-lg);
}

/* Better Code/Monospace Display */
code, pre {
    background: var(--gray-light);
    padding: 2px 6px;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* ============================================
   TERMS PAGE STYLING
   ============================================ */

h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 3px solid var(--orange-primary);
}

p {
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--gray-dark);
}


p a {
    color: var(--orange-primary);
}

p a:hover {
    text-decoration: underline;
}

/* ============================================
   MY PATTERNS PAGE STYLING
   ============================================ */

.warningbox {
    background: var(--orange-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.warningbox a {
    color: var(--gray-dark);
    font-weight: bold;
    text-decoration: underline;
}

.warningbox a:hover {
    color: var(--white);
}

/* Pattern Grid */
.items {
    display: grid;
  grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
	width:100%;
}

.item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.item p {
    padding: var(--space-md);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    flex-grow: 1;
}

.item p b {
    display: block;
    color: var(--gray-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.item p a {
    color: var(--orange-primary);
    font-weight: 600;
}

.item p font {
    display: block;
    margin: 8px 0 4px 0;
}

.item.not_online {
    opacity: 0.5;
    display: none;
}


.overshop {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 80px;
    max-width: 200px;
	height: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 8px;
    color: var(--white);
    font-weight: 600;
}

.overshop font {
    display: inline;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
}

.overshop a {
    color: var(--orange-primary);
    text-decoration: underline;
}

.overshop a:hover {
    color: var(--orange-dark);
}

.overshop.status-live {
    background: rgba(40, 167, 69, 0.95);
}

.overshop.status-offline {
    background: rgba(217, 83, 79, 0.95);
}

.overshop.status-waiting {
    background: rgba(252, 176, 64, 0.95);
}

.overshop a {
    color: var(--white);
    text-decoration: underline;
}

.overshop a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.overshop img {
    display: inline;
    margin-left: 4px;
    vertical-align: middle;
}
/* Pattern Status Colors */
font[color="green"] {
    color: var(--success-green) !important;
    font-weight: 600;
}

font[color="orange"] {
    color: var(--orange-primary) !important;
    font-weight: 600;
}

font[color="red"] {
    color: var(--danger) !important;
    font-weight: 600;
}

/* Tooltip Styling */
.btn-default[data-toggle="tooltip"] {
    cursor: help;
    vertical-align: middle;
}

/* Show/Hide Link */
#show_not_online {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gray-medium);
    color: var(--white);
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
    font-style: normal;
    transition: all var(--transition);
}

#show_not_online:hover {
    background: var(--gray-dark);
    text-decoration: none;
}
/* ============================================
   FORM PATTERN STYLES
   ============================================ */

#form_pattern table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
	padding: 10px;
}
.inputbuybutton { margin:20px; }
#form_pattern table tr {
    vertical-align: top;
}

#form_pattern table td {
    padding: 8px 12px 8px 0;
    vertical-align: top;
}

/* First column (labels) alignment */
#form_pattern table td:first-child {
    padding-top: 12px; /* Aligns with input field text considering input padding + border */
    width: 180px;
    font-weight: 600;
    color: var(--gray-dark);
    line-height: 1.3;
}

/* Second column (inputs) */
#form_pattern table td:nth-child(2) {
    padding-top: 8px;
}

#form_pattern select,
#form_pattern textarea,
#form_pattern input[type="text"],
#form_pattern input[type="number"],
#form_pattern input[type="file"] {
    padding: 10px 12px;
    border: 2px solid var(--gray-input);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all var(--transition);
    margin: 0;
    line-height: 1.3;
    box-sizing: border-box;
}

#form_pattern input[type="text"] {
    width: 95%;
    max-width: 600px;
}

#form_pattern input[type="number"] {
    width: 100px;
}

#form_pattern textarea {
    width: 95%;
    min-height: 120px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

#form_pattern select:focus,
#form_pattern textarea:focus,
#form_pattern input:focus {
    border-color: var(--orange-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 176, 64, 0.1);
}

/* Price field alignment */
#form_pattern table td:nth-child(2) > div {
    display: inline-block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

#form_pattern table td:nth-child(2) > div > span {
    display: inline-block;
    padding: 10px 0; /* Match input padding for vertical alignment */
    margin: 0 4px 0 0;
    line-height: 1.3;
}

#form_pattern table td:nth-child(2) > div:nth-of-type(2) {
    margin-left: 12px;
}

#form_pattern table td:nth-child(2) > div:nth-of-type(2) > i {
    display: inline-block;
    padding: 10px 0;
    font-style: normal;
    color: var(--gray-medium);
}

/* Free pattern checkbox alignment */
#form_pattern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 6px 0 0;
    cursor: pointer;
    accent-color: var(--orange-primary);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

#form_pattern table td:nth-child(2) > div:nth-of-type(3) label {
    display: inline-block;
    cursor: pointer;
    margin: 0;
}

#form_pattern table td:nth-child(2) > div:nth-of-type(3) label span {
    display: inline-block;
    padding: 10px 0;
    line-height: 1.3;
    vertical-align: middle;
}

/* Radio buttons alignment */
#form_pattern input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: var(--orange-primary);
    vertical-align: middle;
    position: relative;
    top: -1px;
}

#form_pattern table td:nth-child(2) label {
    display: block;
    cursor: pointer;
    line-height: 1.3;
    margin: 0;
}

#form_pattern table td:nth-child(2) label:first-of-type {
    padding-top: 0;
}

/* Submit button alignment */
#form_pattern table tr:last-child td {
    padding-top: var(--space-lg);
}

#form_pattern table tr:last-child td:first-child {
    padding-top: var(--space-lg);
}


#form_pattern img.q {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    cursor: help;
    opacity: 0.7;
    transition: opacity var(--transition);
    vertical-align: baseline;
}

#form_pattern img.q:hover {
    opacity: 1;
}
