/*
 * oPro Control Styles
 */

/* ===============================================================
   STILURI ADMIN
   =============================================================== */
.wrap.opro-settings-page h1 { font-size: 2.3em; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.wrap.opro-settings-page h2 { font-size: 1.1em; color: #475569; font-weight: 400; margin-top: 0; margin-bottom: 25px; }
.wrap.opro-settings-page p.submit { margin-top: 30px; }
.wrap.opro-settings-page .button-primary { background: #0ea5e9; border-color: #0ea5e9; padding: 8px 25px; font-size: 1em; height: auto; transition: background 0.2s ease-in-out; }
.wrap.opro-settings-page .button-primary:hover { background: #0284c7; border-color: #0284c7; }
.opro-settings-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 25px; }
.opro-notification-card { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; overflow: hidden; transition: all 0.3s ease; }
.opro-notification-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); }
.opro-card-header { background: #f8fafc; padding: 15px 20px; border-bottom: 1px solid #e2e8f0; }
.opro-card-header h3 { margin: 0; font-size: 1.2em; color: #1e293b; font-weight: 500; }
.opro-card-body { padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.opro-form-group label strong { display: block; font-weight: 600; color: #334155; margin-bottom: 8px; }
.opro-form-group small { display: block; color: #64748b; margin-top: -5px; margin-bottom: 10px; font-style: italic; }
.opro-form-group input[type="text"], .opro-form-group input[type="url"], .opro-form-group input[type="email"], .opro-form-group textarea, .opro-form-group input[type="number"], .opro-form-group input[type="datetime-local"] { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #cbd5e1; background-color: #fdfdff; transition: all 0.2s ease; box-sizing: border-box; }
.opro-form-group textarea { min-height: 100px; }
.opro-form-group input[type="text"]:focus, .opro-form-group input[type="url"]:focus, .opro-form-group input[type="email"]:focus, .opro-form-group textarea:focus, .opro-form-group input[type="number"]:focus, .opro-form-group input[type="datetime-local"]:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); outline: none; }
.opro-category-selector { max-height: 180px; overflow-y: auto; background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px; border-radius: 8px; }
.opro-category-selector label, .opro-form-group-checkbox label { display: flex; align-items: center; gap: 10px; font-weight: 400; color: #334155; margin-bottom: 8px; cursor: pointer; }
.opro-category-selector label:last-child { margin-bottom: 0; }
.opro-category-selector input[type="checkbox"], .opro-form-group-checkbox input[type="checkbox"] { width: 1.2em; height: 1.2em; accent-color: #0ea5e9; }
.opro-color-picker-wrapper { display: flex; align-items: center; gap: 10px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 5px; background-color: #fdfdff; width: fit-content; }
.opro-color-picker-swatch { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 32px; height: 32px; padding: 0; border: none; border-radius: 6px; cursor: pointer; background-color: transparent; }
.opro-color-picker-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.opro-color-picker-swatch::-webkit-color-swatch { border: none; border-radius: 6px; }
.opro-color-picker-swatch::-moz-color-swatch { border: none; border-radius: 6px; }
.opro-color-picker-text { border: none !important; background: none !important; box-shadow: none !important; padding-left: 0 !important; font-family: monospace; width: 100px !important; }
hr.opro-divider { border: none; border-top: 1px solid #e2e8f0; margin: 15px 0; }

/* ===============================================================
   STILURI PUBLICE (FRONTEND)
   =============================================================== */
#opro-global-banner { display: none; position: fixed; top: 0; left: 0; width: 100%; z-index: 99999; padding: 12px 20px; text-align: center; font-size: 14px; line-height: 1.5; align-items: center; justify-content: center; }
#opro-global-banner.opro-is-visible { display: flex; }
.opro-banner-content a { text-decoration: underline; }
.opro-banner-content a:hover { text-decoration: none; }
#opro-close-banner { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

.opro-product-notifications { margin-top: 15px; margin-bottom: 15px; clear: both; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.opro-notification-item { padding: 5px 10px; border-radius: 6px; font-size: 13px; text-align: left; border: 1px solid transparent; }
.opro-notification-item a { color: inherit; text-decoration: none; display: block; }
.opro-notification-item:nth-of-type(1) { background-color: #e7f5ff; color: #1c7ed6; border-color: #fff; }
.opro-notification-item:nth-of-type(2) { background-color: #e7f5ff; color: #1c7ed6; border-color: #fff; }
.opro-notification-item:nth-of-type(3) { background-color: #e7f5ff; color: #1c7ed6; border-color: #fff; }
.opro-notification-item:nth-of-type(4) { background-color: #e7f5ff; color: #1c7ed6; border-color: #fff; }
.opro-before-cart-wrapper { width: 100%; margin-bottom: 20px; display: flex; flex-direction: column; gap: 15px; }
.opro-product-buttons-container { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.opro-custom-button, .opro-negotiate-trigger { display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 400; text-decoration: none; transition: all 0.2s ease-in-out; }
.opro-custom-button { color: #475569; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.opro-custom-button:hover { background-color: #f1f5f9; border-color: #e2e8f0; color: #1e293b; }
.opro-notification-item.opro-notification-item-clean { background-color: transparent !important; border-color: transparent !important; color: inherit !important; padding: 5px 0 !important; text-align: left !important; font-size: 1.1428em; line-height: 1.6875; letter-spacing: -0.015em; }
.opro-notification-item.opro-notification-item-countdown { background-color: #fff9e6 !important; color: #f59f00 !important; border-color: #ffe066 !important; font-weight: 500; text-align: center !important; }
.opro-notification-item-countdown .opro-timer { font-weight: 700; margin-left: 8px; }

.opro-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 100000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.opro-modal-overlay.opro-is-visible { display: flex; opacity: 1; }
.opro-modal-content { background-color: #fff; padding: 30px; border-radius: 12px; max-width: 500px; width: 90%; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.opro-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; color: #666; }
.opro-modal-content h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.5em; }
.opro-modal-product-info { background: #f8fafc; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e2e8f0; font-size: 0.9em; }
#opro_negotiate_form .opro-form-group { margin-bottom: 15px; }
#opro_negotiate_form .opro-form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
#opro_negotiate_form .opro-form-group input, #opro_negotiate_form .opro-form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
#opro_negotiate_form button { width: 100%; padding: 12px; background-color: #FC4700; color: #fff; border: none; border-radius: 6px; font-size: 1em; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
#opro_negotiate_form button:hover { background-color: #d93d00; }
#opro_negotiate_form button:disabled { background-color: #ccc; cursor: not-allowed; }
.opro-form-response { margin-top: 15px; padding: 10px; border-radius: 6px; display: none; }
.opro-form-response.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.opro-form-response.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* ===============================================================
   STILURI PROGRAM MAGAZIN
   =============================================================== */
.pm-schedule-wrapper {
    background-color: #f9f9f9;
    border-left: 4px solid #fc4700;
    border-radius: 4px;
    padding: 15px 25px;
    max-width: 400px;
    margin: 20px auto;
    font-family: Roboto, sans-serif;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.pm-schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
}
.pm-schedule-row:last-child {
    border-bottom: none;
}
.pm-day-range {
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
}
.pm-time {
    color: #34495e;
    font-size: 15px;
}
.pm-time.pm-closed {
    color: #fc4700;
}

/* ===============================================================
   STILURI DETALII TEHNICE (TABEL PRODUS) v6.0 - STIL MODERN (BAZAT PE EXEMPLUL DVS.)
   =============================================================== */
.product-specs-container {
    margin-top: 40px;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(62, 73, 122, 0.08);
    overflow: hidden; /* Important pentru colțurile rotunjite ale antetului */
}

/* Stilizează H2 ca un antet de tabel */
.product-specs-container h2.product_specs_title {
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background-color: #6c63ff; /* O culoare similară cu cea din exemplu */
    margin: 0;
    padding: 18px 25px;
    border: none;
}

.specs-table-custom {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-white);
}

.specs-table-custom th,
.specs-table-custom td {
    padding: 16px 25px;
    text-align: left;
    border: none;
    vertical-align: middle;
}

/* Linia fină de separare dintre rânduri */
.specs-table-custom tr {
    border-bottom: 1px solid #eef0f5;
    transition: background-color 0.2s ease-in-out; /* Tranziție pentru efectul de hover */
}

/* Eliminăm linia pentru ultimul rând */
.specs-table-custom tr:last-child {
    border-bottom: none;
}

/* Efectul de hover ca în exemplu */
.specs-table-custom tr:hover {
    background-color: #f7f6ff;
}

.specs-table-custom th {
    width: 40%;
    font-weight: 500;
    color: var(--text-light);
}

.specs-table-custom td {
    font-weight: 500;
    color: var(--text-dark);
}

/* Responsive pentru mobil */
@media (max-width: 768px) {
    .product-specs-container {
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .product-specs-container h2.product_specs_title,
    .specs-table-custom th,
    .specs-table-custom td {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .specs-table-custom tr {
        padding: 15px 0;
    }

    .specs-table-custom thead {
        display: none;
    }

    .specs-table-custom tr,
    .specs-table-custom th,
    .specs-table-custom td {
        display: block;
        width: 100% !important;
    }

    .specs-table-custom th,
    .specs-table-custom td {
        padding-top: 0;
        padding-bottom: 0;
    }

    .specs-table-custom th {
        font-size: 0.9em;
        font-weight: 400;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .specs-table-custom td {
        font-size: 1em;
        font-weight: 500;
    }
}