/* NB Gift Registry Styles */

.nb-gift-registry-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nb-gift-registry-form h3 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.nb-gift-registry-form h3:first-child {
    margin-top: 0;
}

.nb-gift-registry-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.nb-gift-registry-form input[type="text"],
.nb-gift-registry-form input[type="email"],
.nb-gift-registry-form input[type="date"],
.nb-gift-registry-form select,
.nb-gift-registry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.nb-gift-registry-form input[type="text"]:focus,
.nb-gift-registry-form input[type="email"]:focus,
.nb-gift-registry-form input[type="date"]:focus,
.nb-gift-registry-form select:focus,
.nb-gift-registry-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.nb-gift-registry-form input[type="file"] {
    margin-bottom: 15px;
}

.nb-gift-registry-form input[type="radio"] {
    margin-right: 8px;
}

.nb-gift-registry-form .radio-group {
    margin-bottom: 20px;
}

.nb-gift-registry-form .radio-group label {
    display: inline-block;
    margin-right: 20px;
    font-weight: normal;
}

.nb-gift-registry-form button[type="submit"] {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nb-gift-registry-form button[type="submit"]:hover {
    background: #005a87;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

.gift-registries-list {
    margin-top: 20px;
}

.registry-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.registry-item h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.registry-item p {
    margin-bottom: 10px;
}

.registry-item .button {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.registry-item .button:hover {
    background: #005a87;
    color: white;
}

/* Shipping Address Fields */
.shipping-address-fields {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.shipping-address-fields h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.shipping-address-fields label {
    font-weight: bold;
    color: #555;
}

.shipping-address-fields input,
.shipping-address-fields select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.shipping-address-fields input:focus,
.shipping-address-fields select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

/* Edit Page Specific Styles */
.gift-registry-edit-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.gift-registry-edit-page h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.form-actions .button {
    margin: 0 10px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.form-actions .button-primary {
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

.form-actions .button-primary:hover {
    background: #005a87;
}

.form-actions .button:not(.button-primary) {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.form-actions .button:not(.button-primary):hover {
    background: #e1e1e1;
}


.product-row {
    transition: background-color 0.2s ease !important;
}

.product-row:hover {
    background-color: #f8f9fa !important;
}




/* Current Image Display */
.current-image {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.current-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-image small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

/* File Input Styling */
input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input[type="file"]:hover {
    border-color: #0073aa;
}

input[type="file"]:focus {
    border-color: #0073aa;
    outline: none;
}

/* Page Header Styling */
.edit-page-header {
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: white;
	padding: 30px 20px;
	margin: -20px -20px 30px -20px;
	border-radius: 8px 8px 0 0;
	text-align: center;
}

.edit-page-header h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 300;
	border: none;
	padding: 0;
}

.edit-page-header p {
	margin: 10px 0 0 0;
	opacity: 0.9;
	font-size: 16px;
}

/* Gift Registry Product Button Styling */
.nb-add-to-gift-registry.btn:before {
    content: "\f06b" !important;
    font-family: FontAwesome;
    padding-right: 10px;
}

/* Gift Registry Modal Styles - Simple Version */
.nb-gift-registry-modal .registry-list > div:hover {
    background-color: #f8f9fa;
    border-color: #0073aa;
}

.nb-add-to-gift-registry:active {
	transform: translateY(0) !important;
}

/* Gift Registry Hub Page Styles */
.gift-registry-hub {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.gift-registry-hub .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gift-registry-header {
    text-align: center;
    margin-bottom: 60px;
}

.gift-registry-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.gift-registry-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gift-registry-options {
    margin-bottom: 60px;
}

.gift-registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gift-registry-option {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gift-registry-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #b51e34;
}

.gift-registry-option-icon {
    width: 80px;
    height: 80px;
    background: #d71f39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.gift-registry-option-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.gift-registry-option-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.gift-registry-search-form {
    margin-bottom: 20px !important;
}

.search-input-group {
    display: flex !important;
    border: 2px solid #e1e1e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: border-color 0.3s ease !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.search-input-group:focus-within {
    border-color: #d71f39 !important;
    box-shadow: 0 0 0 3px rgba(215, 31, 57, 0.1) !important;
}

.search-input {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: none !important;
    outline: none !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
}

.search-input::placeholder {
    color: #999 !important;
    font-style: italic !important;
}

.search-input:focus {
    background: #fff !important;
}

.search-button {
    background: #d71f39 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
}

.search-button:hover {
    background: #b51e34 !important;
    transform: translateY(-1px) !important;
}

.search-button:active {
    transform: translateY(0) !important;
}

.search-button .iconify {
    font-size: 16px !important;
}

/* Search form focus and accessibility */
.search-input:focus {
    box-shadow: none;
}

.search-button:focus {
    outline: 2px solid #d71f39;
    outline-offset: 2px;
}

/* Search form validation styling */
.search-input:invalid {
    border-color: #dc3545;
}

.search-input:valid {
    border-color: #28a745;
}

/* Loading state for search button */
.search-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.search-button:disabled:hover {
    background: #6c757d;
    transform: none;
}

.gift-registry-option-link {
    color: #d71f39;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gift-registry-option-link:hover {
    color: #b51e34;
    text-decoration: underline;
}

.gift-registry-option-button {
    background: #d71f39;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gift-registry-option-button:hover {
    background: #b51e34;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.gift-registry-login-required {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.gift-registry-login-required p {
    margin-bottom: 15px;
    color: #666;
}

/* Stats Section */
.gift-registry-stats {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gift-registry-stats h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Help Section */
.gift-registry-help {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gift-registry-help h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.help-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.help-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.help-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.help-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gift-registry-title {
        font-size: 2.5rem;
    }
    
    .gift-registry-description {
        font-size: 1.1rem;
    }
    
    .gift-registry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gift-registry-option {
        padding: 30px 20px;
    }
    
    .gift-registry-option-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .gift-registry-option-title {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gift-registry-help {
        padding: 20px;
    }
    
    .help-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gift-registry-hub .container {
        padding: 0 15px;
    }
}

.nb-add-to-gift-registry-fallback {
	background: #6c757d !important;
	color: white !important;
	border: none !important;
	padding: 8px 16px !important;
	margin: 5px 0 !important;
	border-radius: 4px !important;
	cursor: pointer !important;
	display: inline-block !important;
	width: auto !important;
	font-size: 14px !important;
	font-weight: normal !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.nb-add-to-gift-registry-fallback:hover {
	background: #5a6268 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* Gift Registry Products Grid */
.gift-registry-products-summary .products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.gift-registry-products-summary .product-item {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: transform 0.2s ease;
	background: white;
}

.gift-registry-products-summary .product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gift-registry-products-summary .product-item img {
	max-width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 15px;
}

.gift-registry-products-summary .product-item h4 {
	margin: 0 0 10px 0;
	font-size: 16px;
	color: #333;
}

.gift-registry-products-summary .product-item h4 a {
	color: #0073aa;
	text-decoration: none;
}

.gift-registry-products-summary .product-item h4 a:hover {
	text-decoration: underline;
}

.gift-registry-products-summary .product-item .price {
	font-size: 18px;
	font-weight: bold;
	color: #28a745;
	margin-bottom: 10px;
}

.gift-registry-products-summary .product-item .registry-info {
	font-size: 12px;
	color: #666;
	margin-bottom: 15px;
}

.gift-registry-products-summary .product-item .action-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.gift-registry-products-summary .product-item .action-buttons .button {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.gift-registry-products-summary .product-item .action-buttons .view-product {
	background: #0073aa;
	color: white;
}

.gift-registry-products-summary .product-item .action-buttons .remove-from-registry {
	background: #dc3545;
	color: white;
}

.gift-registry-products-summary .product-item .action-buttons .button:hover {
	opacity: 0.9;
}

/* Registry Info Table Styling */
.registry-info-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.registry-info-table thead {
	background: #f8f9fa;
}

.registry-info-table thead th {
	padding: 15px 12px;
	text-align: left;
	font-weight: bold;
	color: #333;
	border-bottom: 2px solid #0073aa;
    border-right: 1px solid #0073aa;
    border-top: 1px solid #0073aa;
	font-size: 14px;
}

.registry-info-table thead th:not(:first-child):not(:nth-child(2)) {
	text-align: center;
}

.registry-info-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}

.registry-info-table tbody tr:hover {
	background-color: #f8f9fa;
}

.registry-info-table tbody tr:last-child {
	border-bottom: none;
}

.registry-info-table tbody td {
	padding: 15px 12px;
	vertical-align: middle;
    border-right: 1px solid #0073aa;
    border-bottom: 1px solid #0073aa;
}

.registry-info-table tbody td:not(:first-child):not(:nth-child(2)) {
	text-align: center;
}

.registry-info-table .status-badge {
	background: #28a745;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	display: inline-block;
}

.registry-info-table .status-badge.closed {
	background: #dc3545;
}

/* Registry Products Table Styling */
.registry-products-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.registry-products-table thead {
	background: #f8f9fa;
}

.registry-products-table thead th {
	padding: 15px 12px;
	text-align: left;
	font-weight: bold;
	color: #333;
	border-bottom: 2px solid #0073aa;
	font-size: 14px;
}

.registry-products-table thead th:first-child {
	text-align: left;
}

.registry-products-table thead th:not(:first-child) {
	text-align: center;
}

.registry-products-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}

.registry-products-table tbody tr:hover {
	background-color: #f8f9fa;
}

.registry-products-table tbody tr:last-child {
	border-bottom: none;
}

.registry-products-table tbody td {
	padding: 15px 12px;
	vertical-align: middle;
}

.registry-products-table tbody td:not(:first-child) {
	text-align: center;
}

.registry-products-table .product-info {
	display: flex;
	align-items: center;
}

.registry-products-table .product-info img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	margin-right: 15px;
	flex-shrink: 0;
}

.registry-products-table .product-info .product-details h4 {
	margin: 0 0 5px 0;
	font-size: 16px;
	color: #333;
	line-height: 1.3;
}

.registry-products-table .product-info .product-details h4 a {
	color: #0073aa;
	text-decoration: none;
}

.registry-products-table .product-info .product-details h4 a:hover {
	text-decoration: underline;
}

.registry-products-table .product-info .product-details p {
	margin: 0;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

.registry-products-table .price {
	font-size: 16px;
}

.registry-products-table .quantity-input {
	width: 60px;
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

.registry-products-table .quantity-input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.registry-products-table .needs-display {
	font-size: 16px;
}

.registry-products-table .wants-display {
	font-size: 16px;
}

.registry-products-table .has-display {
	font-size: 16px;
}

.registry-products-table .action-buttons {
	display: flex;
	gap: 5px;
	justify-content: center;
	flex-wrap: wrap;
}

.registry-products-table .action-buttons .button {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.registry-products-table .action-buttons .view-button {
	background: #0073aa;
	color: white;
}

.registry-products-table .action-buttons .remove-button {
	background: #dc3545;
	color: white;
}

.registry-products-table .action-buttons .add-to-cart-button {
	background: #28a745;
	color: white;
}

.registry-products-table .action-buttons .button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Cart quantity input styling */
.registry-products-table .action-buttons .cart-quantity-input {
	width: 60px !important;
	text-align: center !important;
	padding: 4px !important;
	border: 1px solid #ddd !important;
	border-radius: 3px !important;
	font-size: 14px !important;
	transition: all 0.2s ease !important;
}

.registry-products-table .action-buttons .cart-quantity-input:focus {
	border-color: #28a745 !important;
	box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2) !important;
	outline: none !important;
}

.registry-products-table .action-buttons .cart-quantity-input:hover {
	border-color: #28a745 !important;
}

.registry-products-table .action-buttons .cart-quantity-input:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/* Invalid quantity input styling */
.registry-products-table .action-buttons .cart-quantity-input.invalid {
    border-color: #dc3545 !important;
    background-color: #f8d7da !important;
    color: #721c24 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.registry-products-table .action-buttons .cart-quantity-input.invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3) !important;
}

/* Gift Registry Checkout Notice */
.nb-gift-registry-checkout-notice {
	background: #e7f3ff !important;
	border: 1px solid #b3d9ff !important;
	color: #0066cc !important;
	padding: 15px !important;
	margin-bottom: 20px !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}

.nb-gift-registry-checkout-notice strong {
	color: #004499 !important;
}

.nb-gift-registry-checkout-notice small {
	color: #666 !important;
	font-size: 12px !important;
}

/* Save Button Styling */
#save-registry-changes {
	background: #0073aa !important;
	color: white !important;
	padding: 12px 24px !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 16px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#save-registry-changes:hover {
	background: #005a87 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#save-registry-changes:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

.products-table-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
	.registry-info-table {
		font-size: 12px;
	}
	
	.registry-info-table thead th,
	.registry-info-table tbody td {
		padding: 10px 8px;
	}
	
	.registry-info-table .status-badge {
		font-size: 10px;
		padding: 3px 6px;
	}
	
	.registry-products-table {
		font-size: 12px;
	}
	
	.registry-products-table thead th,
	.registry-products-table tbody td {
		padding: 10px 8px;
	}
	
	.registry-products-table .product-info img {
		width: 50px;
		height: 50px;
		margin-right: 10px;
	}
	
	.registry-products-table .quantity-input {
		width: 50px;
		padding: 4px;
		font-size: 12px;
	}
	
	.registry-products-table .action-buttons .button {
		padding: 4px 8px;
		font-size: 11px;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
    .nb-gift-registry-form {
        margin: 10px;
        padding: 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .form-actions .button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .edit-page-header {
        margin: -15px -15px 20px -15px;
        padding: 20px 15px;
    }
    
    .edit-page-header h1 {
        font-size: 24px;
    }
}

/* Tab functionality for gift registry view */
.registry-tabs {
    margin-bottom: 0;
    position: relative;
}

.tab-button {
    background: transparent;
    color: #666;
    padding: 15px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-right: 0;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.tab-button:hover {
    color: #0073aa;
    background: #f8f9fa;
}

.tab-button.active {
    color: #0073aa;
    background: white;
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

.tab-content {
    display: none;
    background: white;
    border-top: none;
    padding: 0;
    margin-top: -1px;
}

.tab-content.active {
    display: block;
}

/* Order history table styles */
.order-history-table {
    overflow-x: auto;
}

.order-history-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.order-history-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #0073aa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.order-history-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.order-history-table tr:hover {
    background: #f8f9fa;
}


.order-history-table .status-badge {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.order-history-table .status-completed {
    background: #28a745;
}

.order-history-table .status-processing {
    background: #007cba;
}

.order-history-table .status-pending {
    background: #ffc107;
    color: #333;
}

.order-history-table .status-on-hold {
    background: #6c757d;
}

.order-history-table .status-cancelled {
    background: #dc3545;
}

.order-history-table .status-refunded {
    background: #6f42c1;
}

/* Status badge colors for registry info table */
.registry-info-table .status-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.registry-info-table .status-badge.status-expired {
    background: #dc3545;
}

.registry-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.registry-header .registry-image-container {
    margin-bottom: 20px;
}

.registry-header .registry-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.registry-header .event-date {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.registry-header .event-type {
    font-size: 16px;
    color: #888;
}

.registry-message {
    text-align: center;
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.registry-message p {
    font-size: 16px;
    line-height: 1.6;
}

/* Notice styles */
.notice.notice-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notice.notice-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notice.notice-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Product has orders notice */
.product-has-orders-notice {
    color: #666 !important;
    font-size: 12px !important;
    font-style: italic !important;
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

/* Privacy badges */
.privacy-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-public {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.privacy-private {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FAQ Accordion */
.gift-registry-faq {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 80px;
}

.gift-registry-faq h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.faq-content {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.faq-item {
    margin-bottom: 0;
    width: calc(50% - 30px);
}

.faq-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-accordion-header {
    padding: 20px 25px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.faq-accordion-header:hover {
    background: #e9ecef;
}

.faq-accordion-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-accordion-icon {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s ease;
    width: 30px;
    text-align: center;
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(45deg);
}

.faq-accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-accordion-item.active .faq-accordion-content {
    padding: 25px;
    max-height: 500px;
}

.faq-accordion-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

.faq-accordion-content p:last-child {
    margin-bottom: 0;
}

.faq-accordion-content a {
    color: #007cba;
    text-decoration: none;
}

.faq-accordion-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .gift-registry-faq {
        padding: 20px;
    }

    .faq-accordion-header {
        padding: 10px 15px;
    }

    .faq-accordion-header h4 {
        font-size: 16px;
    }

    .faq-item {
        width: 100%;
    }
}


/* Gift Message Section - Checkout */
#gift_message_checkout_field {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

#gift_message_checkout_field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#gift_message_checkout_field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

#gift_message_checkout_field textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

#gift_message_checkout_field small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}


/* Gift Message Display in Order Details */
.gift-message-display {
    margin: 20px 0;
}

.gift-message-display h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.gift-message-display .gift-message-content {
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid #007cba;
    border-radius: 3px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Admin order display */
.woocommerce-admin-order .gift-message-display h3 {
    font-size: 14px;
}

.woocommerce-admin-order .gift-message-display .gift-message-content {
    padding: 10px;
    font-size: 13px;
}

/* Registry Info Table */
.registry-info-table {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.registry-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.registry-info-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #0073aa;
}

.registry-info-table th {
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.registry-info-table th:first-child {
    border-left: 1px solid #0073aa;
}

.registry-info-table tbody tr {
    border-bottom: 1px solid #eee;
}

.registry-info-table td {
    padding: 15px;
    text-align: center;
}

.registry-info-table td:first-child {
    font-weight: bold;
    color: #333;
    border-left: 1px solid #0073aa;
}

.registry-info-table .status-badge {
    /* Status badge styles are inherited from existing styles above */
    display: inline-block;
}

/* Registry Products */
.registry-products {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.products-table-container {
    overflow-x: auto;
}

.registry-products-table {
    width: 100%;
    border-collapse: collapse;
}

.registry-products-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #0073aa;
}

.registry-products-table th {
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.registry-products-table th:first-child {
    text-align: left;
}

.registry-products-table tbody tr {
    border-bottom: 1px solid #eee;
}

.registry-products-table .product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.registry-products-table .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.registry-products-table .product-details {
    text-align: left;
    width: 100%;
}

.registry-products-table .product-details h4 {
    margin: 0 0 5px 0;
    text-align: left;
}

.registry-products-table .product-details h4 a {
    text-decoration: none;
    color: #333;
}

.registry-products-table .product-details p {
    margin: 0;
    text-align: left;
    color: #666;
    font-size: 14px;
}

.cart-quantity-input {
    width: 60px;
    text-align: center;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Action Buttons */
.products-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.save-registry-changes {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.add-to-cart-form {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-to-cart-button {
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

/* Browse Products Section */
.browse-products-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.browse-products-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.browse-products-section p {
    margin-bottom: 20px;
    color: #666;
}

.browse-products-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

/* Registry URL Section */
.registry-url {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.registry-url h4 {
    color: #333;
    margin-bottom: 15px;
}

.registry-url p {
    margin-bottom: 15px;
}

.registry-url-display {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    word-break: break-all;
}

.registry-url-actions {
    margin-top: 15px;
}

.copy-url-button {
    margin-right: 10px;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-registry-button {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

/* Order History */
.order-history {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-history h3 {
    margin-bottom: 20px;
    color: #333;
}

.order-history .loading {
    text-align: center;
    padding: 40px;
}

/* Search Results Styles */
.gift-registry-search-results {
    padding: 20px 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.gift-registry-search-results h1 {
    color: #333 !important;
    margin-bottom: 20px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e1e1e1 !important;
}

.search-results-count {
    margin-bottom: 20px !important;
    padding: 10px !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    border-left: 4px solid #007cba !important;
}

.search-results-count p {
    margin: 0 !important;
    color: #333 !important;
    font-weight: 500 !important;
}

.search-results-list {
    margin-bottom: 30px !important;
}

.search-result-item {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: box-shadow 0.3s ease !important;
}

.search-result-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.result-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.result-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    flex: 1 !important;
    min-width: 200px !important;
}

.result-header h3 a {
    color: #007cba !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.result-header h3 a:hover {
    color: #005a87 !important;
    text-decoration: underline !important;
}

.result-details {
    margin-bottom: 15px !important;
}

.result-row {
    margin-bottom: 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

.result-row strong {
    color: #333 !important;
    min-width: 120px !important;
    font-weight: 600 !important;
}

.result-actions {
    text-align: right !important;
}

.result-actions .btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.result-actions .btn-primary {
    background: #007cba !important;
    color: white !important;
    border: 1px solid #007cba !important;
}

.result-actions .btn-primary:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    color: white !important;
}

.search-again {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    margin-top: 30px !important;
    text-align: center !important;
}

.search-again h3 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.search-again .search-input-group {
    margin: 0 auto !important;
}

/* Search Form Styles */
.gift-registry-search {
    padding: 40px 0 !important;
    text-align: center !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

.gift-registry-search h1 {
    color: #333 !important;
    margin-bottom: 10px !important;
    font-size: 32px !important;
    font-weight: 600 !important;
}

.gift-registry-search > p {
    color: #666 !important;
    margin-bottom: 30px !important;
    font-size: 16px !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.search-help {
    margin-top: 40px !important;
    text-align: left !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.search-help h3 {
    color: #333 !important;
    margin-bottom: 15px !important;
    font-size: 20px !important;
}

.search-help p {
    color: #666 !important;
    margin-bottom: 15px !important;
}

.search-help ul {
    color: #666 !important;
    padding-left: 20px !important;
}

.search-help li {
    margin-bottom: 8px !important;
}

.search-help strong {
    color: #333 !important;
}

/* Variation Alert Modal */
.nb-variation-alert {
    animation: fadeIn 0.3s ease-in-out;
}

.nb-variation-alert .variation-alert-ok {
    transition: all 0.3s ease;
}

.nb-variation-alert .variation-alert-ok:hover {
    background: #005a87 !important;
    transform: translateY(-1px);
}

.nb-variation-alert .variation-alert-ok:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Search Results */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-header h3 {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .result-row {
        flex-direction: column;
    }
    
    .result-row strong {
        min-width: auto;
        margin-bottom: 2px;
    }
    
    .result-actions {
        text-align: left;
        margin-top: 15px;
    }
    
    .gift-registry-search h1 {
        font-size: 24px;
    }
    
    .search-help {
        margin-top: 30px;
    }
    
    /* Search form responsive */
    .search-input-group {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    .search-button {
        padding: 14px 16px;
        min-width: 60px;
    }
    
    .gift-registry-search {
        padding: 30px 20px;
        margin: 10px 0;
    }
    
    .gift-registry-search-results {
        margin: 10px 0;
        padding: 15px 0;
    }
    
    .gift-registry-search-results h1 {
        font-size: 24px;
        padding: 0 20px 15px 20px;
    }
    
    .search-again {
        margin: 20px 10px 0 10px;
        padding: 15px;
    }
    
    /* Variation alert responsive */
    .nb-variation-alert > div {
        margin: 20px;
        padding: 20px;
        max-width: calc(100% - 40px);
    }
    
    .nb-variation-alert .variation-alert-ok {
        width: 100%;
        padding: 15px 20px;
    }
}

/* Gift Registry Cart Quantity Styles */
.gift-registry-quantity {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: bold;
    color: #6c757d;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    position: relative;
}

.gift-registry-quantity::after {
    content: " (Fixed)";
    font-size: 11px;
    color: #6c757d;
    font-weight: normal;
    font-style: italic;
}