/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
.wcip-invoice-data {
	background-color: white;
	border: 1px solid #c3c4c7;
	padding: 23px 24px 12px;
	margin-top: 20px;
	min-width: 714px;
	max-width: 714px;
}

.invoice-row-wrap {
	display: flex;
	gap: 10px;
	margin: 20px 0px;
}

.input-row-wrap-global-settings {
	background-color: #FBFBFB;
	border: 1px solid #ccc;
	padding: 25px !important;
	margin: 10px 0 10px;
	font-size: 15px;
}

.invoice-column-wrap {
	display: flex;
	flex-direction: column;
	margin: 20px 0px;
}

.input-row-wrap {
	display: flex;
	flex-direction: column;
	padding: 6px 0px;
}

.input-row-wrap label {
	margin-bottom: 2px;
}

.input-column-wrap {
	display: flex;
	flex-direction: row;
	padding: 6px 0px;
	flex-wrap: nowrap;
	align-items: flex-end;
}

@keyframes spin {
	from {
		transform: rotate(360deg);
	}

	to {
		transform: rotate(0deg);
	}
}

.dashicons-image-rotate {
	display: none;
	/* Oculto por padrão */
	animation: spin 1s linear infinite;
	/* Aplica a animação de rotação */
}

.wcip-form-wrap {
	display: flex;
	flex-flow: wrap;
	gap: 2%;
}

.wcip-postbox {
	min-width: 345px;
	/* max-height: 128px; */
}

.wcip-row {
	display: flex;
	flex-direction: column;
}

.text-bold {
	font-weight: bold;
	font-size: 1.2em;
}

.action-btn {
	display: flex;
	justify-content: end;
}

.price-row-wrap {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 15px;
	margin: 10px 0px;
}

.btn {
	border: none;
	/* Remove borders */
	font-size: 13px;
	/* Set a font size */
	cursor: pointer;
	/* Mouse pointer on hover */
}

.btn-delete {
	background-color: white;
	color: black;
	padding: 4px 10px;
}

.btn-delete:hover {
	background-color: rgba(202, 0, 0, 0.767);
}

.btn-add-line {
	background-color: #f6f7f7;
	color: #2271b1;
	border-color: #2271b1;
	border: solid 1px;
	padding: 0px 30px;
	min-height: 30px;
	border-radius: 3px;
}

.btn-add-line:hover {
	background: #f0f0f1;
	border-color: #0a4b78;
	color: #0a4b78;
}

.lkn_wcip_amount_input {
	width: 193px;
}

#lkn_wcip_due_date_input {
	width: 100%;
}

.lkn_wcip_notice_positive {
	background-color: green;
	display: flex;
	justify-content: center;
	color: white;
	padding: 8px;
	font-size: 1.1em;
	animation: hideAnimation 0s ease-in 5s;
	animation-fill-mode: forwards;
}

.lkn_wcip_notice_negative {
	background-color: rgb(175, 2, 2);
	display: flex;
	justify-content: center;
	color: white;
	padding: 8px;
	font-size: 1.1em;
	animation: hideAnimation 0s ease-in 5s;
	animation-fill-mode: forwards;
}

@keyframes hideAnimation {
	to {
		visibility: hidden;
		width: 0;
		height: 0;
	}
}

.lkn_wcip_delete_btn_form {
	color: #ee0000 !important;
	border-color: #ee0000 !important;
	margin: 0px 7px 0px 0px !important;
}

#lkn-wcip-preview-img {
	width: 352px !important;
	max-width: 352px !important;
	min-width: 352px !important;
	border: 2px solid rgb(211, 213, 159);
	border-radius: 3px;
	position: absolute;
	z-index: 999999;
	box-shadow: 3px 3px 3px 0 #d3d3d35e;
	display: none;
}

#lkn-wcip-preview-template-btn {
	margin-top: 10px;
}

#lkn-wcip-share-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}

#lkn-wcip-share-modal-content {
	background: #fff;
	padding: 20px;
	border: 1px solid #ccc;
	max-width: 80%;
	max-height: 80%;
	overflow: auto;
	position: relative;
	text-align: center;
	border-radius: 0.4rem;
	display: flex;
	flex-direction: column;
	gap: 1vh;
}

#lkn-wcip-share-buttons {
	display: flex;
	gap: 0.5rem;
}


.lkn-wcip-share-icon {
	display: block;
	width: 50px;
	height: 50px;
	margin-bottom: 10px;
	border-radius: 50%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	font-size: 24px;
	color: white !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

#lkn-wcip-whatsapp-share {
	background-color: #25D366;
}

#lkn-wcip-twitter-share {
	background-color: #1DA1F2;
}

#lkn-wcip-email-share {
	background-color: #0072b1;
}

#modalHeader {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	padding: 10px;
	position: relative;
}

#lkn-wcip-close-modal-btn {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 24px;
	color: #000 !important;
	text-decoration: none;
}

.lkn_swcip_share_btn_form {
	margin: 0px 7px 0px 0px !important;
}

#twoCheckboxDiv {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 6px;
}

#lkn-wcip-share-title {
	text-align: start;
}

#lkn-wcip-copy-link-div {
	display: flex;
	align-items: center;
}

#lkn-wcip-copy-input {
	flex: 1;
	padding: 0.6em;
	border: 1px solid #ccc;
}

.lkn-wcip-copy-button {
	cursor: pointer;
	background-color: #f0f0f0;
	padding: 0.9em;
	border: 1px solid #ccc;
}

.lkn-wcip-copy-button:hover {
	background-color: #e0e0e0;
}

.lkn_wcip_subscription_interval_div, .lkn_wcip_partial_field_div{
	display: flex;
}

.select2.select2-container.select2-container--default.select2-container--below.select2-container--focus {
	width: 250px !important;
}

#lkn_wcip_subscription_limit_checkbox_div {
	margin-top: 25px;
}

.lkn_wcip_payment_global_template_label {
	display: flex;
	flex-direction: column;
}

.lkn_wcip_payment_global_template_label_description {
	font-size: small;
}

#wcPaymentInvoiceTitles {
	display: flex;
	justify-content: space-between;
	margin-right: 210px;
}

.flex-row {
	display: flex;
	flex-direction: row;
}

.tooltip {
	position: relative;
	display: inline-block;
	background-color: #a99f93;
	border-radius: 70%;
	order: 3;
	width: 20px;
	height: 20px;
	color: white;
    text-align: center;
    cursor: pointer;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 200px;
	background-color: #555;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	/* Adjust this value to control the position of the tooltip */
	left: 50%;
	margin-left: -100px;
	/* Adjust this value to center the tooltip */
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

#lkn_wcip_subscription_active {
	padding-top: 23px;
}

#lkn_wcip_subscription_interval_div_tip, #lkn_wcip_partial_complete_status_tip{
	padding-left: 6px;
}

#lkn_wcip_partial_interval_fields{
	display: flex;
    gap: 15px;
    flex-direction: column;
}

#lkn_wcip_partial_interval_fields, #lkn_wcip_partial_payments_method_div{
	display: none;
}

#lkn_wcip_partial_field, .lkn_wcip_fee_or_discount_field{
	min-width: 216px;
}

.lkn_wcip_partial_title{
	margin-bottom: 20px;
}

.lkn_wcip_partial_payments_method_div{
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.lkn_wcip_partial_payments_methods_div{
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.lkn_wcip_partial_payments_method_label p{
	margin-bottom: 4px;
}

.lkn_wcip_partial_payments_method_label{
	display: flex;
    flex-direction: row;
    align-items: center;
	gap: 3px;
}

.lkn_wcip_partial_payments_method_div_fields{
	display: flex;
	gap: 8px;
}

.lkn_wcip_partial_payments_method_div_fields.firstField{
	margin-top: 10px;
	margin-bottom: 10px;
}

#lkn_wcip_partial_payments_method_div, #lkn_wcip_partial_payments_fees_or_discounts{
	padding: 20px;
    margin-top: 40px;
    border: solid;
    border-color: #CCCCCC;
    border-width: 1px;
    background-color: #F0F0F1;
	width: 405px;
}

#lkn_wcip_partial_payments_fees_or_discounts{
	margin-top: 10px !important;
}

.lkn_wcip_partial_payments_method_div_empty{
	padding: 20px;
    margin-top: 40px;
    border: solid;
    border-color: #CCCCCC;
    border-width: 1px;
    background-color: #F0F0F1;
	width: 405px;
}

.select2-selection__placeholder{
	color: rgb(0, 0, 0) !important;
}

.select2-selection__rendered{
	box-shadow: 0 0 0 transparent;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    background-color: #fff;
}


#select2-lkn_wcip_email_input-container{
	border: 0px !important;
	height: 100% !important;
}

.select2.select2-container.select2-container--default{
	width: 350px !important;
}

label[for="lkn_wcip_customer_input"] {
	display: flex;
	justify-content: space-between;
}

.order-status.status-partial-comp, .order-status.status-quote-approved {
	background: #68cf68;
    color: #224522;
}

.order-status.status-quote-expired, .order-status.status-quote-cancelled {
	background: #eba3a3;
    color: #570000;
}

.order-status.status-quote-awaiting {
	background: #f8dda7;
    color: #573b00;
}

#wpfooter{
	display: contents !important;
}

.lkn_wcip_fee_or_discounts_method_div_fields{
	display: flex;
    gap: 10px;
    align-items: center;
}

.lkn_wcip_fee_or_discounts_method_label{
	display: flex;
    align-items: center;
    gap: 5px;
}

.lkn_wcip_fee_or_discounts_method_div{
	display: flex;
    flex-direction: column;
}

.lkn_wcip_fee_or_discounts_method_fields_div{
	display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.lkn_wcip_fee_or_discounts_method_fields_divs {
	display: flex;
    gap: 10px;
}

.lkn_wcip_fee_or_discounts_method_fields_flex_rows{
	display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn{
	display: block !important;
}

.action-btn input{
	padding: 1px 18px !important;
}

.invoice_settings .title b{
	font-size: 1.2em !important; 
}

.lkn_wcip_show_fee_or_discount_method_div_fields{
	display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
	padding-left: 21px;
}

.lkn_wcip_show_fee_or_discount_method_div_fields label{
	display: flex;
    align-items: center;
    gap: 8px;
}


.lkn_wcip_show_fee_or_discount_method_div_fields input{
	margin: 0px !important;
}

/* Product Search Modal Styles */
.lkn-wcip-modal {
    display: none;
    position: fixed;
    z-index: 160000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.lkn-wcip-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lkn-wcip-modal-header {
    padding: 20px 24px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lkn-wcip-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lkn-wcip-modal-close {
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.lkn-wcip-modal-close:hover,
.lkn-wcip-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.lkn-wcip-modal-body {
    padding: 24px;
}

.lkn-wcip-modal-footer {
    padding: 20px 24px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    text-align: right;
}

.lkn-wcip-modal-footer .button {
    margin-left: 10px;
}

.lkn-wcip-product-search-container {
    margin-bottom: 30px;
}

.lkn-wcip-product-search-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.lkn-wcip-selected-products {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.lkn-wcip-selected-products h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.lkn-wcip-selected-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
}

.lkn-wcip-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lkn-wcip-product-info strong {
    font-weight: 600;
}

.lkn-wcip-product-price {
    color: #666;
    font-size: 14px;
}

.lkn-wcip-product-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lkn-wcip-product-controls label {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.lkn-wcip-product-quantity {
    width: 60px;
    text-align: center;
}

.lkn-wcip-remove-product {
    padding: 4px 8px;
    min-height: auto;
    line-height: 1;
}

.lkn-wcip-remove-product .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lkn-wcip-no-products {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Add Product Button */
.add-order-item {
    margin-left: 10px;
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.add-order-item:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Select2 customizations for the modal */
.lkn-wcip-modal .select2-container {
    width: 100% !important;
}

.lkn-wcip-modal .select2-selection {
    min-height: 32px;
    border-color: #ddd;
}

.lkn-wcip-modal .select2-selection__rendered {
    padding-left: 8px;
    padding-right: 20px;
}

.lkn-wcip-modal .select2-selection__arrow {
    height: 30px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .lkn-wcip-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .lkn-wcip-selected-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lkn-wcip-product-controls {
        align-self: stretch;
        justify-content: flex-end;
    }
}

#lkn_invoice_quote_gateway{
	display: none !important;
}

.lkn-quote-actions{
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.lkn-quote-actions button{
	margin: 0px !important;
}

.lkn-quote-actions p{
	margin: 0px !important;
	padding: 0px !important;
}

.quote-actions-buttons{
	display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
	margin: 10px 0px !important;
}

.quote-actions-buttons .submit{
	margin: 0px !important;
    padding: 0px !important;
}

.quote-actions-buttons input{
	padding-left: 15px !important;
    padding-right: 15px !important
}

.quote-links-wrap{
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.lknLinkQuotes{
	margin: 0px !important;
	margin-top: 5px !important;
	padding: 0px !important;
	display: flex;
    gap: 6px;
}

.lknLinkQuotes.invoice{
    margin-bottom: 10px !important;
    margin-top: 12px !important;
}

.lknLinkQuotes {
	color: #2271b1 !important;
	text-decoration: underline !important;
	cursor: default !important;
}

.lknLinkQuotes *:hover {
	color: #135e96 !important;
	text-decoration: none !important;
}

.lknButtonsActionsEdit{
	display: flex;
	gap: 10px;
}