/**
 * QuoteCart Shortcodes Styles
 *
 * @package QuoteCart
 */

/* Login Shortcode Styles */
.quotecart-login {
    max-width: 400px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quotecart-login__container {
    width: 100%;
}

.quotecart-login__title {
    margin: 0 0 0.5em;
    font-size: 1.5em;
    font-weight: 600;
    color: #23282d;
}

.quotecart-login__description {
    margin: 0 0 1.5em;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.quotecart-login__message {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    font-size: 0.9em;
}

.quotecart-login__message--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quotecart-login__message--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quotecart-login__message--info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.quotecart-login__form {
    margin: 0;
}

.quotecart-login__field {
    margin: 0 0 1.5em;
}

.quotecart-login__field--remember {
    margin-bottom: 1em;
}

.quotecart-login__label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #23282d;
    font-size: 0.9em;
}

.quotecart-login__label--checkbox {
    display: inline-block;
    font-weight: 400;
    cursor: pointer;
}

.quotecart-login__input {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box;
}

.quotecart-login__input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.quotecart-login__checkbox {
    margin-right: 0.5em;
    cursor: pointer;
}

.quotecart-login__submit {
    margin: 1.5em 0 0;
}

.quotecart-login__button {
    width: 100%;
    padding: 0.75em 1.5em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quotecart-login__button:hover {
    background: #135e96;
}

.quotecart-login__button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2271b1;
}

.quotecart-login__redirect {
    margin: 1.5em 0 0;
    text-align: center;
}

.quotecart-login__link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-login__link:hover {
    text-decoration: underline;
}

/* Register Shortcode Styles */
.quotecart-register {
    max-width: 400px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quotecart-register__container {
    width: 100%;
}

.quotecart-register__title {
    margin: 0 0 0.5em;
    font-size: 1.5em;
    font-weight: 600;
    color: #23282d;
}

.quotecart-register__description {
    margin: 0 0 1.5em;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.quotecart-register__message {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    font-size: 0.9em;
}

.quotecart-register__message--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quotecart-register__message--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quotecart-register__form {
    margin: 0;
}

.quotecart-register__field {
    margin: 0 0 1.5em;
}

.quotecart-register__label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #23282d;
    font-size: 0.9em;
}

.quotecart-register__input {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box;
}

.quotecart-register__input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.quotecart-register__submit {
    margin: 1.5em 0 0;
}

.quotecart-register__button {
    width: 100%;
    padding: 0.75em 1.5em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quotecart-register__button:hover {
    background: #135e96;
}

.quotecart-register__button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2271b1;
}

.quotecart-register__link-wrap {
    margin: 1em 0 0;
}

.quotecart-register__link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-register__link:hover {
    text-decoration: underline;
}

/* Quotes Shortcode Styles */
.quotecart-quotes {
    max-width: 1200px;
}

.quotecart-quotes__header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 2px solid #ddd;
}

.quotecart-quotes__title {
    margin: 0 0 0.5em;
    font-size: 2em;
    font-weight: 600;
    color: #23282d;
}

.quotecart-quotes__count {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.quotecart-quotes__create {
    margin-top: 1.5em;
}

.quotecart-quotes__create-form {
    margin: 0;
}

.quotecart-quotes__create-field {
    margin: 0 0 1em;
}

.quotecart-quotes__create-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #23282d;
    font-size: 0.9em;
}

.quotecart-quotes__create-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.5;
    box-sizing: border-box;
}

.quotecart-quotes__create-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.quotecart-quotes__create-submit {
    margin: 1em 0 0;
}

.quotecart-quotes__create-button {
    padding: 0.75em 1.5em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quotecart-quotes__create-button:hover {
    background: #135e96;
}

.quotecart-quotes__create-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2271b1;
}

.quotecart-quotes__message {
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 4px;
    font-size: 0.9em;
}

.quotecart-quotes__message--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quotecart-quotes__message--info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.quotecart-quotes__message--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quotecart-quotes__empty {
    padding: 3em 1em;
    text-align: center;
}

.quotecart-quotes__empty-message {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.quotecart-quotes__table-wrapper {
    overflow-x: auto;
    margin-bottom: 2em;
}

.quotecart-quotes__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quotecart-quotes__thead {
    background: #f8f9fa;
}

.quotecart-quotes__row {
    border-bottom: 1px solid #ddd;
}

.quotecart-quotes__row--header {
    border-bottom: 2px solid #ddd;
}

.quotecart-quotes__row:hover {
    background: #f8f9fa;
}

.quotecart-quotes__cell {
    padding: 1em;
    text-align: left;
    font-size: 0.9em;
}

.quotecart-quotes__cell--header {
    font-weight: 600;
    color: #23282d;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.quotecart-quotes__status {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: capitalize;
}

.quotecart-quotes__status--draft {
    background: #e9ecef;
    color: #495057;
}

.quotecart-quotes__status--pending {
    background: #fff3cd;
    color: #856404;
}

.quotecart-quotes__status--quoted {
    background: #d1ecf1;
    color: #0c5460;
}

.quotecart-quotes__status--open {
    background: #cfe2ff;
    color: #084298;
}

.quotecart-quotes__status--converted {
    background: #d4edda;
    color: #155724;
}

.quotecart-quotes__action-form {
    display: inline-block;
    margin: 0 0 0 1em;
}

.quotecart-quotes__action-button {
    padding: 0.5em 1em;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.quotecart-quotes__action-button--send {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.quotecart-quotes__action-button--send:hover {
    background: #135e96;
    border-color: #135e96;
}

.quotecart-quotes__action-button--convert {
    background: #00a32a;
    color: #fff;
    border-color: #00a32a;
}

.quotecart-quotes__action-button--convert:hover {
    background: #008a20;
    border-color: #008a20;
}

.quotecart-quotes__action-button--pay {
    background: #00a32a;
    color: #fff;
    border-color: #00a32a;
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.quotecart-quotes__action-button--pay:hover {
    background: #008a20;
    border-color: #008a20;
    color: #fff;
}

.quotecart-quotes__pay-submit {
    margin-top: 1.5em;
}

.quotecart-quotes__pagination {
    margin-top: 2em;
    text-align: center;
}

.quotecart-quotes__pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.25em;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2271b1;
    text-decoration: none;
    transition: all 0.2s;
}

.quotecart-quotes__pagination .page-numbers:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.quotecart-quotes__pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.quotecart-quotes__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75em;
}

.quotecart-quotes__view-link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-quotes__view-link:hover {
    text-decoration: underline;
}

.quotecart-quotes__delete-form {
    display: inline-block;
    margin: 0;
}

.quotecart-quotes__button {
    padding: 0.35em 0.75em;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

.quotecart-quotes__button--delete {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.quotecart-quotes__button--delete:hover {
    background: #c82333;
    border-color: #bd2130;
}

.quotecart-quotes__back {
    margin: 1em 0 2em;
}

.quotecart-quotes__back-link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-quotes__back-link:hover {
    text-decoration: underline;
}

.quotecart-quotes__detail {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quotecart-quotes__detail-title {
    margin: 0 0 0.5em;
    font-size: 1.5em;
    font-weight: 600;
    color: #23282d;
}

.quotecart-quotes__detail-meta {
    margin: 0 0 1.5em;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

.quotecart-quotes__detail-meta span {
    margin-right: 1em;
}

.quotecart-quotes__detail-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.quotecart-quotes__detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9em;
}

.quotecart-quotes__product-link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-quotes__product-link:hover {
    text-decoration: underline;
}

.quotecart-quotes__product-id {
    margin-left: 0.25em;
    font-size: 0.9em;
    color: #666;
}

.quotecart-quotes__row--editing {
    background: #e7f3ff;
}

.quotecart-quotes__editing-badge {
    display: inline-block;
    margin-left: 0.5em;
    padding: 0.2em 0.5em;
    font-size: 0.75em;
    font-weight: 600;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
}

.quotecart-quotes__edit-form {
    display: inline-block;
    margin: 0;
}

.quotecart-quotes__button--edit {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.quotecart-quotes__button--edit:hover {
    background: #135e96;
    border-color: #135e96;
}

.quotecart-quotes__update-form {
    margin: 0 0 1.5em;
}

.quotecart-quotes__quantity-input {
    width: 4em;
    padding: 0.35em 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

.quotecart-quotes__quantity-input:focus {
    outline: none;
    border-color: #2271b1;
}

.quotecart-quotes__cell--total {
    white-space: nowrap;
}

.quotecart-quotes__remove-line {
    padding: 0.35em 0.75em;
    font-size: 0.85em;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
}

.quotecart-quotes__remove-line:hover {
    background: #dc3545;
    color: #fff;
}

.quotecart-quotes__update-submit {
    margin: 1em 0 0;
}

.quotecart-quotes__update-button {
    padding: 0.75em 1.5em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

.quotecart-quotes__update-button:hover {
    background: #135e96;
}

/* Add to cart (add to quote) shortcode */
.quotecart-add-to-cart {
    margin: 1em 0;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
}

.quotecart-add-to-cart__message {
    margin: 0 0 0.75em;
    padding: 0.75em;
    border-radius: 4px;
    font-size: 0.9em;
}

.quotecart-add-to-cart__message--info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.quotecart-add-to-cart__message--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.quotecart-add-to-cart__message--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.quotecart-add-to-cart__link-wrap {
    margin: 0.5em 0 0;
}

.quotecart-add-to-cart__link {
    color: #2271b1;
    text-decoration: none;
}

.quotecart-add-to-cart__link:hover {
    text-decoration: underline;
}

.quotecart-add-to-cart__quote-label {
    margin: 0 0 0.75em;
    font-size: 0.9em;
    color: #666;
}

.quotecart-add-to-cart__form {
    margin: 0;
}

.quotecart-add-to-cart__field {
    margin: 0 0 0.75em;
}

.quotecart-add-to-cart__label {
    display: block;
    margin-bottom: 0.35em;
    font-weight: 600;
    font-size: 0.9em;
    color: #23282d;
}

.quotecart-add-to-cart__input {
    width: 5em;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.quotecart-add-to-cart__input:focus {
    outline: none;
    border-color: #2271b1;
}

.quotecart-add-to-cart__submit {
    margin: 0.75em 0 0;
}

.quotecart-add-to-cart__button {
    padding: 0.6em 1.25em;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
}

.quotecart-add-to-cart__button:hover {
    background: #135e96;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quotecart-login {
        margin: 1em;
        padding: 1.5em;
    }

    .quotecart-quotes {
        margin: 1em;
        padding: 1em;
    }

    .quotecart-quotes__table-wrapper {
        overflow-x: scroll;
    }

    .quotecart-quotes__cell {
        padding: 0.75em 0.5em;
        font-size: 0.85em;
    }
}
