/* Main Container */
/* ========== Phone Input Styles ========== */

/* Validation message styles */

/* Bangladesh specific styling */
.iti--bd .iti__selected-flag {
    padding-right: 5px;
}

.iti--bd .iti__selected-dial-code {
    color: #666;
    font-weight: 500;
}

#estimation-phone::placeholder {
    color: #999;
    opacity: 1;
}
.validation-message {
    font-size: 13px;
    margin-top: 5px;
    padding: 3px 0;
}

.validation-message.valid {
    color: #4CAF50;
}

.validation-message.invalid {
    color: #F44336;
}

/* Phone input specific styles */
#estimation-phone.valid {
    border-color: #4CAF50 !important;
}

#estimation-phone.error {
    border-color: #F44336 !important;
}

/* Country code display */
.iti__selected-dial-code {
    font-size: 15px;
    color: #4a5568;
    margin-left: 6px;
}
.iti {
  width: 100%;
  margin-top: 5px;
}
.iti__selected-country{
	border: none!important;
	display: flex!important;
	padding: 0px!important;
}
.iti__selected-country:hover{
	background-color: transparent!important;
}
.iti__selected-country:focus{
	background-color: transparent!important;
}
/* Flag container */
.iti__flag-container {
  padding: 0 8px 0 15px;
  border-right: 1px solid #e0e3e9;
  border-radius: 4px 0 0 4px;
  background: #f8f9fa;
}

/* Selected flag */
.iti__selected-flag {
  padding: 0 6px 0 0;
  z-index: 1;
}

/* Country code */
.iti__selected-dial-code {
  font-size: 15px;
  color: #4a5568;
  margin-left: 6px;
}

/* Input field */
#estimation-phone {
  padding-left: 90px !important;
  border-radius: 0 4px 4px 0 !important;
  margin-left: -1px !important;
}

/* Dropdown styling */
.iti__country-list {
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #e0e3e9;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.iti__country {
  padding: 8px 15px;
}

/* Arrow styling */
.iti__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #555;
  margin-left: 6px;
}

/* Focus states */
.form-group:focus-within .iti__flag-container {
  border-color: #4d90fe;
}

/* Validation states */
.iti--valid #estimation-phone {
  border-color: #4CAF50 !important;
}

.iti--error #estimation-phone {
  border-color: #F44336 !important;
}

/* Make sure flag images display properly */
.iti__flag {
  box-shadow: none;
  background-image: url("../libs/intl-tel-input/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("../libs/intl-tel-input/img/flags@2x.png");
  }
}
table thead:first-child tr:first-child th {
    border-block-start: 1px solid hsl(0deg 0% 50% / 6%)!important;
}
.wc-estimation-wrapper {
    max-width: 1550px;
    margin: 0 auto;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
}

/* Search Section */
.wc-search-container {
    position: relative;
    margin-bottom: 30px;
    max-width: 100%;
}

.wc-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e0e3e9;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wc-search-input:focus {
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
    outline: none;
}

.wc-search-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #e0e3e9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.wc-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-search-result-item:hover {
    background: #f8fafd;
}

.wc-search-result-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f2f5;
    background: white;
}

.wc-search-result-info {
    flex: 1;
}

.wc-search-result-info div:first-child {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.wc-search-result-info div:last-child {
    color: #414040a8;
    font-weight: 800;
    font-size: 15px;
}

.wc-add-to-estimation {
    background: #414040;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wc-add-to-estimation:hover {
    background: #2f855a;
}

.wc-add-more-btn{
	background: #ffffff;
    color: #414040;
    border: 1px solid #414040;
    padding: 8px 16px;
    border-radius: 1px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wc-add-more-btn:hover {
    background: #414040;
}

/* Estimation Layout */
.wc-estimation-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.wc-estimation-products {
    flex: 2;
    background: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wc-estimation-summary {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    border: 1px solid #f0f2f5;
}

.wc-estimation-item:last-child {
    border-bottom: none;
}

.wc-estimation-item-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f2f5;
    background: white;
    padding: 5px;
}

.wc-estimation-item-info {
    flex: 1;
    min-width: 0;
}

.wc-estimation-item-price {
    font-weight: 600;
    color: #38a169;
    font-size: 16px;
}

/* Table Styles */
.wc-estimation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.wc-estimation-table th, 
.wc-estimation-table td {
    padding: 12px 16px;
    border: 1px solid #f0f2f5;
    text-align: center;
    vertical-align: middle;
	font-weight: 800;
}

.wc-estimation-table th {
    background-color: #f8fafd;
    font-weight: 800;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.wc-estimation-table tr:hover td {
    background-color: #f8fafd;
}

/* Button Styles */
.remove-product-btn {
    background: #e53e3e;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-product-btn:hover {
    background: #c53030;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-minus, 
.quantity-plus {
    padding: 6px 12px;
    border: 1px solid #e0e3e9;
    background: white;
    cursor: pointer;
    font-size: 16px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.quantity-minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.quantity-plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.quantity-minus:hover, 
.quantity-plus:hover {
    background: #f8fafd;
    color: #414040;
}

.product-quantity {
    width: 50px;
    text-align: center;
    margin: 0;
    padding: 6px;
    border: 1px solid #e0e3e9;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
    font-size: 15px;
}

.product-quantity::-webkit-outer-spin-button,
.product-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Summary Section */
.wc-estimation-total {
    font-size: 22px;
    font-weight: 800;
    margin: 25px 0;
    color: #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-download-btn {
    background: #414040;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wc-new-estimate-btn{
	 background: #008000;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}
.wc-new-estimate-btn:hover{
	    background: #2c5282;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wc-download-btn:hover {
    background: #2c5282;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form Styles */
.estimation-form {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    width: 100%!important;
    padding: 10px 14px!important;
    border: 1px solid #e0e3e9!important;
    border-radius: 4px!important;
    font-size: 15px!important;
    transition: all 0.2s ease!important;
}

.form-group input:focus {
    border-color: #4d90fe!important;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2)!important;
    outline: none!important;
}

#estimation-success {
    padding: 20px;
    background: #f0fff4;
    border-radius: 4px;
    margin-top: 20px;
    border: 1px solid #c6f6d5;
    color: #2f855a;
}

#estimation-success p {
    margin: 0;
    font-size: 16px;
}

#estimation-form-container {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

#estimation-form-container.visible {
    max-height: 500px;
}

/* Admin Styles */
.wrap h1.wp-heading-inline {
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 700;
}

.view-products-btn {
    margin-right: 8px;
    background: #414040;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-products-btn:hover {
    background: #2c5282;
}

#products-list-container table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#products-list-container th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafd;
    font-weight: 600;
    color: #4a5568;
}

#products-list-container td {
    padding: 12px 16px;
    border-top: 1px solid #f0f2f5;
}

.close-modal {
    margin-top: 20px;
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #c53030;
}
.pimagetitle {
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    text-align: left !important;
    padding: 8px; /* Add some spacing */
    max-width: 100%; /* Prevent overflow */
    overflow-wrap: break-word; /* Wrap long words */
}

.pimagetitle img {
    max-width: 50px; /* Control image size */
    height: auto;
    margin-right: 10px; /* Space between image and text */
    flex-shrink: 0; /* Prevent shrinking */
}
/* Responsive Design */
@media (max-width: 1024px) {
    .wc-estimation-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .wc-estimation-products,
    .wc-estimation-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wc-estimation-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .wc-search-result-item {
        text-align: left;
        gap: 8px;
        line-height: 20px;
    }
    
    .wc-search-result-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .wc-add-to-estimation {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .quantity-controls {
        gap: 5px;
    }
    
    .quantity-minus, 
    .quantity-plus {
        width: 100%;
        border-radius: 4px;
        border: 1px solid #e0e3e9;
    }
    
    .product-quantity {
        width: 100%;
        border-radius: 4px;
        border: 1px solid #e0e3e9;
    }


}