/* -------------------------------------------------------
   WPB WooCommerce Product Slider — Settings Page Styles
------------------------------------------------------- */

/* ----------------------------------------------------------
   Submit Button
   ---------------------------------------------------------- */
.wpb_wps_settings p.submit {
    padding: 20px 28px 24px;
    border-top: 1px solid #eef0f6;
    background: #f8f9fc;
}
.wpb_wps_settings p.submit .button-primary {
    background: linear-gradient(135deg, #f2295b 0%, #c71843 100%);
    border-color: #c71843;
    color: #fff;
    height: 40px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(242, 41, 91, 0.3);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    text-shadow: none;
    line-height: 40px;
    -webkit-font-smoothing: antialiased;
}
.wpb_wps_settings p.submit .button-primary:hover,
.wpb_wps_settings p.submit .button-primary:focus,
.wpb_wps_settings p.submit .button-primary:active {
    background: linear-gradient(135deg, #c71843 0%, #a01035 100%);
    border-color: #a01035;
    box-shadow: 0 6px 15px rgba(242, 41, 91, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Input / Select / Textarea Fields
   ---------------------------------------------------------- */
.wpb_wps_settings input[type="text"],
.wpb_wps_settings input[type="number"],
.wpb_wps_settings input[type="password"],
.wpb_wps_settings textarea {
    display: block;
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 1.5px solid #dde1ea;
    border-radius: 6px;
    height: auto;
    min-height: 39px;
    -webkit-transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    max-width: 100%;
}
.wpb_wps_settings select {
    display: inline-block;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #1f2937;
    background-color: #fff;
    background-clip: padding-box;
    border: 1.5px solid #dde1ea;
    border-radius: 6px;
    height: auto;
    min-height: 38px;
    min-width: 180px;
    max-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;
    cursor: pointer;
    -webkit-transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.wpb_wps_settings input[type="text"]:focus,
.wpb_wps_settings input[type="number"]:focus,
.wpb_wps_settings input[type="password"]:focus,
.wpb_wps_settings textarea:focus,
.wpb_wps_settings select:focus {
    color: #1f2937;
    background-color: #fff;
    border-color: #273c75;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(39, 60, 117, 0.1);
}
.wpb_wps_settings textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}
.wpb_wps_settings .wp-picker-container .wp-color-result.button,
.wpb_wps_settings .wp-picker-input-wrap .button,
.wpb_wps_settings .wp-picker-container input[type="text"].wp-color-picker {
    height: 30px;
    min-height: auto;
}
.wpb_wps_settings .wp-picker-container .wp-color-result-text {
    height: 28px;
    line-height: 28px;
}
.wpb_wps_settings .wp-picker-container input[type="text"].wp-color-picker {
    width: 80px;
    min-height: auto;
    padding: 4px 8px;
}

/* ----------------------------------------------------------
   Settings Card: Container
   ---------------------------------------------------------- */
#wpbody-content .wpb_wps_settings .metabox-holder {
    padding: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 24px rgba(25, 42, 86, 0.08);
    overflow: hidden;
}

/* Section title (h2 output by do_settings_sections) */
.wpb_wps_settings form > h2 {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    line-height: 1.4;
    margin: 0;
    padding: 14px 28px;
    border-bottom: 1px solid #eef0f6;
    background: #f4f6fb;
}

/* Field label */
.wpb_wps_settings .form-table th label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2550;
    line-height: 1.4;
    display: block;
    margin-top: 2px;
}

/* Group (each tab's form section) */
.wpb_wps_settings .group {
    background: #fff;
    padding: 0;
}

/* ----------------------------------------------------------
   Tab Navigation
   ---------------------------------------------------------- */
.wpb_wps_settings h2.nav-tab-wrapper {
    border: none;
    border-bottom: 2px solid #eef0f6;
    clear: both;
    margin: 0;
    padding: 0 12px;
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow:
        0 -2px 0 0 transparent,
        0 4px 24px rgba(25, 42, 86, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.wpb_wps_settings .nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #6b7280;
    padding: 14px 14px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    top: 2px;
    text-decoration: none;
    line-height: 1.3;
    -webkit-transition:
        color 0.2s ease,
        border-color 0.2s ease;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
    margin: 0;
    cursor: pointer;
}
.wpb_wps_settings .nav-tab:hover {
    color: #273c75;
    border-bottom-color: rgba(25, 42, 86, 0.2);
    background: transparent;
}
.wpb_wps_settings .nav-tab.nav-tab-active {
    color: #192a56;
    font-weight: 700;
    border-bottom: 3px solid #f2295b;
    background: transparent;
}
.wpb_wps_settings .nav-tab:focus {
    outline: 0;
    box-shadow: none;
}
.wpb_wps_settings .nav-tab:first-child {
    margin-left: 0;
}

/* ----------------------------------------------------------
   Form Table
   ---------------------------------------------------------- */
.wpb_wps_settings .form-table {
    margin-top: 0;
    border-collapse: collapse;
    width: 100%;
}
.wpb_wps_settings .form-table th {
    padding: 20px 16px 20px 28px;
    width: 220px;
    vertical-align: top;
}
.wpb_wps_settings .form-table td {
    padding: 20px 28px 20px 0;
    vertical-align: top;
}
.wpb_wps_settings .form-table tbody tr {
    border-bottom: 1px solid #f0f2f8;
}
.wpb_wps_settings .form-table tbody tr:last-child {
    border-bottom: none;
}
.wpb_wps_settings td p.description {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 7px;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 480px;
}

/* ----------------------------------------------------------
   Step Badge (How to Use tab)
   ---------------------------------------------------------- */
.wpb_wps_settings .form-table th .wpb-wps-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #192a56;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

/* ----------------------------------------------------------
   Shortcode Copy Field
   ---------------------------------------------------------- */
.wpb-wps-shortcode-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 620px;
}
.wpb-wps-shortcode-input {
    flex: 1;
    font-family: monospace;
    font-size: 13px !important;
    color: #1a2550 !important;
    background: #f4f6fb !important;
    border: 1.5px solid #dde1ea !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
    padding: 9px 14px !important;
    min-height: 40px !important;
    height: 40px !important;
    cursor: text;
    box-shadow: none !important;
}
.wpb-wps-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 14px;
    background: #192a56;
    color: #fff;
    border: 1.5px solid #192a56;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    -webkit-font-smoothing: antialiased;
}
.wpb-wps-copy-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #fff;
    -webkit-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
}
.wpb-wps-copy-btn:hover {
    background: #273c75;
    border-color: #273c75;
}
.wpb-wps-copy-btn:active {
    transform: scale(0.97);
}
.wpb-wps-copy-btn.copied {
    background: #00a32a;
    border-color: #00a32a;
    -webkit-animation: wpb-wps-copy-pop 0.3s ease;
    animation: wpb-wps-copy-pop 0.3s ease;
}
.wpb-wps-copy-btn.copied .dashicons {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}
@-webkit-keyframes wpb-wps-copy-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
@keyframes wpb-wps-copy-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* ----------------------------------------------------------
   Number + Unit Field
   ---------------------------------------------------------- */
.wpb-numberunit-field {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.wpb-numberunit-field .regular-text {
    width: 90px;
    max-width: 90px;
    min-width: 0;
    flex-shrink: 0;
    margin-right: 0;
}

/* =========================================
   Page Header
   ========================================= */
.wpb-wps-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(135deg, #192a56 0%, #273c75 100%);
    padding: 20px 28px;
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(39, 60, 117, 0.25);
}
.wpb-wps-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wpb-wps-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wpb-wps-header-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #fff;
}
.wpb-wps-header-info h1 {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 700;
    margin: 0 0 6px !important;
    padding: 0 !important;
    line-height: 1.2;
}
.wpb-wps-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wpb-wps-plan-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.wpb-wps-version {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}
.wpb-wps-header-docs-link {
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 0.8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}
.wpb-wps-header-docs-link:hover {
    opacity: 1;
    border-bottom-color: #fff;
}
.wpb-wps-header-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f2295b 0%, #c71843 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(242, 41, 91, 0.45);
    white-space: nowrap;
}
.wpb-wps-header-upgrade-btn:hover {
    background: linear-gradient(135deg, #c71843 0%, #a01035 100%);
    box-shadow: 0 6px 18px rgba(242, 41, 91, 0.55);
    color: #fff !important;
    transform: translateY(-1px);
}
.wpb-wps-header-upgrade-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #ffd700;
}

/* =========================================
   Two-column Layout
   ========================================= */
.wpb-wps-layout-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.wpb-wps-col-main {
    flex: 1;
    min-width: 0;
}
.wpb-wps-col-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 52px;
}

/* =========================================
   Pro Sidebar Card
   ========================================= */
.wpb-wps-pro-sidebar-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.09);
    border: 1px solid #e8eaf0;
}
.wpb-wps-pro-card-header {
    background: linear-gradient(135deg, #192a56 0%, #273c75 100%);
    padding: 24px 20px;
    text-align: center;
}
.wpb-wps-pro-card-crown {
    display: block;
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto 10px !important;
    color: #ffd700 !important;
}
.wpb-wps-pro-card-header h3 {
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700;
    margin: 0 0 5px !important;
    padding: 0 !important;
}
.wpb-wps-pro-card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}
.wpb-wps-pro-card-body {
    padding: 20px;
}
.wpb-wps-pro-features-list {
    margin: 0 0 20px !important;
    padding: 0 !important;
    list-style: none !important;
}
.wpb-wps-pro-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    list-style: none !important;
    margin: 0 !important;
}
.wpb-wps-pro-features-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.wpb-wps-pro-features-list li::before {
    content: "\f147";
    font-family: dashicons;
    color: #00a32a;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}
.wpb-wps-pro-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f2295b 0%, #c71843 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
    text-align: center;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(242, 41, 91, 0.35);
    margin-top: 4px;
    width: 100%;
}
.wpb-wps-pro-card-cta:hover {
    background: linear-gradient(135deg, #c71843 0%, #a01035 100%);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(242, 41, 91, 0.45);
    transform: translateY(-1px);
}
.wpb-wps-pro-card-cta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* =========================================
   Responsive
   ========================================= */
@media screen and (max-width: 1100px) {
    .wpb-wps-layout-row {
        flex-direction: column;
    }
    .wpb-wps-col-sidebar {
        width: 100%;
        position: static;
    }
    .wpb-wps-pro-features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}
@media screen and (max-width: 900px) {
    .wpb_wps_settings h2.nav-tab-wrapper {
        padding: 0 6px;
    }
    .wpb_wps_settings .nav-tab {
        padding: 12px 10px;
        font-size: 12px;
    }
    .wpb_wps_settings .form-table th {
        padding: 16px 12px 16px 20px;
        width: 180px;
    }
    .wpb_wps_settings .form-table td {
        padding: 16px 20px 16px 0;
    }
    .wpb_wps_settings p.submit,
    .wpb_wps_settings form > h2 {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media screen and (max-width: 782px) {
    .wpb-wps-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 18px;
    }
    .wpb-wps-header-info h1 {
        font-size: 17px !important;
    }
    .wpb-wps-pro-features-list {
        grid-template-columns: 1fr;
    }
    .wpb_wps_settings .form-table th,
    .wpb_wps_settings .form-table td {
        display: block;
        width: 100%;
        padding: 12px 18px;
    }
    .wpb_wps_settings .form-table th {
        padding-bottom: 4px;
    }
    .wpb_wps_settings .form-table td {
        padding-top: 4px;
    }
    .wpb_wps_settings .form-table tbody tr {
        display: block;
        padding: 6px 0;
    }
    .wpb_wps_settings p.submit,
    .wpb_wps_settings form > h2 {
        padding-left: 18px;
        padding-right: 18px;
    }
}
@media screen and (max-width: 600px) {
    .wpb-wps-header-upgrade-btn {
        width: 100%;
        justify-content: center;
    }
    .wpb_wps_settings .nav-tab {
        padding: 10px 8px;
        font-size: 11px;
        gap: 5px;
    }
}
.wpb-submit-button p {
    margin: 0;
}
