/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
.wrap .wbcom-plugin-heading {
    display: block !important;
}

.wbcom-welcome-head h2.wbcom-welcome-title,
.wb-ads-tab-header h3 {
    padding: 18px 25px;
    font-size: 15px;
    background: #2094f3;
    color: #fff;
    margin: 0 -15px 20px;
}

.nav-tab-wrapper ul li a#woo-document-preview-faq-tab.nav-tab:before {
    content: "\f125";
}

.nav-tab-wrapper ul li a#woo-document-preview-pro-tab.nav-tab:before {
    content: "\f111";
}

.wbcom-tab-content.woo-document-pro:after {
    content: "";
    background: black;
    position: absolute;
    width: calc(100% - 70px);
    height: calc(100% - 35px);
    top: -21px;
    margin: 20px 0 0;
    padding: 20px;
    box-shadow: none;
    font-size: 15px;
    line-height: 2.1em;
    overflow: hidden;
    border-radius: 12px;
}

.wbcom-tab-content.woo-document-pro {
    position: relative;
}

.wcdp-required-span {
    font-size: 10px;
    color: red;
}

.preview_files p.wcdp-del-msg {
    color: red;
    display: none;
}

.wcdp-document-file td.file_url #wcdp_file_urls.focused {
    border: 1px solid red;
}

.wcdp-document-file .file_url_choose #wcdp_preview_attachment.focused {
    border: 1px solid red;
}

/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
.wb_ads_rotator-panel .wb_ads_rotator-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wb_ads_rotator-panel .wb_ads_rotator-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wb_ads_rotator-panel .wb_ads_rotator-wrapper:last-child {
    padding-bottom: 0;
    border: 0;
}

.wb_ads_rotator-panel .wb_ads_rotator-wrapper .wb_ads_rotator-label {
    color: #5f5f5f;
    font-weight: 700;
    line-height: 19px;
    width: 20%;
}

.wb_ads_rotator-panel .wb_ads_rotator-wrapper .wb_ads_rotator-input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

#wb-ads-preview-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.wb-ads-rotator-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.wb-ads-rotator-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wb-ads-rotator-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.wb-ads-rotator-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked+.wb-ads-rotator-slider {
    background-color: #2196f3;
}

input:focus+.wb-ads-rotator-slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked+.wb-ads-rotator-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.wb-ads-rotator-slider.wb-ads-rotator-round {
    border-radius: 34px;
}

.wb-ads-rotator-slider.wb-ads-rotator-round:before {
    border-radius: 50%;
}

.wb-ad-rotator-error-message {
    color: #dc3232 !important;
}

/*----------  Faq Style  ----------*/
.woo-document-preview-admin-col-12 {
    float: left;
    padding: 5px 0;
    width: 100%;
}

.woo-document-preview-admin-setting {
    float: left;
    width: 100%;
}

button.woo-document-preview-accordion {
    background-color: hsl(0, 0%, 87%);
    border: medium none;
    color: hsl(0, 0%, 27%);
    cursor: pointer;
    font-size: 15px;
    outline: medium none;
    padding: 15px 20px;
    font-weight: 500;
    text-align: left;
    transition: all 0.4s ease 0s;
    width: 100%;
}

button.woo-document-preview-accordion.active,
button.woo-document-preview-accordion:hover {
    background-color: hsl(207, 90%, 54%);
    color: white;
}

div.wb-ads-panel {
    background-color: white;
    margin: 0px;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.2s ease-out;
}

button.woo-document-preview-accordion::after {
    color: hsl(0, 0%, 47%);
    content: "+";
    float: right;
    font-size: 18px;
    font-weight: bold;
    margin-left: 5px;
}

button.woo-document-preview-accordion:hover::after {
    color: white;
}

button.woo-document-preview-accordion.active::after {
    content: "−";
    color: white;
    font-size: 18px;
}

.woo-document-preview-admin-row {
    clear: both;
    overflow: hidden;
}

.wb-ads-tab-3-title {
    font-weight: 700;
    font-size: 16px;
}

.wb-ads-tab-content .form-table td {
    padding: 0;
}

/*Ads CPT UI*/
.wb_ads_rotator-panel .CodeMirror-wrap pre {
    padding-left: 35px;
}

.wb_ads_rotator-wrapper.select-ads-image.image-ad {
    align-items: center;
    gap: 30px;
}

input#wb_ads_rotator_select_image {
    padding: 3px 20px;
    margin-right: 10px;
}

.wb_ads_rotator-panel .wb_ads_rotator-wrapper.select-ads-image.image-ad .wb_ads_rotator-label {
    width: 40%;
}

.wb_ads_rotator-wrapper.select-ads-image.image-ad .wb_ads_rotator-input input.wb_ads_rotator_image {
    width: 95%;
}

.wb_ads_rotator-input label {
    margin-right: 20px;
}

.wb-bp-ads-size span {
    display: block;
    margin-bottom: 5px;
}

.wb_ads_rotator-input.wb-ads-rotator-ads-size {
    display: flex;
}

.wb_ads_rotator-input label span {
    display: block;
    margin-bottom: 5px;
}

.wb_ads_rotator-input .wb_ads_margin {
    width: 100%;
    display: flex;
    clear: both;
}

p.wb_ads_margin_disc {
    display: block;
    margin-bottom: 0;
    clear: both;
    width: 100%;
}

.wb_ads_bg_color input[type="color"],
.wb_ads_text_color input[type="color"] {
    padding: 0;
    border-radius: 0;
    height: 40px;
    width: 40px;
    border: none !important;
    cursor: pointer;
}

.shortcode-text-hide {
    display: none;
}

.ads-shortcode-text {
    margin-left: 40px;
    padding: 5px 12px;
    background-color: #000000df;
    border-radius: 4px;
    color: #fff;
}

.wbcom-wrap .notice.notice-error.is-dismissible.learndash-license-is-dismissible,
#wpwrap .notice.notice-error {
    display: none !important;
}

.document-tooltip {
    position: relative;
    display: inline-block;
}

.doctooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Arrow styling */
.doctooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show the tooltip on hover */
.document-tooltip:hover .doctooltiptext {
    visibility: visible;
    opacity: 1;
}

woocommerce-help-tip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wootooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.woocommerce-help-tip:hover .wootooltiptext {
    visibility: visible;
    opacity: 1;
}

/*** Plugin Feedback Admin Notice ****/

.notice.wc-document-preview-notice {
    border-left-color: #008ec2 !important;
    padding: 20px;
}

.rtl .notice.wc-document-preview-notice {
    border-right-color: #008ec2 !important;
}

.notice.notice.wc-document-preview-notice .wc-document-preview-notice-inner {
    display: table;
    width: 100%;
}

.notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-notice-icon,
.notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-notice-content,
.notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-install-now {
    display: table-cell;
    vertical-align: middle;
}

.notice.wc-document-preview-notice .wc-document-preview-notice-icon {
    color: #509ed2;
    font-size: 50px;
    width: 60px;
}

.notice.wc-document-preview-notice .wc-document-preview-notice-icon img {
    width: 64px;
}

.notice.wc-document-preview-notice .wc-document-preview-notice-content {
    padding: 0 40px 0 20px;
}

.notice.wc-document-preview-notice p {
    padding: 0;
    margin: 0;
}

.notice.wc-document-preview-notice h3 {
    margin: 0 0 5px;
}

.notice.wc-document-preview-notice .wc-document-preview-install-now {
    text-align: center;
}

.notice.wc-document-preview-notice .wc-document-preview-install-now .wc-document-preview-install-button {
    padding: 6px 50px;
    height: auto;
    line-height: 20px;
}

.notice.wc-document-preview-notice a.no-thanks {
    display: block;
    margin-top: 10px;
    color: #72777c;
    text-decoration: none;
}

.notice.wc-document-preview-notice a.no-thanks:hover {
    color: #444;
}

@media screen and (max-width: 1189px) {
    .wbcom-tab-content.woo-document-pro:after {
        height: calc(100% - 75px);
        left: 0;
        top: 0;
        margin: 0;
    }
}

@media (max-width: 767px) {

    .notice.notice.wc-document-preview-notice .wc-document-preview-notice-inner {
        display: block;
    }

    .notice.wc-document-preview-notice {
        padding: 20px !important;
    }

    .notice.wc-document-preview-noticee .wc-document-preview-notice-inner {
        display: block;
    }

    .notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-notice-content {
        display: block;
        padding: 0;
    }

    .notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-notice-icon {
        display: none;
    }

    .notice.wc-document-preview-notice .wc-document-preview-notice-inner .wc-document-preview-install-now {
        margin-top: 20px;
        display: block;
        text-align: left;
    }

    .notice.wc-document-preview-notice .wc-document-preview-notice-inner .no-thanks {
        display: inline-block;
        margin-left: 15px;
    }
}

/* Pro Screen */
.woo-document-pro .wbcom-welcome-main-wrapper a {
  display: block;
  position: relative;
  z-index: 99;
}

.woo-document-pro .wbcom-welcome-main-wrapper small {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  margin-top: -15px;
  margin-left: -85px;
  font-weight: 500;
  z-index: 9;
  line-height: 50px;
  padding: 0 35px;
  font-size: 15px;
  background: #f02f32;
  text-shadow: none;
  transition: all 0.3s;
  box-shadow: 0px 10px 25px rgba(32, 53, 85, 0.35);
  border-radius: 12px;
  border: none;
  transition: all 0.3s;
}

.woo-document-pro .wbcom-welcome-main-wrapper small:hover {
  background: #2a32ef;
}

.woo-document-pro .wbcom-welcome-main-wrapper img {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  background-color: black;
  transition: all 0.3s;
  opacity: 0.5;
  overflow: hidden;
}
/*** end ***/

/*--------------------------------------------------------------
>>> WooCommerce Document Preview Admin Styles
----------------------------------------------------------------
# Meta Box Styles
# Error and Success Messages
# Form Elements
# FAQ Styles (Moved from inline)
# Responsive Design
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Meta Box Styles
--------------------------------------------------------------*/
.wcdp-preview-tr {
    position: relative;
}

.woo-document-preview-table {
    margin-top: 10px;
}

.woo-document-preview-table th {
    font-weight: 600;
    padding: 12px 8px;
    background: #f8f9fa;
    border-bottom: 2px solid #e1e1e1;
}

.woo-document-preview-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e1e1e1;
}

.wcdp-document-file input[type="text"],
.wcdp-document-file input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wcdp-document-file input[type="text"]:focus,
.wcdp-document-file input[type="url"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.wcdp-media-button {
    white-space: nowrap;
    min-width: 100px;
}

.wcdp-document-file .sort {
    cursor: move;
    width: 20px;
    text-align: center;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3h6v2H9zm0 4h6v2H9zm0 4h6v2H9zm0 4h6v2H9z" fill="%23666"/></svg>') no-repeat center;
    background-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.wcdp-document-file .sort:hover {
    opacity: 1;
}

/*--------------------------------------------------------------
# Error and Success Messages (Moved from JS inline)
--------------------------------------------------------------*/
.wcdp-error-messages {
    margin-bottom: 15px;
    display: none;
}

.wcdp-error-box {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #f44336;
}

.wcdp-error-box h4 {
    margin: 0 0 10px 0;
    color: #d32f2f;
    font-size: 14px;
    font-weight: 600;
}

.error-message {
    margin: 5px 0;
    color: #d32f2f;
    font-size: 13px;
}

.wcdp-success-box {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
}

.success-message {
    margin: 0;
    color: #2e7d32;
    font-size: 13px;
}

.field-error {
    color: #dc3232 !important;
    font-size: 12px !important;
    display: block !important;
    margin-top: 2px !important;
}

.wcdp-document-file input.error {
    border-color: #dc3232;
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.8);
}

.wcdp-document-file input.success {
    border-color: #4caf50;
    box-shadow: 0 0 2px rgba(76, 175, 80, 0.8);
}

.wcdp-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.wcdp-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcdp-sort-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    height: 50px;
}

.wcdp-document-file .sort {
    cursor: move;
    width: 20px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 3h6v2H9zm0 4h6v2H9zm0 4h6v2H9zm0 4h6v2H9z" fill="%23666"/></svg>') no-repeat center;
    background-size: 16px;
}

.wcdp-media-button {
    white-space: nowrap;
}

/*--------------------------------------------------------------
# FAQ Styles (Moved from inline in partials file)
--------------------------------------------------------------*/
.wbcom-faq-admin-setting {
    max-width: 1000px;
}

.wbcom-admin-title-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.wbcom-admin-title-section h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #23282d;
}

.wbcom-faq-accordion:after {
    content: '\25BC';
    font-size: 14px;
    color: #666;
    float: right;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.wbcom-faq-accordion.active:after {
    transform: rotate(180deg);
    color: #666;
}

.faq-icon {
    font-size: 18px;
    min-width: 24px;
    margin-right: 12px;
}

.wbcom-faq-panel p:first-child {
    padding-top: 25px;
}

.wbcom-faq-panel ul,
.wbcom-faq-panel ol {
    padding: 0 20px;
    margin: 15px 0;
}

.wbcom-faq-panel li {
    margin: 8px 0;
    line-height: 1.6;
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.file-type {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.file-type strong {
    display: block;
    color: #0073aa;
    margin-bottom: 8px;
    font-size: 14px;
}

.file-type p {
    margin: 0;
    font-size: 13px;
    color: #666;
    padding: 0;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.comparison-method {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.comparison-method h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
}

.comparison-method .pros {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-method .pros li {
    margin: 8px 0;
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.feature-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.feature-category h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
}

.feature-category .button {
    margin-top: 15px;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.support-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    text-align: center;
}

.support-option h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
}

.support-option p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    padding: 0;
}

.support-option .button {
    margin-top: 15px;
}

/*--------------------------------------------------------------
# Form Elements
--------------------------------------------------------------*/
.wcdp-add-document-cl,
.wcdp-delete-document-cl {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
}

.wcdp-add-document-cl {
    background: #0073aa;
    color: white;
}

.wcdp-add-document-cl:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
}

.wcdp-delete-document-cl {
    background: #dc3545;
    color: white;
}

.wcdp-delete-document-cl:hover {
    background: #c82333;
    color: white;
    transform: translateY(-1px);
}

.woocommerce-help-tip {
    color: #666;
    cursor: help;
    margin-left: 5px;
}

.form-field .description {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.wcdp-sort-placeholder {
    background: #f8f9fa;
    border: 2px dashed #0073aa;
    height: 60px;
    border-radius: 4px;
    display: table-row;
}

.ui-sortable-helper {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.notice.wcdp-admin-notice {
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 15px 0;
}

.notice.wcdp-admin-notice.notice-error {
    border-left-color: #dc3545;
}

.notice.wcdp-admin-notice.notice-success {
    border-left-color: #28a745;
}

.notice.wcdp-admin-notice.notice-warning {
    border-left-color: #ffc107;
}

#wc-preview-doc-mata-id .hndle {
    font-size: 16px;
    font-weight: 600;
}

#wc-preview-doc-mata-id .inside {
    padding: 20px;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .woo-document-preview-table {
        font-size: 12px;
    }
    
    .woo-document-preview-table td {
        padding: 5px;
    }
    
    .wcdp-media-button {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .comparison-table,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .file-types-grid {
        grid-template-columns: 1fr;
    }
    
    .wbcom-faq-accordion {
        font-size: 14px;
        padding: 15px;
    }
    
    .faq-icon {
        font-size: 16px;
    }
}

@media screen and (max-width: 600px) {
    .woo-document-preview-table,
    .woo-document-preview-table tbody,
    .woo-document-preview-table tr,
    .woo-document-preview-table td {
        display: block;
        width: 100%;
    }
    
    .woo-document-preview-table thead {
        display: none;
    }
    
    .woo-document-preview-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 8px 10px 8px 40%;
        text-align: left;
    }
    
    .woo-document-preview-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 10px;
        top: 8px;
        font-weight: 600;
        color: #333;
        width: 35%;
    }
    
    .wcdp-document-file .sort {
        display: none;
    }
}