/* app/Plugin/QuotationRequest/Resource/assets/css/quotation_request.css */

/* --- Header Cart Icon / Badge --- */
.plg-quote-cart-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: #555;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    transition: color 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.plg-quote-cart-btn:hover {
    color: #2c7be5;
}

.plg-quote-cart-btn i {
    font-size: 16px;
    margin-right: 6px;
}

.plg-quote-cart-badge {
    background-color: #e74c3c;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -2px;
    font-weight: bold;
    line-height: 1.2;
}

/* --- Add to Quote Button on Product Detail --- */
.plg-quotation-btn-area {
    margin-top: 15px;
    margin-bottom: 15px;
}

.plg-btn-add-to-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c7be5;
    color: #fff !important;
    border: 1px solid #2c7be5;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    max-width: 300px;
    text-decoration: none;
}

.plg-btn-add-to-quote:hover {
    background-color: #1a68d1;
    border-color: #1a68d1;
}

.plg-btn-add-to-quote:active {
    transform: scale(0.98);
}

.plg-btn-add-to-quote i {
    margin-right: 8px;
    font-size: 14px;
}

.plg-quotation-msg {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
    max-width: 300px;
}

.plg-quotation-msg.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.plg-quotation-msg.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- Quotation Cart Page --- */
.plg-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.plg-cart-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #333;
}

.plg-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
}

.plg-cart-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
}

.plg-cart-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.plg-cart-img-col {
    width: 80px;
}

.plg-cart-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.plg-cart-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
}

.plg-cart-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.plg-cart-name a:hover {
    color: #2c7be5;
}

.plg-cart-class {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
}

.plg-cart-qty-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.plg-cart-price {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.plg-cart-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #e74c3c;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s ease;
}

.plg-cart-delete-btn:hover {
    color: #c0392b;
}

.plg-cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.plg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.plg-btn-secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}

.plg-btn-secondary:hover {
    background-color: #f1f1f1;
}

.plg-btn-primary {
    background-color: #2c7be5;
    color: #fff !important;
    border: 1px solid #2c7be5;
}

.plg-btn-primary:hover {
    background-color: #1a68d1;
}

.plg-empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.plg-empty-cart-msg p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* --- Form Styling --- */
.plg-form-section {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
}

.plg-form-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c7be5;
    padding-bottom: 8px;
    color: #333;
}

.plg-form-group {
    margin-bottom: 20px;
}

.plg-form-label-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.plg-form-group label,
.plg-form-label-wrap label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0;
    color: #495057;
    font-size: 14px;
}

.plg-form-required {
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: bold;
    display: inline-block;
}

.plg-input,
.plg-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.plg-input:focus,
.plg-textarea:focus {
    border-color: #2c7be5;
    outline: none;
}

.plg-textarea {
    min-height: 120px;
    resize: vertical;
}

.plg-form-errors {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

.plg-form-errors li {
    margin-bottom: 3px;
}

.plg-form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.ec-headerRole__cart {
    display: flex;
    align-items: center;
}

/* --- Quotation Complete Page --- */
.plg-complete-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.plg-complete-icon {
    font-size: 72px;
    color: #2ec866;
    margin-bottom: 24px;
    display: inline-block;
    animation: plg-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes plg-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.plg-complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.plg-complete-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 600;
}

.plg-complete-info-box {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 6px;
    max-width: 480px;
    margin: 0 auto 36px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.plg-complete-info-box p {
    font-size: 14px;
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.6;
}

.plg-complete-info-box p:last-child {
    margin-bottom: 0;
}

.plg-complete-quote-no {
    display: inline-block;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    margin-top: 10px;
}

/* --- My Page / Quotation History List --- */
.plg-mypage-layout {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.plg-mypage-nav-col {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.plg-mypage-main-col {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 991.98px) {
    .plg-mypage-nav-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    .plg-mypage-main-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.plg-mypage-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.plg-mypage-card {
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    overflow: hidden;
}

.plg-mypage-card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.plg-mypage-header-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.plg-mypage-date {
    font-size: 13px;
    color: #858796;
}

.plg-mypage-quote-no {
    font-size: 14px;
    font-weight: 700;
    color: #4e73df;
}

.plg-mypage-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 40px;
    color: #fff;
    text-align: center;
}

.plg-mypage-badge.status-pending { background-color: #858796; }
.plg-mypage-badge.status-processing { background-color: #f6c23e; }
.plg-mypage-badge.status-quoted { background-color: #36b9cc; }
.plg-mypage-badge.status-ordered { background-color: #1cc88a; }
.plg-mypage-badge.status-canceled { background-color: #e74a3b; }
.plg-mypage-badge.status-expired { background-color: #5a5c69; }

.plg-mypage-btn-detail {
    display: inline-block;
    background-color: #fff;
    color: #4e73df;
    border: 1px solid #4e73df;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.plg-mypage-btn-detail:hover {
    background-color: #4e73df;
    color: #fff;
}

.plg-mypage-card-body {
    padding: 20px;
}

.plg-mypage-item-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eaecf4;
}

.plg-mypage-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plg-mypage-item-row:first-child {
    padding-top: 0;
}

.plg-mypage-item-img-box {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}

.plg-mypage-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e3e6f0;
}

.plg-mypage-item-info {
    flex-grow: 1;
}

.plg-mypage-item-name {
    font-weight: 700;
    font-size: 14px;
    color: #3a3b45;
    margin-bottom: 4px;
}

.plg-mypage-item-spec {
    font-size: 12px;
    color: #858796;
    margin-bottom: 2px;
}

.plg-mypage-item-qty {
    font-size: 13px;
    color: #5a5c69;
}

.plg-mypage-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.plg-mypage-info-block {
    background: #f8f9fc;
    border: 1px solid #eaecf4;
    border-radius: 6px;
    padding: 15px 20px;
}

.plg-mypage-info-title {
    font-size: 14px;
    font-weight: 700;
    color: #4e73df;
    margin-bottom: 12px;
    border-bottom: 1px solid #e3e6f0;
    padding-bottom: 6px;
}

.plg-mypage-info-item {
    font-size: 13px;
    color: #5a5c69;
    margin-bottom: 8px;
    line-height: 1.5;
}

.plg-mypage-info-item:last-child {
    margin-bottom: 0;
}

.plg-mypage-info-item strong {
    color: #3a3b45;
    display: inline-block;
    width: 100px;
}

.plg-mypage-item-subtotal {
    font-weight: 600;
    color: #e74a3b;
    margin-top: 4px;
    font-size: 13px;
}

.plg-mypage-total-box {
    text-align: right;
    padding: 15px 20px;
    background: #f8f9fc;
    border: 1px solid #eaecf4;
    border-radius: 6px;
    margin-top: 20px;
}

.plg-mypage-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #5a5c69;
    margin-right: 15px;
}

.plg-mypage-total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #e74a3b;
}

.plg-mypage-action-box {
    text-align: center;
    margin: 35px 0;
    background: #f8f9fc;
    border: 1px solid #eaecf4;
    border-radius: 6px;
    padding: 30px 20px;
}

.plg-mypage-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1cc88a;
    color: #fff !important;
    border: 1px solid #1cc88a;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(28, 200, 138, 0.15);
}

.plg-mypage-btn-accept:hover {
    background-color: #17a673;
    border-color: #17a673;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(28, 200, 138, 0.2);
}

.plg-mypage-btn-accept:active {
    transform: translateY(0);
}

.plg-mypage-btn-accept i {
    margin-right: 8px;
}

.plg-mypage-btn-cancel {
    display: inline-block;
    background-color: #fff;
    color: #858796;
    border: 1px solid #d1d3e2;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.plg-mypage-btn-cancel:hover {
    background-color: #f8f9fc;
    color: #6e707e;
    border-color: #b7b9cc;
}